Repository navigation
ci: after an sbatch that timed out, use the job it queued instead of submitting a copy - #2523
Merged
Merged
Conversation
…submitting a copy A timed-out sbatch can still queue the job. retry_sbatch then submitted it again, and on Phoenix both copies of shard 1 ran in the same checkout and deleted each other's test inputs (75 failures in MFlowCode#2516's gpu-acc run). Before retrying, look for a pending or running job of ours with the same name, from this directory, submitted since the first attempt.
|
Claude Code Review Head SHA: 9e97132 No review was produced. Claude ran but wrote no review (Claude step: failure). Run and transcript: https://github.com/MFlowCode/MFC/actions/runs/45905921539 |
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.
A timed-out
sbatchcan still queue the job.retry_sbatch(.github/scripts/retry-sbatch.sh) took the timeout to mean nothing was submitted and submitted again. In #2516's Phoenix gpu-acc run, the first shard-1 submission (16191310) timed out yet ran, the retry (16191321) ran too, and the two copies deleted each other'stests/<UUID>/inputs: 620 "simulation.inp is missing" / "MFC.sh: No such file" errors, 75 failed tests, and an orphaned GPU job. Shard 2, alone in its directory, passed 501/501.Before each retry,
retry_sbatchnow looks for a pending or running job of ours with the script's-Jname, from this directory, submitted since the first attempt, and uses it if there is one.SLURM_TIME_FORMAT=standardbecause Frontier setsrelative, which prints only the time for today's jobs.1. Does it solve the problem?
Command that shows it:
cd toolchain && python3 -m pytest mfc/test_retry_sbatch.pyAgainst the real
squeueon Frontier (Slurm withrelativetime format) and Phoenix (26.05), the lookup finds a queued CI job by name and directory, and ignores it when the start time is later than its submit time.2. Does it create another one?
./mfc.sh precheckpasses; the new tests andtest_submit_requeue.pypass3. Is it slower?
N/A: CI script only. The lookup runs only after a timed-out submission.