Skip to content

Remove excludes and tags for specs and tests that pass on ruby-4.1 - #10220

Open
zev wants to merge 3 commits into
jruby:ruby-4.1from
zev:remove-passing-excludes-41
Open

zev wants to merge 3 commits into
jruby:ruby-4.1from
zev:remove-passing-excludes-41

Conversation

@zev

@zev zev commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

@headius asked for this in #10117 (comment): remove excludes and tags that pass now that #10117, #10128 and #10167 are merged.

Changes

Three commits:

  1. Ruby 4.1 work that has landed (12 lines):
    • the 6 spec tags marked fixed by #10117 / fixed by #10128 (Symbol#to_s frozen; Regexp.new/compile/#initialize frozen; 2 Marshal.load Regexp specs)
    • the MRI excludes TestMarshalFreeze test_extend_string, test_string_ivar, test_string_subclass, test_string_subclass_cycle, test_string_subclass_extend, and TestMarshalFreezeProc#test_extend_string
  2. 104 other fails tags whose examples pass on macOS (try_convert TypeErrors, String#to_f, sprintf %c, it parameter, Encoding aliases, Thread#thread_variable_set, and others). Easier to review separately.
  3. Two of those tags put back after the first CI run: the {m,n}+ possessive Regexp spec fails when specs run repeatedly (Regex caching prevents repeated warnings #8938), and IO#seek with ungotten characters fails on Windows and with WASM Prism. So 102 tags are removed in total.

Testing

  • Spec tags: mspec tag --del fails over :fast, then every changed spec file was run with mspec ci in the default mode, -X-C, -Xjit.threshold=0, and (for language/core) -Xparser.prism -Xparser.prism.wasm, with default and JIT run twice. Any tag whose example failed in one of those runs stays. That kept Array#pack 'U' nil, define_method break/next, Literal Ranges (JIT transition may recreate once-only literal values #8030), and four Prism WASM ones.
  • I kept tags for other platforms and CI (FreeBSD, OpenBSD, GHA, timeouts), and tags that depend on the environment (sockets, signals, C-extension require, Kernel#system, Etc.getlogin, Fiddle). I only ran this on macOS. The first CI run found the two tags in commit 3. Compared with ruby-4.1 CI at a3434dd (run 47223574024), no other example fails. The spec jobs that are still red (spec:ruby:fast, spec:ruby:fast:jit, FreeBSD, OpenBSD, Windows, WASM Prism) fail the same way on ruby-4.1 itself: Method#parameters with &nil, the WASM-only for destructuring spec, and the spec:ruby:fast:jit jobs stop after the GC.config specs.
  • MRI: bin/jruby tool/audit_mri_excludes -m int|jit -r 2 for TestEval, TestMarshal (and Freeze/FreezeProc), TestPack, TestRegexp, TestString, TestString2, TestSymbol and TestStruct. Only the 6 excludes above passed in both modes. I kept TestEval#test_eval_location_binding, which passes on macOS but is excluded for Linux GHA JIT, and TestRegexp#test_once_multithread, which passes in JIT only.

Not in this PR

🤖 Generated with Claude Code

zev and others added 3 commits December 5, 2026 17:21
Symbol#to_s returning a frozen String (jruby#10117) and frozen Regexp
instances (jruby#10128) are merged, so the specs tagged "fixed by" those
pull requests pass now.

TestMarshalFreeze#test_extend_string, test_string_ivar,
test_string_subclass, test_string_subclass_cycle and
test_string_subclass_extend, and
TestMarshalFreezeProc#test_extend_string pass too, after jruby#10167
(singleton_class only refused for deduplicated Strings). Checked with
tool/audit_mri_excludes in int and jit modes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Found with mspec tag --del fails over :fast, then each changed spec
file was run with mspec ci in the default mode, -X-C,
-Xjit.threshold=0 and (language and core) -Xparser.prism
-Xparser.prism.wasm, twice for default and jit. A tag stays if its
example failed in any of those runs, or if the tag is for another
platform or for CI (FreeBSD, OpenBSD, GHA, timeouts) or depends on the
environment (sockets, signals, require of C extensions, Kernel#system,
Etc.getlogin, Fiddle). Only macOS was checked locally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The first CI run showed two of the removed tags are still needed:
the {m,n}+ possessive Regexp spec fails when specs run repeatedly
(jruby#8938), and IO#seek with ungotten characters fails on Windows and
with the WASM Prism parser on Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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