Repository navigation
fix(ci): record success on workflow-only auto-format exit (#4752) - #4755
Conversation
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 5 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. CodeRabbit Verify
|
Closes #4752.
The scheduled auto-format pass now records
AUTO_FORMAT_LAST_SUCCESS_SHAwhen every changed file is a workflow file. Previously that branch exited after logging the skip, so the next 15-minute run never matched the unchanged-HEAD fast path and re-ran checkout, Nix install and the same diff until a non-workflow change landed.Changes:
record_successbefore the workflow-onlyexit 0, matching the other no-op success branches.scripts/tests/test_auto_format_workflow.pywith agh/nixstub so the suite can assert the recorded SHA and the unchanged-HEAD fast path; fix the missingGITHUB_REPOSITORYin the existing tests.Tests:
python3 -I scripts/tests/test_auto_format_workflow.py— 4 passed.Tier: class 3 (workflow file) but the change is a one-line call in the existing no-op branch; the PR tier runs its usual checks.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.