Skip to content

Conversation

daipom
Copy link
Contributor

@daipom daipom commented Aug 18, 2025

Another idea for #1
It appears that the current CI failure is caused by test-unit 3.6.9 (see test-unit/test-unit#320).

$ bundle exec rake test
/home/daipom/.rbenv/versions/3.2.2/bin/ruby -w -I"lib:lib:test" /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/plugin/test_in_fluent_package_update_notifier.rb"
/home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:36:in `block in included': undefined method `setup' for Test::Unit::TestCase:Class (NoMethodError)

            setup :before => :prepend
            ^^^^^
	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:35:in `module_eval'
	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:35:in `included'
	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:110:in `include'
	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:110:in `<class:TestCase>'
	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:109:in `<module:Unit>'
	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:24:in `<top (required)>'
	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from /home/daipom/work/fluentd/plugins/fluent-plugin-fluent-package-update-notifier/test/helper.rb:2:in `<top (required)>'
	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from /home/daipom/work/fluentd/plugins/fluent-plugin-fluent-package-update-notifier/test/plugin/test_in_fluent_package_update_notifier.rb:1:in `<top (required)>'
	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:21:in `block in <main>'
	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:6:in `select'
	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:6:in `<main>'
rake aborted!

    $ bundle exec rake test
    /home/daipom/.rbenv/versions/3.2.2/bin/ruby -w -I"lib:lib:test" /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/plugin/test_in_fluent_package_update_notifier.rb"
    /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:36:in `block in included': undefined method `setup' for Test::Unit::TestCase:Class (NoMethodError)

                setup :before => :prepend
                ^^^^^
    	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:35:in `module_eval'
    	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:35:in `included'
    	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:110:in `include'
    	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:110:in `<class:TestCase>'
    	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:109:in `<module:Unit>'
    	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/test-unit-rr-1.0.5/lib/test/unit/rr.rb:24:in `<top (required)>'
    	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    	from /home/daipom/work/fluentd/plugins/fluent-plugin-fluent-package-update-notifier/test/helper.rb:2:in `<top (required)>'
    	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    	from /home/daipom/work/fluentd/plugins/fluent-plugin-fluent-package-update-notifier/test/plugin/test_in_fluent_package_update_notifier.rb:1:in `<top (required)>'
    	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    	from <internal:/home/daipom/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
    	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:21:in `block in <main>'
    	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:6:in `select'
    	from /home/daipom/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rake-13.2.1/lib/rake/rake_test_loader.rb:6:in `<main>'
    rake aborted!

Signed-off-by: Daijiro Fukuda <[email protected]>
@daipom daipom mentioned this pull request Aug 18, 2025
@Watson1978 Watson1978 merged commit b5600e9 into fluent-plugins-nursery:main Aug 18, 2025
3 of 6 checks passed
@daipom daipom deleted the test-fix-failure branch August 18, 2025 03:13
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