feat(cli): extend --retry-errors to resume missing cases from crashed runs#976
Merged
feat(cli): extend --retry-errors to resume missing cases from crashed runs#976
Conversation
… runs (#975) Previously --retry-errors only re-ran execution_error test cases. If the process crashed mid-run, cases that never started were lost. Now uses an exclusion filter (negating completed test IDs) so both error cases AND missing cases are re-run, enabling crash recovery without a new checkpoint system. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Deploying agentv with
|
| Latest commit: |
9b392e8
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://83b6df70.agentv.pages.dev |
| Branch Preview URL: | https://feat-975-retry-resume-missin.agentv.pages.dev |
Collaborator
Author
E2E Verification ResultsTest 1: Crash recovery — missing cases are re-runRed (before): Green (after): Correctly ran the 3 missing cases and merged the 2 preserved results. Test 2: Error cases still re-run (backward compat)
Error cases re-run, completed cases preserved, total correct. Test 3: All completed — nothing to retry
Exits cleanly without re-running anything. |
1. Matrix safety: loadFullyCompletedTestIds only excludes test IDs where
ALL results are non-error. If case-1 succeeded on target A but errored
on target B, case-1 re-runs on both targets (conservative).
2. Glob escaping: buildExclusionFilter escapes micromatch metacharacters
in test IDs so IDs with *, ?, [], {}, ! match literally.
3. Early-return message: changed from "All tests completed successfully"
to "No execution errors or missing cases" since non-error results
include quality_failure.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #975
Summary
--retry-errorsto also re-run test cases that are missing from the previous output (e.g., due to a crash or Ctrl+C mid-run), not justexecution_errorcasesindex.jsonlartifactsHow it works
Previously
--retry-errorsbuilt an inclusion filter matching only error test IDs. Now it builds an exclusion filter (!{completed-1,completed-2,...}) that skips already-completed tests. This naturally includes:execution_error)Test plan
loadFullyCompletedTestIds(),buildExclusionFilter()(12 tests pass)--retry-errorsruns 3 missing cases, merges 2 preserved🤖 Generated with Claude Code