Throttle nightly release workflow to every 3 hours#2134
Conversation
- Add a preflight check that skips scheduled releases when main matches the last nightly tag - Keep manual and tag-triggered releases unchanged
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
ApprovabilityVerdict: Approved This is a minor CI/CD workflow change that adjusts the nightly release schedule frequency and adds a check to skip releases when there are no new changes. No production code or runtime behavior is affected. You can customize Macroscope's approvability policy. Learn more. |
Summary
mainhas advanced since the lastnightly-v*tag.Testing
check_changesjob gatespreflightonly for scheduled runs.Note
Low Risk
Workflow-only changes that adjust schedule and add a simple git-tag/commit comparison gate; main risk is inadvertently skipping/triggering scheduled nightlies if tagging or fetch behavior differs from expectations.
Overview
Nightly releases are now scheduled to run every 3 hours instead of once daily.
For scheduled runs, a new
check_changesjob comparesHEADto the most recentnightly-v*tag and gatespreflightso the workflow skips publishing when there are no new commits since the last nightly (manual dispatch and tag-triggered releases still proceed).Reviewed by Cursor Bugbot for commit 10e944b. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Throttle nightly release workflow to every 3 hours and skip runs with no changes
0 9 * * *) to every 3 hours (0 */3 * * *).check_changesjob that compares HEAD to the lastnightly-v*tag and sets ahas_changesoutput.preflightjob now depends oncheck_changesand skips on scheduled runs when no new commits exist since the last nightly tag.Macroscope summarized 10e944b.