-
Notifications
You must be signed in to change notification settings - Fork 106
testcase: remove needless instance variables added during test runs #303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
GitHub: test-unitGH-235 Since c26354f, instance variables add during test runs persisted longer than before. This patch ensures they are garbage collected at any time after each test run. Co-authored-by: Sutou Kouhei <kou@clear-code.com>
|
Does the JRuby CI failure relate to this change? https://github.com/test-unit/test-unit/actions/runs/13867125431/job/38808320158?pr=303#step:5:14 |
|
https://github.com/test-unit/test-unit/actions/runs/13870167318/job/38815791782#step:5:12 It seems that this is a JRuby problem. |
|
Thanks for your investigate. I also think that this is a JRuby problem. Recently, test-unit/lib/test/unit/test-suite-runner.rb Lines 95 to 101 in 22a36aa
test-unit/lib/test/unit/testsuite.rb Line 50 in 22a36aa
Steps to reproduce: $ jruby -v -e '
class TestSuite
def run(result, run_context: nil, &progress_block)
end
end
c = TestSuite.new
p c.method(:run).arity
'Expected result: jruby 10.0.0.0-SNAPSHOT (3.4.2) 2025-03-15 a4e4d7dc4c OpenJDK 64-Bit Server VM 21+35-2513 on 21+35-2513 +indy +jit [x86_64-linux]
-2Actual result: jruby 10.0.0.0-SNAPSHOT (3.4.2) 2025-03-15 a4e4d7dc4c OpenJDK 64-Bit Server VM 21+35-2513 on 21+35-2513 +indy +jit [x86_64-linux]
1I reported this issue to JRuby in jruby/jruby#8698. See also: |
|
Thanks! |
|
Thanks for your review! JRuby problem has been resolved by jruby/jruby#8706. $ jruby -v -e '
class C
def x(a, b: nil, &c)
end
end
c = C.new
p c.method(:x).arity
'
jruby 10.0.0.0-SNAPSHOT (3.4.2) 2025-03-19 69be2d1891 OpenJDK 64-Bit Server VM 21+35-2513 on 21+35-2513 +indy +jit [x86_64-linux]
-2The JRuby CI failure may turn into success. |
GitHub: GH-235
Since c26354f, instance variables add during test runs persisted longer than before. This patch ensures they are garbage collected at any time after each test run.
Reported by akira yamada. Thanks!!!