Repository navigation
ci: check for new Ruby releases hourly without a checkout - #79
Conversation
Pick up new Ruby releases sooner and make the no-op run nearly free. A new check job compares ruby/ruby's tags (git ls-remote, no API calls) with recipes/rubies.yml fetched raw at the triggering commit. It needs no checkout, Ruby setup, or token. The bump job only runs when it finds a version without a recipe. Releases always have tags, so the tag list is a superset of the release list the bump job reads: the check can only over-report, never miss a release. The schedule goes from twice a day (and GitHub delayed those runs by hours) to hourly at minute 17. Bundled gems bumping moves to its own job that runs on the existing twice-daily cadence, on push and on dispatch. release-new is left alone: its release listing includes drafts, which a tag listing would miss, and a rebuild of an in-progress release deletes it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
[Medium impact] The changes appear safe to merge; no blocking issue was found. SummaryThe PR adds an hourly tag check that gates Ruby recipe updates and moves bundled-gem updates into a separate job. Since the previous review:
The tests address the previous unnumbered finding. No new actionable issues were found. Reviews (2) · Last reviewed commit: "ci: test the autobump check and run the ..." · Reviewed by Greptile |
Add fixture tests for the check job's decision, run from the CI syntax job: current recipes, a missing stable version, a missing prerelease, underscore and dotted tag formats, prereleases in a series that has a stable release, and series older than 3.2. The script is extracted from the workflow, so the tests run the code that runs in CI. Bundled gem bumps move from twice a day to Mondays. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 84cd04d. Configure here.
| # Hourly: look for new Ruby releases (the check job needs no checkout). | ||
| - cron: "17 * * * *" | ||
| # Weekly: also look for new bundled gem versions. | ||
| - cron: "47 4 * * 1" |
There was a problem hiding this comment.
Bundled gems check runs weekly only
Medium Severity
The bundled-gems job is now tied to the Monday-only cron 47 4 * * 1, so gem pin updates can sit for up to a week. The previous workflow ran that bump twice a day, and this change was meant to keep that cadence while moving gems into their own job.
Reviewed by Cursor Bugbot for commit 84cd04d. Configure here.


New Ruby releases now reach jdx/ruby sooner. Today autobump runs twice a day, and GitHub delayed recent runs by 4–7 hours, so a release could wait most of a day. Example: upstream shipped 4.0.10 at 23:35 UTC and the recipe landed after the next scheduled run.
What changes
checkjob runs hourly (17 * * * *). It needs no checkout, Ruby setup, token or API call: it comparesgit ls-remote --tagsof ruby/ruby withrecipes/rubies.ymlfetched raw at the triggering commit. A run with nothing new is a few seconds.checkfinds a stable or prerelease version with no recipe. It is otherwise unchanged. Releases always have tags, so the tag list is a superset of the release list the bump job reads: the check can only over-report, never miss one.bundled-gemsjob. It now runs weekly, on Mondays (47 4 * * 1), and still runs on push and dispatch, because the script queries rubygems.notify-failurenow covers all three jobs. Jobs gettimeout-minutes, andcheckgetspermissions: {}.release-newis deliberately untouched: itsgh release listincludes drafts, which a tag listing would miss, and re-triggering a release that is mid-build deletes it.Testing
Fixture tests (
test/autobump_check_test.sh, run in CI) cover the check script. I also ran it against live ruby/ruby tags:needs_bump=falsewith current recipes, andtruewith 4.0.10 or 4.1.0-preview1 removed. jactionlint reports only findings that were already there (unpinnedsetup-ruby, two shellcheck notes, workflow-levelcontents: write).🤖 Generated with Claude Code
Note
Low Risk
CI/workflow-only changes; no runtime app logic, though a buggy check could delay or spuriously trigger recipe bumps.
Overview
Adds a cheap
checkjob that runs hourly and comparesruby/rubytags (git ls-remote) torecipes/rubies.yml(raw fetch +yq) without checkout, Ruby, or tokens. It setsneeds_bump; the existing recipe bump job runs only when that flag is true.Scheduling moves from twice daily to hourly Ruby checks (
17 * * * *) plus weekly bundled-gem bumps (47 4 * * 1). Bundled-gem work is a separatebundled-gemsjob that skips the hourly cron; failure emailnotify-failurenow watches all three jobs, with timeouts on jobs.CI gains
test/autobump_check_test.sh, wired intests.yml, which pulls the check script from the workflow and tests it with stubbedgit/curlfixtures.Reviewed by Cursor Bugbot for commit 84cd04d. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit