Repository navigation
fix(box): set ingress in the tool test helper's ProcessSpec - #394
Merged
Merged
Conversation
## Problem `main` does not compile under `--all-targets`. #388 added the test helper `run::commands::tests::tool`, which builds a `ProcessSpec` literal. #272 added the `ingress` field to `ProcessSpec`. Each change passed CI alone; together they fail with E0063 (missing field `ingress`). Lint, both Unit Tests jobs, and the CI Gate fail. On macOS, the `macos_file_enforcement` step also fails, because the Build step stopped before it made `strands-box-contain-trampoline`. ## Solution Set `ingress: Vec::new()` in the helper. This is the value serde gives when a table has no `[[ingress]]` key, and the other test literals use the same value. Only test code changes. No interface moves: a tool table that declares ingress is still refused by `validate_ingress_selection`. ## Tests - `cargo clippy -p strands-box --all-targets --all-features --locked`: passes; no owned warnings (6 vendored `strands-shell` warnings, unchanged). - `cargo fmt -p strands-box --check`: passes. - `cargo test -p strands-box --all-features --locked --lib run::commands`: 39 passed. - `cargo build --workspace --locked --all-targets --all-features`, then `cargo test --locked -p strands-box --no-default-features --test macos_file_enforcement` on macOS: 3 passed. - Not run: the full workspace suite and the Linux jobs.
priyasingh2111
marked this pull request as ready for review
November 10, 2026 23:25
|
Assessment: Approve This one-line fix to a test helper is correct and complete. I found nothing that needs to change. What I checked (head bc9b4ac)
It's good that the PR names the two-PR merge collision that caused this, so the cause is easy to trace. |
hanaduy
approved these changes
Nov 11, 2026
leo237
pushed a commit
to leo237/box
that referenced
this pull request
Nov 11, 2026
…ds-agents#394 Main's strands-agents#394 added ingress to the tool() test helper's ProcessSpec; the rebase kept both that line and the one this branch added during its earlier rebase, so the merge had the field twice (E0062). Keep main's.
8 tasks done
leo237
pushed a commit
to leo237/box
that referenced
this pull request
Nov 11, 2026
…ds-agents#394 Main's strands-agents#394 added ingress to the tool() test helper's ProcessSpec; the rebase kept both that line and the one this branch added during its earlier rebase, so the merge had the field twice (E0062). Keep main's.
8 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
mainstopped compiling under--all-targetsat 4bc0973 (run 42917114574). #388 added the test helperrun::commands::tests::tool, which builds aProcessSpecliteral. #272 added theingressfield toProcessSpec. Each change passed CI alone. Together they fail with E0063 (missing fieldingress) incrates/box/src/run/commands.rs.Effect on the run:
macos_file_enforcementstep also fails. It is a knock-on failure: the Build step stopped before it madestrands-box-contain-trampoline.This change sets
ingress: Vec::new()in the helper. That is the value serde gives when a table has no[[ingress]]key, and the otherProcessSpectest literals use the same value. Only test code changes. No interface or premise moves, andvalidate_ingress_selectionstill refuses ingress on a[tool.<name>]table.Related Issues
Breakage between #272 and #388.
Type of Change
Bug fix
Testing
Ran on macOS:
cargo clippy -p strands-box --all-targets --all-features --locked: passes, with no owned warnings (6 vendoredstrands-shellwarnings, unchanged).cargo fmt -p strands-box --check: passes.cargo test -p strands-box --all-features --locked --lib run::commands: 39 passed.cargo build --workspace --locked --all-targets --all-features: passes.cargo test --locked -p strands-box --no-default-features --test macos_file_enforcement: 3 passed.Not run: the full
cargo test --workspace --all-features, workspace-wide clippy with-D warnings, and Linux. CI covers these.just check, orcargo test --workspace --all-features)cargo fmt --allandcargo clippy --workspace --all-targets --all-features -- -D warningsChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.