Skip to content

ci(canary): add two-step gateway start + sandbox create canary test#325

Merged
drew merged 4 commits intomainfrom
canary-two-step-test
Mar 15, 2026
Merged

ci(canary): add two-step gateway start + sandbox create canary test#325
drew merged 4 commits intomainfrom
canary-two-step-test

Conversation

@drew
Copy link
Collaborator

@drew drew commented Mar 15, 2026

Summary

Add a two-step canary test (gateway startsandbox create) that runs in parallel with the existing auto-bootstrap canary. Consolidates both test modes into a single job using an arch × mode matrix to eliminate duplication.

Changes

  • Added mode dimension (auto-bootstrap, two-step) to the canary matrix, producing 4 jobs (2 arch × 2 mode)
  • The Start gateway step is conditionally run only for two-step mode via if: matrix.mode == 'two-step'
  • Passes --gateway-host "$OPENSHELL_GATEWAY_HOST" to gateway start — required because the gateway container is a Docker sibling, not in the CI container's network namespace (without it, metadata stores 127.0.0.1 which is unreachable)
  • Unified the canary test step across both modes — sandbox create --no-keep --no-tty -- echo "hello world" with grep validation

Testing

Checklist

  • Follows Conventional Commits
  • Architecture docs updated (if applicable)

drew added 4 commits March 15, 2026 00:40
Now that OPENSHELL_GATEWAY_HOST is supported in auto-bootstrap,
remove the explicit `gateway start` step. The canary now tests the
real zero-to-sandbox user path: a single `sandbox create` that
auto-bootstraps the gateway, creates a sandbox, and runs a command.
Add a parallel canary job that explicitly tests the gateway start followed
by sandbox create flow, separate from the existing auto-bootstrap path.
The gateway container is a Docker sibling, not in the CI container's
network namespace. Without --gateway-host the metadata stores 127.0.0.1
which is unreachable. The auto-bootstrap path reads OPENSHELL_GATEWAY_HOST
from the env, but gateway start requires it as a CLI flag.
Replace two separate jobs (canary-auto-bootstrap, canary-two-step) with a
single job using arch x mode matrix. The only difference between modes is
a conditional 'Start gateway' step for two-step mode.
@drew drew self-assigned this Mar 15, 2026
@drew drew merged commit 29f72f3 into main Mar 15, 2026
17 checks passed
@drew drew deleted the canary-two-step-test branch March 15, 2026 18:20
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