Repository navigation
fix(hooks): slot wait keys on loop iteration, not the SECONDS clock (#21225) - #21229
Merged
Merged
Conversation
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 24 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Contributor
Contributor
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
This was referenced Nov 9, 2026
Closed
Owner
Author
|
Verdict: APPROVE Review of head e6e450e.
No hardcoded values or reuse issues introduced. |
This was referenced Nov 9, 2026
Merged
This was referenced Nov 9, 2026
This was referenced Nov 9, 2026
mrveiss
added a commit
that referenced
this pull request
Nov 9, 2026
2 tasks done
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.
Thinking Path
machine_slot_waitdecided "did I wait?" with[ "$SECONDS" != "$start" ]. SECONDS is an integer clock, so a slot taken on the first attempt counted as a wait whenever a second boundary passed, and the hook made an extra network call (push_marker_set). A wait is an iteration of the loop, so the loop records that directly.What Changed
tools/git-hooks/pre-push:machine_slot_waitgets awaitedflag set before thesleep; the "waited" log and marker renewal key on it. The only otherSECONDSuses in the hook (next, the periodic "queued" report) are reporting intervals, not wait decisions; no other site in the hook or its helpers.repo_tests/push_marker_20260_test.py: two tests, the first-attempt take across a boundary (stubmachine_slot_takemovesSECONDSon) sets no marker, and a control with the old clock comparison that does set one.Verification
pytest repo_tests/push_marker_20260_test.py: 12 passed (includestest_queueing_renews_the_markerand the new pair).bash -non the hook is clean; shellcheck is not installed locally.Risks
None identified. A real wait still sets
waited=1before sleeping.Model Used
Claude Sonnet 5.5 (claude-sonnet-5-5)
Issue Link
Closes #21225
Changelog fragment