Repository navigation
feat: Stage 3 one retry (FAILED only, clean new output) + exact-path quarantine skips (Heart#344) - #340
Merged
Conversation
Human ruling, M1 gate 2026-11-12. Both are opt-in flags of run_python.py that only Heart's Stage 3 (workspace-validation.yml, mode=release) passes: - --retry-failed: a FAILED script is re-run once. A pass on the retry is PASSED with `flaky`, `attempts: 2` and the first error kept — recorded, not hidden; a second failure stays FAILED. A TIMEOUT is not retried. - --quarantine FILE: the ACTIVE entries Heart resolved for the workspace (heart.quarantine skip-list). A matching script is SKIPPED, recorded with its bug ref, never run. Expiry, bug-ref and the 3-entry cap are Heart's. - aggregate_results carries `flaky` and `quarantined` lists into report.json and its markdown; `ready` is unchanged. - The per-run JSON stays byte-compatible when neither is used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d the entry (PyAutoHeart#344 review) - Quarantine entries match the exact workspace-relative path, never a substring (`scripts/imaging/fit.py` no longer skips `scripts/multi_imaging/fit.py`). - Before the one retry, files the failed attempt wrote under `output/` (mtime at or after its start) are removed, so a script that failed after its search completed cannot resume from the finished output and pass. Earlier scripts' output is untouched. - A quarantined skip records its entry (`quarantine_entry`: workspace, script, bug, expires) so Heart can judge what the rehearsal skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d (PyAutoHeart#344 review) The mtime-based clean deleted any output file touched during the failed attempt. A script resuming an earlier script's search restores that zip with fresh mtimes and rewrites it, so the clean deleted the earlier script's output and later scripts re-ran or failed: a false red. Now the runner snapshots the paths under output/ before each attempt (only when the retry is on), and before the retry deletes only paths that were not in that snapshot. The attempt's own new search output still goes; the earlier zip survives even though it was rewritten. Co-Authored-By: Claude Opus 5.5 <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.
Summary
Stage 3 runner half of PyAutoLabs/PyAutoHeart#344, programme M2. Merge before the Heart PR.
Test plan
test_tombstonefailures.Gate
pyauto-heart readiness --dev --repos …). No RED override was needed: this is the first ship through the M2.1 scoped gate.Tier: glance. Merge mode: auto-merge on green if the Witness passes, with a post-merge summary.
🤖 Generated with Claude Code