Skip to content

test(e2e): port gateway restart tests to the continuity suite - #6216

Open
matthewgrossman wants to merge 1 commit into
mainfrom
test/6214-port-restart-additional-ca/matthewgrossman
Open

matthewgrossman wants to merge 1 commit into
mainfrom
test/6214-port-restart-additional-ca/matthewgrossman

Conversation

@matthewgrossman

Copy link
Copy Markdown
Member

Summary

Ports the legacy gateway restart tests to a sandbox_intent scenario in the continuity suite, so the runner restarts the gateway between seed and verify and tests never restart it themselves.

Related Issue

Part of #6214
Part of #5297

Changes

  • tests/suites/continuity/src/sandbox_intent.rs: seed creates a running sandbox and records the time and its SSH host key fingerprint inside it, then creates a second sandbox and stops it. verify checks:
    • the running sandbox's first process started after seed, which means it was restarted
    • its host key didn't change
    • the stopped sandbox is still Stopped
    • on the VM driver, the relaunched sandbox's token hasn't expired
  • tests/support/vm: a new crate that reads the VM driver's sandbox.pb from OPENSHELL_TEST_VM_STATE_DIR for the token check.
  • e2e/rust/e2e-vm.sh and e2e/support/continuity.sh: the VM lane runs seed, restarts its gateway and runs verify until tmachine has a VM row (test(e2e): run testkit families on the VM lane through a KVM host provisioner #5918).
  • Deletes gateway_start.rs, podman_gateway_start.rs, vm_gateway_start.rs and local_driver_token_restart.rs, and their entries in e2e/rust/Cargo.toml, e2e-podman.sh, tests/tmachine/artifacts.nix and TESTING.md.
  • Moves the continuity CLI create-and-wait loop into scenario::create_and_run.

CI rows

Legacy test Now runs in
gateway_start (Docker) continuity ubuntu-docker-rootful/deb (gateway-restart, upgrade)
podman_gateway_start continuity fedora-podman-rootful/rpm (gateway-restart, upgrade)
vm_gateway_start, local_driver_token_restart mise run e2e:vm (VM E2E)

Testing

  • cargo clippy and cargo fmt --check pass for tests/suites/continuity and tests/support; lockfile alignment passes
  • Unit tests for the /proc probe parser and JWT exp decoding
  • Continuity and VM E2E in CI

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Merge gateway_start, podman_gateway_start, vm_gateway_start and the VM
token check from local_driver_token_restart into a sandbox_intent
continuity scenario. The runner's gateway-restart and upgrade
disruptions run it on Docker and Podman; e2e-vm.sh runs seed, restarts
its gateway and runs verify until tmachine has a VM row (#5918).

Part of #6214
Part of #5297

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 4, 2026
@matthewgrossman matthewgrossman added test:e2e Requires end-to-end coverage test:e2e:continuity Run the continuity suites (gateway restart and upgrade) on PR mirrors labels Dec 4, 2026
@matthewgrossman
matthewgrossman marked this pull request as ready for review December 4, 2026 01:07

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue test:e2e:continuity Run the continuity suites (gateway restart and upgrade) on PR mirrors test:e2e Requires end-to-end coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant