Skip to content

JRuby thread safety test nondeterministically fails #383

@JacobEvelyn

Description

@JacobEvelyn

In this CI run, running against 403a4e7 with this JRuby version:

jruby 10.0.0.0 (3.4.2) 2025-04-13 6ed59bc847 OpenJDK 64-Bit Server VM 21.0.7+6-LTS on 21.0.7+6-LTS +indy +jit [x86_64-linux]

we got the following test failure:

Failures:

  1) thread safety when the method takes one positional argument when the method has already been called with another argument behaves like provides thread safety guarantees when checking condition: are different values returned? returns different values to each thread, and memoizes one of them
     Failure/Error: expect(thread_return_values.uniq.size).to be > 1

       expected: > 1
            got:   1
     Shared Example Group: "provides thread safety guarantees" called from ./spec/thread_safety_spec.rb:102
     # ./spec/thread_safety_spec.rb:74:in 'block in <main>'

Finished in 3 minutes 48.4 seconds (files took 1.67 seconds to load)
616 examples, 1 failure

Failed examples:

rspec './spec/thread_safety_spec.rb[1:2:1:1:2:1]' # thread safety when the method takes one positional argument when the method has already been called with another argument behaves like provides thread safety guarantees when checking condition: are different values returned? returns different values to each thread, and memoizes one of them

Randomized with seed 5952

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions