Repository navigation
fix(box): Use the v0.3.0 macOS box instead of v0.3.0-preview.1 - #2910
Conversation
The macOS build of box v0.3.0 runs: its box and both helpers pass codesign --verify --strict (Developer ID, AMZN Mobile LLC) and box --version prints box 0.3.0. The invalid Info.plist reported when it was pinned away came from that copy on disk, not the release asset: the asset's SHA-256 is the same, and it has not been re-uploaded. So macOS and Linux both take v0.3.0 again, boxRelease.json drops darwin.version, and the install hints and docs no longer send macOS to the preview. bump-box-release.ts keeps --darwin-box for a release whose macOS build does not run.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## box-integration #2910 +/- ##
===================================================
- Coverage 96.87% 96.86% -0.01%
===================================================
Files 774 774
Lines 68744 68744
===================================================
- Hits 66593 66591 -2
- Misses 2151 2153 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The macOS skip said the pinned macOS box build is killed at start. That was v0.3.0-preview.1, after the workflow's install; the pin is now v0.3.0, which no CI run has tried yet.
leo237
left a comment
There was a problem hiding this comment.
Looks good. The new macOS pin is correct, and the docs, hint and tests are consistent with it.
What I checked:
- Pin:
box-cli-v0.3.0-aarch64-apple-darwin.tar.gzin strands-agents/boxv0.3.0(not a prerelease or draft, published 2026-11-23 16:19 UTC). The GitHub asset digest, my ownsha256sumof the downloaded asset, and the release'sSHA256SUMS.txtall givebc077119...c69aaa70, which matchesboxRelease.json. The URL the e2e workflow builds from.box.versionresolves. - Archive layout: flat, with
box,strands-box-contain-trampoline,strands-box-sock-alias,resources/andrelease.jsonat the top (release.jsonsaysbox_version0.3.0, targetaarch64-apple-darwin). That matchesBOX_BINARIESand the workflow'star -xzf -C /opt/box. The binary is Mach-O and carries a Developer ID Application: AMZN Mobile LLC signature blob. I can't runcodesignor the binary on Linux, so whether it runs on macOS rests on your hand check. - Leftovers: no
0.3.0-preview.1, boxpreviewor old SHA (eaf085e4...) remains in src, docs, tests, scripts or workflows. The hard-coded0.3.0strings are only in theBOX_INSTALL_HINTexpectation, as before. - Silent failures: none new. The pin is still checked against the repo's SHA, not the release's SUMS file; the workflow checks the SHA's shape before
-c; and an emptyBOX_MACOS_HINTdrops cleanly out of both messages. bun run typecheckpasses.bun testgives 6400 pass, 9 skip, 0 fail (no box on PATH here).
Non-blocking follow-ups:
- This branch predates #2908 (merged into
box-integration). After both are in, the e2e workflow comment ande2eTest/README.mdwill still say "the pinned macOS box build is killed as soon as it starts", but the pinned build will then bev0.3.0, which CI has never run. TheKilled: 9in #2908 was thev0.3.0-preview.1build installed withsudo tar --no-same-owner. Please follow up by re-enablingInstall box(and the L3 steps) formacOSonce a CI run showsbox --versionpasses there, or reword those lines so they name the build that was killed. The squash plan (https://pippin.amazon.dev/docs/XFRmP1pP9L90nl/box-integration-squash-and-pr-plan-v2) has no later PR that covers this. - nit: inline note on README below.
- nit: with
darwin.versiongone, nothing tests the non-emptyBOX_MACOS_HINTpath any more, though--darwin-boxand the// .box.versionfallback are kept on purpose. A small test that builds the hint from a fixture release with its own darwin version would stop that path from rotting.
f0a7cf9 to
0223c28
Compare
…unner user macOS now pins box v0.3.0, which runs when unpacked plainly. CI installs it on the macOS runner again, unpacked as the runner user into $RUNNER_TEMP/box and put on PATH, as a developer does, instead of the sudo unpack into /opt/box after which the signed v0.3.0-preview.1 was killed at start. If macOS refuses box, the step prints codesign's verdict and the recent system log before failing. The macOS runner builds the L3 constructs for the Box deploys too. Linux arm64 is unchanged.
leo237
left a comment
There was a problem hiding this comment.
Re-approving after the rebase onto box-integration (now with #2908). 623f520 carries the same changes as the commit I approved (f0a7cf9), and 0223c28 addresses my follow-up: the e2e workflow comment and e2eTest/README.md now say it was the v0.3.0-preview.1 macOS build that CI saw killed, and to re-enable macOS once a run shows the pinned build starts. The two nits from my earlier review still stand as optional.
leo237
left a comment
There was a problem hiding this comment.
Re-review of 0dc8f29 ("Run the Box tests on macOS again, with box unpacked as the runner user"). The rebased fix and the docs commit are unchanged from what I approved; this note is only about the new commit.
The change itself reads well: unpacking as the runner user into $RUNNER_TEMP/box instead of a sudo unpack into /opt/box is a plausible fix for the Killed: 9, and printing codesign and the unified log before failing is good diagnostics.
Why COMMENT, not APPROVE: the theory that the sudo unpack caused the kill hasn't been tested yet. The only e2e dispatch at this head (run 45500262060) failed in authorize at "Fetch secrets from Secrets Manager", so no test job ran and the macOS install step never executed. Before this commit, a macOS box that won't start only meant the Box tests skipped on macOS. Now the install step exit 1s, so if the theory is wrong, the whole macOS e2e job turns red on every push to box-integration.
Either of these would unblock me:
- A green
tags=boxrun on macOS at this head, dispatched from a ref the secrets role trusts, or - Keep the safety net until one exists: on macOS, if
box --versionfails, print the diagnostics and continue without box on PATH (Box tests skip) instead ofexit 1, or mark that stepcontinue-on-errorfor macOS only.
Also re-noting my earlier #2908 point now that macOS runs the L3 steps again: npm ci for the L3 constructs runs after the AWS credentials are configured, on macOS as well as Linux arm64. Non-blocking.
macOS reads a folder named box that holds the executable box as a bundle, so codesign reports the signed box as invalid (Info.plist not bound) and macOS kills it at launch. That is why the macOS box was killed under /opt/box/box and, in the last run, $RUNNER_TEMP/box/box, while the same file runs from a folder with another name. The e2e workflow now unpacks it into $RUNNER_TEMP/box-<version>, and the local testing guide warns against a folder named box.
tejaskash
left a comment
There was a problem hiding this comment.
Approving. The folder-name cause reproduces here on macOS 26.7.3 arm64 with the pinned box-cli-v0.3.0 archive (sha256 matches boxRelease.json): unpacked into a folder named box, codesign --verify --strict reports invalid Info.plist with Format=bundle, and box --version exits 137. The same file in box-0.3.0, other, Box, ~/.local/share/box/0.3.0 or the CLI cache layout passes and prints box 0.3.0. Two details worth adding to the description: only the folder that directly holds the executable matters (an ancestor named box is fine, and the match is case sensitive), and macOS remembers a passed validation, so a copy that ran once from a good folder keeps running after a move into box. That explains why an earlier check on this Mac saw 0.3.0 run. e2e run 45501254207 at d73bfecc is green, Linux is unchanged.
Follow-ups, in this PR or the next:
BOX_INSTALL_HINT(src/core/project/backends/boxRelease.ts:84-88) andREADME.md:238-240still say "unpack it into a folder", and the obvious choice isbox. A developer who already has.../box/boxon PATH passes the presence check and then gets "Box stopped on .box/profile.toml with exit code unknown and printed no error" fromboxProfileResolver.ts:164-171, and the command it suggests also exits 137 silently. Add "on macOS the folder must not be named box" to the hint and the README, and in that no-stderr branch on darwin, when the exit code is null and the resolvedboxsits in a folder namedbox, say so and tell the user to rename it. One parameterized test for that branch also guards the developer path.the box on PATHinboxProfileResolver.test.tsfails with the pinned 0.3.0 on PATH: the fixture inboxProfileResolver-test-support.ts:16expects ametadata_hostsrule that box 0.3.0 does not write (boxNetwork/places.ts:11-13already says so). Every macOS developer followingdocs/box-local-testing.mdgets one red test. Drop that line from the fixture and run the test with 0.3.0 on PATH.- The
darwin.versionoverride,--darwin-box,BOX_MACOS_HINT(now always empty) and the workflow's.box.<build>.version // .box.versionexist only for a macOS build that does not run, and the one case that motivated them was the folder name. I would delete them in all five places. Not blocking. .github/workflows/e2e-test.yml:178:eventMessage CONTAINS "box"also matches everysandboxmessage, so the diagnostic tail will mostly miss the kill. Match on"${DIR}"instead.docs/box-local-testing.md:70-72: say "the folder that directly holdsbox", since the next command unpacks under~/.local/share/box/0.3.0, which is fine.
leo237
left a comment
There was a problem hiding this comment.
Approving. My blocker was an untested macOS install; e2e run 45501254207 at d73bfec (dispatched from box/e2e-macos-box) is green on all four jobs, and the macOS job prints box 0.3.0 after the new install and passes 10 Box tests. With the folder-name cause reproduced on macOS in the other review, the box-<version> folder fix is confirmed. The note about the L3 npm ci running with the e2e AWS credentials remains a non-blocking follow-up, as do the install-hint and README wording that still say "unpack it into a folder".
Description
macOS goes back to box
v0.3.0, the release Linux and AgentCore Runtime already use, and the Box e2e tests run on themacOS runner again.
The cause. macOS reads a folder named
boxthat holds the executableboxas a bundle.codesignthen reports thesigned box as
invalid Info.plist (plist or signature have been modified)(Format=bundle,Info.plist=not bound),and macOS kills box at launch (
Killed: 9, exit 137). Every failure so far had box at…/box/box: the copy that led#2893 (
62878201) to pin macOS tov0.3.0-preview.1, and/opt/box/boxand$RUNNER_TEMP/box/boxin CI. The samefile in a folder with another name passes
codesign --verify --strictand runs. Thev0.3.0release asset is fine:its SHA-256 (
bc077119…aaa70) is the one pinned away, and it has not been re-uploaded.Changes:
boxRelease.json: rewritten withbun scripts/bump-box-release.ts --box 0.3.0. macOS takes thev0.3.0asset, anddarwin.versionis gone, so the install hint and the box version errors no longer send macOS to the preview. Theirtwo tests follow.
--darwin-boxand the workflow's.box.<build>.version // .box.versionstay, for a release whosemacOS build does not run.
e2e-test.yml: the macOS runner installs box and builds the L3 constructs again. It unpacks box as the runner userinto
$RUNNER_TEMP/box-<version>, not a folder namedbox, puts it onPATH, and if box still does not start,prints
codesign's verdict and the recent system log before failing. Linux arm64 is unchanged.README.md,docs/box-local-testing.md,e2eTest/README.mdand a comment intemplates/boxProfile.ts:v0.3.0onmacOS, macOS back in the CI Box tests, and a warning not to unpack box into a folder named
boxon macOS.E2E: 45501254207 on
box/e2e-macos-box(same commits),tags=box: all jobs pass. macOS:box 0.3.0, 10 Box tests passed (5 deploy and invoke on AgentCore Runtime, 5dev).Linux arm64: 11 passed.
agent_python_langchain_box's deploy stays skipped in CI.Related Issue
No GitHub issue. Follow-up to #2893.
Documentation PR
Not applicable; the README and
docs/box-local-testing.mdare updated here.Type of Change
Testing
How have you tested the change?
bun test: 6402 pass, 1 fail. The failure,the box on PATH > resolves a profile into the rules the tests fake, also fails without this change withbox 0.3.0-preview.1on PATH: the box's output has nometadata_hostsrule, which the test's fixture expects.bun run test:e2e, or explained why they are not applicable(CI does not run them for you): e2e run 45501254207, above
bun run typecheckbun run lint:checkbun run format:check(on the changed files)bun run auditbun run secrets:checkbun run buildsrc/assets/, I updated affected snapshots withbun test <test-file> --update-snapshotsand committed themby this PR
command.md(the release workflow regenerates it)Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.