Skip to content

fix(gates): retry test shards after SSH failure - #2373

Open
vicmcorrea wants to merge 1 commit into
bendlang:mainfrom
vicmcorrea:fix/test-shard-ssh-status
Open

vicmcorrea wants to merge 1 commit into
bendlang:mainfrom
vicmcorrea:fix/test-shard-ssh-status

Conversation

@vicmcorrea

Copy link
Copy Markdown
Contributor

Problem

@@B4 built arrives before the runtime probes. If SSH fails after the last probe prints its expected output but before it sends the exit marker, the test gate can grade that incomplete shard as a pass.

Fix

Check the outer SSH exit status before parsing the shard output. A failed session uses the existing node retry path, which queues the shard for a healthy worker or fails if the pool is exhausted. Prior maintainer guidance on dead-node retries

Blast radius

One condition in gates/test.ts. It affects how the test gate handles failed shard sessions. Individual tests still report their exit codes through the existing @@B4 exit markers.

Validation

  • Ran the real test gate and worker pool with local child processes standing in for remote sessions. On main, the eight-test fixture reported PASS: 8 / 8 after both an SSH disconnect and a timeout before the final exit marker. With the patch, both fail when no other worker is available.
  • With a healthy worker available, the patch retries the same shard and passes. Complete shards, expected nonzero test exits, and unexpected test failures retain their existing verdicts. A failed cleanup also takes the retry path.
  • Three independent local reviews found no issues. The repository gate passed 56/56 with ttok 0.3, and git diff --check passed.

Validation limits

The local harness substitutes child processes for remote SSH sessions. The live M4 test gate was unavailable because the cluster hostname did not resolve.

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