Skip to content

Restore the Ruby 2.6-3.1 test checks - #902

Merged
sds merged 2 commits into
sds:mainfrom
apiology:pin-ci-runner-to-ubuntu-24.04
Oct 31, 2026
Merged

sds merged 2 commits into
sds:mainfrom
apiology:pin-ci-runner-to-ubuntu-24.04

Conversation

@apiology

Copy link
Copy Markdown
Contributor

Claude: This PR was written by Claude Code on behalf of @apiology.

Problem

The Ruby 2.6–3.1 test checks fail before any spec runs:

# rspec (3.0, ubuntu) › Set up Ruby 3.0
##[error]Error: Unavailable version 3.0.7 for ruby on ubuntu-26.04

Every PR now shows four red checks regardless of its change, since ubuntu-latest moved to ubuntu-26.04.

Solution

Run the workflows on ubuntu-26.04 named explicitly, with a matrix include keeping the Ruby 2.6–3.1 rows on ubuntu-24.04, where setup-ruby still provides them.

Non-ubuntu matrix rows still use <os>-latest. The explicit job name keeps check names as rspec (<ruby>, <os>), which this repo's upstream requires for merging.

apiology and others added 2 commits October 20, 2026 03:11
ubuntu-latest now resolves to ubuntu-26.04, for which setup-ruby has
no Ruby 2.6-3.1 builds ("Unavailable version 3.0.7 for ruby on
ubuntu-26.04"), so those matrix entries fail before running specs.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wo4FerFK9aaxrGrmVE9ncZ
Name ubuntu-26.04 explicitly so runners do not move when ubuntu-latest
does. setup-ruby has no Ruby 2.6-3.1 builds for ubuntu-26.04, so a
matrix include keeps those rows on ubuntu-24.04. Non-ubuntu rows still
use <os>-latest. The explicit job name keeps check names as
"rspec (<ruby>, <os>)", which upstream requires.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wo4FerFK9aaxrGrmVE9ncZ
@apiology
apiology marked this pull request as ready for review October 21, 2026 20:39
apiology added a commit to apiology/overcommit that referenced this pull request Oct 21, 2026
Merge pin-ci-runner-to-ubuntu-24.04 (sds#902) so the rspec
checks for Ruby 2.6 through 3.1 run on ubuntu-24.04, where setup-ruby
still has those versions. This merge drops out once sds#902 lands
upstream.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wo4FerFK9aaxrGrmVE9ncZ
apiology added a commit to apiology/overcommit that referenced this pull request Oct 21, 2026
Merge pin-ci-runner-to-ubuntu-24.04 (sds#902) so the rspec
checks for Ruby 2.6 through 3.1 run on ubuntu-24.04, where setup-ruby
still has those versions. This merge drops out once sds#902 lands
upstream.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wo4FerFK9aaxrGrmVE9ncZ
@sds
sds merged commit 7f5d449 into sds:main Oct 31, 2026
19 checks passed
@sds sds added the bug label Oct 31, 2026
@sds

sds commented Oct 31, 2026

Copy link
Copy Markdown
Owner

Thank you

sds added a commit to sds/mock_redis that referenced this pull request Oct 31, 2026
Use the same approach as sds/overcommit#902:
- Add runner as a matrix variable defaulting to ubuntu-26.04
- Use include to override runner for Ruby 3.0, 3.1, 3.2 to ubuntu-24.04
- Pin finish job to ubuntu-26.04

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants