Skip to content

ci: check for new Ruby releases hourly without a checkout - #79

Merged
jdx merged 2 commits into
mainfrom
perf/autobump-check-job
Nov 23, 2026
Merged

jdx merged 2 commits into
mainfrom
perf/autobump-check-job

Conversation

@jdx

@jdx jdx commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

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

  • A new check job runs hourly (17 * * * *). It needs no checkout, Ruby setup, token or API call: it compares git ls-remote --tags of ruby/ruby with recipes/rubies.yml fetched raw at the triggering commit. A run with nothing new is a few seconds.
  • The existing bump job only runs when check finds 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 gems bumping moves to its own bundled-gems job. It now runs weekly, on Mondays (47 4 * * 1), and still runs on push and dispatch, because the script queries rubygems.
  • notify-failure now covers all three jobs. Jobs get timeout-minutes, and check gets permissions: {}.

release-new is deliberately untouched: its gh release list includes 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=false with current recipes, and true with 4.0.10 or 4.1.0-preview1 removed. jactionlint reports only findings that were already there (unpinned setup-ruby, two shellcheck notes, workflow-level contents: 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 check job that runs hourly and compares ruby/ruby tags (git ls-remote) to recipes/rubies.yml (raw fetch + yq) without checkout, Ruby, or tokens. It sets needs_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 separate bundled-gems job that skips the hourly cron; failure email notify-failure now watches all three jobs, with timeouts on jobs.

CI gains test/autobump_check_test.sh, wired in tests.yml, which pulls the check script from the workflow and tests it with stubbed git/curl fixtures.

Reviewed by Cursor Bugbot for commit 84cd04d. Bugbot is set up for automated code reviews on this repo. Configure here.

Summary by CodeRabbit

  • Chores
    • Automated checks for Ruby releases now run hourly, while bundled-gem checks run twice daily.
    • Ruby updates are processed only when a qualifying release is detected. The checks also have execution time limits, and failure notifications account for the status of all check and update jobs.

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>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The workflow adds hourly Ruby checks and twice-daily bundled-gem checks. It checks Ruby tags against recipe keys before running the Ruby autobump job, adds a separate bundled-gem job, and expands failure-notification dependencies.

Changes: Autobump workflow

Layer / File(s) Summary
Ruby release check and autobump
.github/workflows/autobump.yml
The schedule adds hourly checks. A permissionless check compares Ruby tags with recipe keys and sets needs_bump when a qualifying release is missing. The Ruby autobump job runs only when needs_bump is true and has a 30-minute timeout.
Bundled-gem job and failure notifications
.github/workflows/autobump.yml
A separate bundled-gem job skips hourly scheduled runs and has a 15-minute timeout. Failure notifications now depend on the check and both bump jobs.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related PRs

  • jdx/ruby#76: Added the bundled-gems step that this PR moves into a separate job and schedules separately.
  • jdx/ruby#70: Added the failure-notification job whose dependencies this PR expands.
Merge Risk: Minimal · up to 7e5f6

This change makes Ruby release detection hourly and cheap, and moves bundled-gem bumps to their own twice-daily job. One narrow, unusual edge case could delay adding a recipe for an older release, but it does not block merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title uses the conventional commit prefix 'ci:' and names the main change: an hourly check for new Ruby releases that runs without a checkout. The raw summary confirms the workflow now schedules R…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title uses the conventional commit prefix 'ci:' and names the main change: an hourly check for new Ruby releases that runs without a checkout. The raw summary confirms the workflow now schedules Ruby checks hourly and adds a permissionless check job that compares Ruby tags with recipes/rubies.yml. The title is specific and concise, and it does not describe anything absent from the changeset. It omits the bundled-gems job split, which is a secondary change and does not need to appear in the title.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central YAML (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f2c889e2-4f6b-4908-90d8-3605f15ce9e3
Commits

Reviewing files that changed from the base of the PR and between 09c4b6b and 7e5f6b7.

Files selected for processing: 1

  • .github/workflows/autobump.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@greptile-apps

greptile-apps Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The changes appear safe to merge; no blocking issue was found.

Summary

The PR adds an hourly tag check that gates Ruby recipe updates and moves bundled-gem updates into a separate job.

Since the previous review:

  • Hourly checks start Ruby recipe updates only when a version is missing.
  • Bundled-gem updates run in their own job outside hourly scans.

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

Comment thread .github/workflows/autobump.yml Resolved
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>
@jdx
jdx merged commit 128f9b5 into main Nov 23, 2026
12 checks passed
@jdx
jdx deleted the perf/autobump-check-job branch November 23, 2026 18:19

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 84cd04d. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant