Fix Cloud dogfood pause link-down journey

Merged
TE
2mo ago
+70-15

The Cloud VM dogfood workflow now checks out main for access to the staging and production environments, parses agent hook status with jq, and keeps a fresh terminal anchor across pause, resume, relaunch, and restore checks.

The journey also measures pause behavior after stopping both the remote client and WireGuard hub. It records status at +1s, +5s, +15s, and +30s, then resumes and relinks before running the existing link-up pause leg. Link-down failures still recover and delete the VM, and are reported as journey failures.

Evidence from run 36696330152 showed the original resume check losing the -2 line and the provider returning to running after link-up pause.

Verification

  • node --check web/scripts/cloud-vm/dogfood-journey.mjs
  • node --check web/scripts/cloud-vm/dogfood-probes.mjs
  • actionlint .github/workflows/cloud-vm-dogfood.yml
  • python3 scripts/verify-local.py (15/15 selected checks passed)
  • bun run lint:complexity was blocked before changed-file analysis by the installed Bun/TypeScript runtime (ts.ScriptTarget is undefined)

Changelog

none

Review: required review subagent found and fixed a stale connection event mark and ensured link-down phase failures affect the final journey result while cleanup continues.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Summary by cubic

Fixes the Cloud VM dogfood journey so pause/resume terminal checks no longer fail, and adds a pause leg run with the remote client and WireGuard hub stopped.

  • Workflow now checks out main for staging and production environment access.
  • Writes a fresh terminal anchor before pausing and verifies it after resume, replacing the earlier line lost across the pause.
  • Stops the client and hub, pauses, samples provider status at 1s/5s/15s/30s, then resumes and relinks before the existing pause leg.
  • Parses hook status with jq instead of regex sed.
  • Link-down failures now fail the journey while cleanup still deletes the VM.