Repository navigation
fix(test): verify batch in-flight run compatibility before attaching - #607
Conversation
|
Caution Review failedThe pull request is closed. No actionable comments were generated in the recent review. WalkthroughBatch runs now check an in-flight run’s environment and target URL before attaching. Incompatible or unverifiable conflicts return an error instead of attaching. Tests cover matching and mismatching values, unreadable runs, and environment-listing failures. ChangesBatch Run Conflict Verification
Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Possibly related PRs
Merge Risk:
|
|
🏆 Season 4 CLI Improvement Bonus: entry recorded. Thanks, @yeziR4! To be counted, this PR needs the following by Oct 29, 11:59 PM PT:
Rewards go to merged PRs judged a genuine improvement, and up to three bonus-eligible PRs count per person. Untick the box to withdraw the entry. This comment refreshes when you edit the PR. Full rules. |
What does this PR do?
test create-batch --run --waitpreviously attached to any409 run_in_flightrun ID, even if that run used a different environment or target URL. It now checks compatibility with the existingverifyInFlightRunEnvironmenthelper before attaching, matching the fresh batch-run path.Environment listings are cached per project for the batch. Mismatches and unverifiable explicitly requested targets remain per-test
CONFLICTrows (exit 6), with atest wait <run-id>hint in the existing message field. The attached run descriptor uses the stored target URL instead of the requested URL. Legacy unreadable-run attachment without flags is preserved.Related issue
Closes #387
Season 4 CLI Improvement Bonus
Discord username: ___h___r
Type of change
Validation
Notes for reviewers
Poll/tail handling, JSON shape, unrelated exit codes and tunnel attachment exclusion are unchanged. Codex assisted with implementation and validation.
Summary by CodeRabbit