Skip to content

Add FreeBSD and OpenBSD runs of ruby-spec - #9419

Merged
headius merged 8 commits into
jruby:masterfrom
headius:openbsd_gha
May 11, 2026
Merged

headius merged 8 commits into
jruby:masterfrom
headius:openbsd_gha

Conversation

@headius

@headius headius commented May 6, 2026

Copy link
Copy Markdown
Member

This is an attempt to add FreeBSD and OpenBSD runs of ruby/spec to JRuby CI.

These use QEMU-based VM actions:

Current status:

  • The OpenBSD image used by the action claims to be 7.8 but appears to be connected to an older set of ports. The newest JDK offered is 17. I attempted to point it at a different ports location but still failed to find JDK 21.
  • Core specs fail on FreeBSD with various OS-level and time-related failures. These specs may never have been tested on FreeBSD, so it might not indicate a problem with JRuby.

cc @jeremyevans for assistance figuring out OpenBSD JDK 21 and which of these spec failure are expected.

cc @eregon for any interest in getting ruby/spec running on *BSD. It is trivial to do with JRuby but running on other Ruby implementations will require being able to build or install them on these platforms.

@headius headius added this to the Non-Release milestone May 6, 2026
@eregon

eregon commented May 6, 2026

Copy link
Copy Markdown
Contributor

cc @eregon for any interest in getting ruby/spec running on *BSD. It is trivial to do with JRuby but running on other Ruby implementations will require being able to build or install them on these platforms.

Adding that in ruby/spec in CI is probably not gonna happen until there are free *BSD GitHub-hosted runners (no emulation).
We can't just use JRuby instead either because it doesn't pass all the specs and we don't maintain a set of tags in ruby/spec.

@eregon

eregon commented May 6, 2026

Copy link
Copy Markdown
Contributor

https://rubyci.org/ does run on BSD though, so effectively ruby/spec is already passing on BSD.

@headius

headius commented May 8, 2026

Copy link
Copy Markdown
Member Author

We can't just use JRuby

I never suggested that. I just said it would be eaasy with JRuby since it doesn't require a rebuild for each platform.

Obviously if we were adding a *BSD job to ruby-spec it would run with CRuby, but that would require building it from scratch.

effectively ruby/spec is already passing on BSD

Only the version of ruby/spec that has been committed to ruby/ruby runs in that CI. We should include equivalent BSD runs on the ruby/spec repository to catch breakage early.

headius added 4 commits May 8, 2026 18:52
These have never been tagged because we are not typically running
as root. Showed up with the new FreeBSD job because the QEMU env
runs as root.
This allows seeing which constant fails without manually checking.
@headius
headius marked this pull request as ready for review May 11, 2026 19:16
@headius
headius merged commit e8707c2 into jruby:master May 11, 2026
112 of 114 checks passed
@headius
headius deleted the openbsd_gha branch May 11, 2026 19:17
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.

2 participants