Skip to content

test: every suite finds the gateway through the harness - #405

Merged
ndreno merged 1 commit into
mainfrom
test/gateway-lookup
Nov 18, 2026
Merged

ndreno merged 1 commit into
mainfrom
test/gateway-lookup

Conversation

@ndreno

@ndreno ndreno commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Six integration tests found the gateway binary by themselves instead of through the harness:

  • init_template, artifact_capabilities and security/artifact_signing looked for target/debug/barbacane;
  • process_lifecycle fell back to it;
  • control_cli and connected_mode looked in the target directory only.

None honoured BARBACANE_TEST_BINARY. Under a redirected CARGO_TARGET_DIR (the coverage job, through cargo llvm-cov), they ran target/debug/barbacane rather than the build under test whenever the cache had left one there.

They now call find_barbacane_binary(): BARBACANE_TEST_BINARY first, then the active target directory, then the fixed candidates.

Tests

Found by the static-image prototype (#404), which points BARBACANE_TEST_BINARY at a static gateway and has no target/debug/barbacane: init_template and artifact_capabilities failed there (run 44317540356, shards 1 and 3). #404 carries this commit, so its next run shows them pass against the static binary. cargo check -p barbacane-test --tests is clean locally.

init_template, artifact_capabilities and security/artifact_signing looked
for target/debug/barbacane themselves, process_lifecycle fell back to it,
and control_cli and connected_mode looked in the target directory only.
None honoured BARBACANE_TEST_BINARY, and under a redirected
CARGO_TARGET_DIR (the coverage job) they ran target/debug/barbacane rather
than the build under test whenever the cache had left one there.

They now call find_barbacane_binary(): BARBACANE_TEST_BINARY first, then
the active target directory, then the fixed candidates.

Found by the static-image prototype (#404), which points
BARBACANE_TEST_BINARY at a static gateway and has no
target/debug/barbacane: init_template and artifact_capabilities failed
there (run 44317540356, shards 1 and 3).

(cherry picked from commit 049cd8a)
@ndreno
ndreno merged commit 86cbaf5 into main Nov 18, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant