Repository navigation
fix(tools): the merge train defers a PR whose build gets no lease - #304
Merged
Merged
Conversation
On a loaded machine the governor refused the build of #278 after 600 s and the train dropped the PR as failed. refresh.sh now exits 75 when the build log says the governor gave no lease, and train.sh puts the PR back at the end of the queue, waiting TRAIN_DEFER_SLEEP (600 s) once every queued PR has been deferred in a row. spec_examples runs from the built binary instead of cargo run, so only the build can be refused.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
On a loaded Mac (load 136–221 on 12 cores), the machine's memory governor refused the cargo build for #278 after its 600 s wait. refresh.sh reported "build FAILED" and the train moved on, so the PR dropped out of the queue even though nothing was wrong with it.
refresh.sh: a build whose log saysgovernor: no leaseexits 75 (deferred) instead of 1.spec_examplesnow runs from the binary the build already produced rather than throughcargo run, so the build is the only step that can be refused.train.sh: on 75 the PR goes back to the end of the queue. Once every queued PR has been deferred in a row, it waitsTRAIN_DEFER_SLEEP(default 600 s) before trying again. Real failures still stop the PR as before.Evidence (E2E with a stub refresh.sh that always exits 75 and a stub
gh, queue 901 and 902,TRAIN_DEFER_SLEEP=1): the log shows each PR deferred and requeued, then "every queued PR deferred; waiting 1 s", then the cycle repeating until the test's timeout. The real refresh.sh was restored afterwards and the diff is exactly the change above.bash -nis clean on all three scripts.Source provenance: written for this repository; no external source consulted.