Repository navigation
fix(box): Pin box to the strands-agents/box 0.3.2 release - #2933
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## box-integration #2933 +/- ##
================================================
Coverage 96.94% 96.94%
================================================
Files 779 779
Lines 70628 70628
================================================
Hits 68469 68469
Misses 2159 2159 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
leo237
left a comment
There was a problem hiding this comment.
LGTM. This is the pin bump my #2914 approval asked to wait for.
Supply chain (verified): I downloaded SHA256SUMS.txt and both box-cli archives from the v0.3.2 release of strands-agents/box. It is not a draft or prerelease, and github-actions[bot] published it.
aarch64-unknown-linux-gnu:5db46239…dc807c985matches the pin andSHA256SUMS.txt.aarch64-apple-darwin:3f655657…26f6262matches the pin andSHA256SUMS.txt.- The asset names and URLs match.
gh attestation verify --repo strands-agents/boxpasses for both archives and forSHA256SUMS.txt. The provenance namesdeploy-box-artifact.ymlonmainat0ac26875, the commit thev0.3.2tag points to. That commit contains strands-agents/box#629, andrelease.jsonin the archive agrees.
Platforms: The CLI only reads linux (the arm64 build that ships to Runtime). Container builds target linux/arm64, and darwin only feeds the e2e macOS runner. Local dev uses whatever box is on PATH, and checkTool("box", BOX_INSTALL_HINT) fails clearly when there is none. No gap there.
Traces gate: With 0.3.2 pinned, build emits log_group/log_stream in agentcore_traces, plus the traces_log_group/traces_log_stream pack inputs. I checked this locally.
Failing local test: This is not a 0.3.2 regression. the box on PATH > resolves a profile… is skipped whenever no box is on PATH, which is the case on every verify runner. It can't pass against any real box: boxNetworkRules() starts with BOX_METADATA_RULES, but the test profile only imports @box/base (whose 0.3.2 pack has no policy) and a policy.dw with no_admin. Box ships those forbids only in its open policy. Worth a follow-up: compare without the metadata rules, or add them to the test's policy.dw.
CI: verify / macOS failed on checkPort rejects an occupied loopback port… (src/io/port.test.ts), which this PR doesn't touch and which passes locally. box-integration at the base SHA also fails macOS verify, on 3 other timing tests, so this looks like runner flakiness.
Nits (non-blocking):
src/core/project/templates/boxProfile.ts:132still says the pin is "(0.3.0)". I checked@box/basein 0.3.2 and it still has no[tool]tables, soBOX_BASE_PROJECT_WRITE_TOOLS = []stays correct. Only the version in the comment is stale.- The OTEL build test follows
tracesToRuntimeLogGroup(), so a pin moved back below 0.3.2 would still pass. Addingexpect(tracesToRuntimeLogGroup()).toBe(true), plus a check on the pack'sinputs.runtime.traces_log_group/traces_log_stream, would make it assert the pinned behaviour.
|
e2e with box 0.3.2 (
Not in this run: the Python 3.10 to 3.13 box tests ( |
|
The |
|
CI e2e on this branch (manual run, L3 |
- boxRelease.json pins 0.3.2: the box-cli archives for Linux arm64 and macOS (Apple silicon), with the SHA-256s of the release's SHA256SUMS.txt. - 0.3.2 is the first release whose cloudwatch_traces target takes log_group and log_stream (strands-agents/box#629), so BOX_TRACES_LOG_GROUP_VERSION now applies: build names the runtime's log group and log stream for the box's spans. The build test follows that gate. - The README, docs/box-local-testing.md and the install hint test name 0.3.2.
b478ce7 to
7ffaf11
Compare
Description
Pins box to the public strands-agents/box v0.3.2 release.
src/core/project/backends/boxRelease.json: version0.3.2, with thebox-cliarchives for Linux arm64 (box-cli-v0.3.2-aarch64-unknown-linux-gnu.tar.gz) and macOS on Apple silicon (box-cli-v0.3.2-aarch64-apple-darwin.tar.gz). The SHA-256s match the release'sSHA256SUMS.txt, and the macOS build runs (box --versionprintsbox 0.3.2). Both come from the same release, so macOS needs no separate pin.cloudwatch_tracestarget takeslog_groupandlog_stream(feat(box): let a cloudwatch_traces target name its log group and stream strands-agents/box#629).BOX_TRACES_LOG_GROUP_VERSIONwas already0.3.2, so with this pin build names the runtime's log group and log stream for the box's spans. The OTEL build test inmanager.boxNetwork.test.tsnow follows that gate (tracesToRuntimeLogGroup()) instead of assuming the older shape.README.md,docs/box-local-testing.mdand the install hint test name 0.3.2.Related Issue
Closes #
Documentation PR
Included:
README.mdanddocs/box-local-testing.md.Type of Change
Testing
How have you tested the change?
bun testwith box 0.3.2 onPATH: 6670 pass, 1 fail (the box on PATH > resolves a profile into the rules the tests fake, which also fails with box 0.3.0 onbox-integration).bun run test:e2e: running now (every Box template's deploy anddev, the dev egress test and the Runtime egress test, with box 0.3.2 and the L3box-integrationconstructs); results to follow in a comment.bun run typecheckbun run lint:checkbun run format:checkbun run auditbun run secrets:checkbun run buildsrc/assets/, I updated affected snapshots: no change tosrc/assets/.command.md(the release workflow regenerates it)Checklist