Repository navigation
fix(ci): a push in its gate holds a remote marker, so the auto-sync leaves the branch alone (#20260) - #20570
fix(ci): a push in its gate holds a remote marker, so the auto-sync leaves the branch alone (#20260)#20570mrveiss wants to merge 9 commits into
Conversation
…eaves the branch alone (#20260)
|
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 38 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. |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
Code review on PR #20570 (head ed29472): approve, with Read only; nothing was run. A marker failure can't block a push, an expired or stale marker is ignored, and
|
…/AutoBot-AI into issue-20260-push-marker # Conflicts: # tools/git-hooks/pre-push
|
Code review on PR #20570 (head c199b2f): approve, to land after #20592, which it contains. Read only; I didn't run the tests. A queued push renews its marker after the wait, tested against a really held slot, and |
Thinking Path
The sync bot merges main into open PR branches. A push waiting in the pre-push hook, up to 20 minutes under load, can lose to it and fail at the very end with
cannot lock ref, so the whole gate runs again. The bot runs on GitHub and cannot see a local hook. The maintainer chose a remote marker with a TTL equal to the hook's limit.What Changed
refs/push-gate/<branch>/<expiry>through the API when it starts on a branch, and removes it on exit. It uses the API because agit pushof the marker would re-enter this hook. A dead hook's marker is removed on that branch's next push and is ignored after expiry anyway.MAX_BUDGET, the fast gate's two bounded stages.AUTOBOT_PUSH_MARKER=0turns it off.Verification
repo_tests/push_marker_20260_test.pypasses: marker parsing and expiry, the bot's skip with a contrast case, and the hook's real functions in bash against a fakegh. Against the real API I created, listed throughls-remote, and deleted one marker onrefs/push-gate/.Limits:
AUTOBOT_PREPUSH_FULL=1) can run longer than the expiry.Refs #20260
Model Used
Claude Opus 5.5