[DRE-maint] Bug#1005446: ruby-clockwork: FTBFS: ERROR: Test "ruby2.7" failed.

Lucas Nussbaum lucas at debian.org
Sun Feb 13 07:06:27 GMT 2022


Source: ruby-clockwork
Version: 2.0.4-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220212 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> /usr/bin/ruby2.7 /usr/bin/gem2deb-test-runner
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby2.7                           │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-clockwork/usr/share/rubygems-integration/all:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/x86_64-linux-gnu/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -e gem\ \"clockwork\"
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby2.7 from debian/ruby-tests.rake                            │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-clockwork/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-clockwork/usr/share/rubygems-integration/all:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/x86_64-linux-gnu/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -S rake -f debian/ruby-tests.rake
> /usr/bin/ruby2.7 -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/at_test.rb" "test/clockwork_test.rb" "test/database_events/event_store_test.rb" "test/database_events/synchronizer_test.rb" "test/event_test.rb" "test/manager_test.rb" "test/samples/signal_test.rb" "test/database_events/test_helpers.rb" -v
> /<<PKGBUILDDIR>>/test/database_events/support/active_record_fake.rb:32: warning: `*' interpreted as argument prefix
> /<<PKGBUILDDIR>>/test/database_events/test_helpers.rb:41: warning: method redefined; discarding old name
> /<<PKGBUILDDIR>>/test/database_events/test_helpers.rb:50: warning: method redefined; discarding old name
> /<<PKGBUILDDIR>>/test/database_events/test_helpers.rb:64: warning: method redefined; discarding old name
> Run options: -v --seed 258
> 
> # Running:
> 
> Clockwork::Manager:::at option#test_0002_twice a day at 16:20 and 18:10 = 0.00 s = .
> Clockwork::Manager:::at option#test_0001_once a day at 16:20 = 0.00 s = .
> Clockwork::Event::#thread?::manager config thread option set to true#test_0001_is true = 0.00 s = .
> Clockwork::Event::#thread?::manager config thread option set to true#test_0002_is false when event thread option set = 0.00 s = .
> Clockwork::At#test_0005_16:** = 0.00 s = .
> Clockwork::At#test_0009_invalid time 32:00 = 0.00 s = .
> Clockwork::At#test_0001_16:20 = 0.00 s = .
> Clockwork::At#test_0003_**:20 with two stars = 0.00 s = .
> Clockwork::At#test_0013_invalid multi-line with 12:** = 0.00 s = .
> Clockwork::At#test_0010_invalid multi-line with Sat 12:00 = 0.00 s = .
> Clockwork::At#test_0007_Saturday 12:00 = 0.00 s = .
> Clockwork::At#test_0012_invalid multi-line with *:10 = 0.00 s = .
> Clockwork::At#test_0008_sat 12:00 = 0.00 s = .
> Clockwork::At#test_0011_invalid multi-line with 8:30 = 0.00 s = .
> Clockwork::At#test_0002_8:20 = 0.00 s = .
> Clockwork::At#test_0004_*:20 with one star = 0.00 s = .
> Clockwork::At#test_0006_8:** = 0.00 s = .
> Clockwork::Event::#run_now?::event skip_first_run option set to true#test_0001_returns false on first attempt = 0.00 s = .
> Clockwork::Event::#run_now?::event skip_first_run option set to true#test_0002_returns true on subsequent attempts = 0.00 s = .
> Clockwork::Manager::error_handler#test_0001_registered error_handler handles error from event = 0.00 s = .
> Clockwork::Manager::error_handler#test_0002_error is notified to logger and handler = 0.00 s = .
> Clockwork::Manager::error_handler#test_0003_error in handler will NOT be suppressed = 0.00 s = .
> Clockwork::DatabaseEvents::EventStore::#register#test_0001_adds the event to the event group = 0.00 s = E
> Clockwork::Manager::callbacks#test_0004_should run before_run twice if two events are registered = 0.00 s = .
> Clockwork::Manager::callbacks#test_0006_should run after_run callback for each event = 0.00 s = .
> Clockwork::Manager::callbacks#test_0007_should run after_tick callback once = 0.00 s = .
> Clockwork::Manager::callbacks#test_0005_should run even jobs only = 0.00 s = .
> Clockwork::Manager::callbacks#test_0002_should run before_tick callback once on tick = 0.00 s = .
> Clockwork::Manager::callbacks#test_0003_should not run events if before_tick returns false = 0.00 s = .
> Clockwork::Manager::callbacks#test_0001_should not accept unknown callback name = 0.00 s = .
> Clockwork::Event::#thread?::manager config thread option not set#test_0001_is true if event thread option is true = 0.00 s = .
> Clockwork::Event::#run_now?::event skip_first_run option not set#test_0001_returns true on first attempt = 0.00 s = .
> Clockwork::Manager:::tz option#test_0002_should be able to specify a different timezone than local = 0.01 s = .
> Clockwork::Manager:::tz option#test_0003_should be able to specify a different timezone than local for multiple times = 0.00 s = .
> Clockwork::Manager:::tz option#test_0004_should be able to configure a default timezone to use for all events = 0.00 s = .
> Clockwork::Manager:::tz option#test_0001_time zone is not set by default = 0.00 s = .
> Clockwork::Manager:::tz option#test_0005_should be able to override a default timezone in an event = 0.00 s = .
> Clockwork#test_0005_should pass all arguments to every = /<<PKGBUILDDIR>>/debian/ruby-clockwork/usr/lib/ruby/vendor_ruby/clockwork/manager.rb:40: warning: instance variable @error_handler not initialized
> 0.00 s = F
> Clockwork#test_0002_should log event correctly = 0.00 s = .
> Clockwork#test_0003_should pass event without modification to handler = 0.00 s = .
> Clockwork#test_0004_should not run anything after reset = 0.00 s = .
> Clockwork#test_0006_support module re-open style = 0.00 s = .
> Clockwork#test_0001_should run events with configured logger = 0.00 s = .
> Clockwork::Manager::max_threads#test_0001_should warn when an event tries to generate threads more than max_threads = 0.00 s = .
> Clockwork::Manager::max_threads#test_0002_should not warn when thread is managed by others = 0.00 s = .
> Clockwork::Manager:::if option#test_0002_:if false then never run = 0.00 s = .
> Clockwork::Manager:::if option#test_0003_:if the first day of month = 0.00 s = .
> Clockwork::Manager:::if option#test_0001_:if true then always run = 0.00 s = .
> Clockwork::Manager:::if option#test_0005_:if is not callable then raise ArgumentError = 0.00 s = .
> Clockwork::Manager:::if option#test_0004_:if it is compared to a time with zone = 0.00 s = .
> Clockwork::Event::#run_now?::event skip_first_run option set to false#test_0001_returns true on first attempt = 0.00 s = .
> Clockwork::Manager#test_0008_general handler = 0.00 s = .
> Clockwork::Manager#test_0005_won't drift later and later = 0.00 s = .
> Clockwork::Manager#test_0013_exceptions still set the last timestamp to avoid spastic error loops = /<<PKGBUILDDIR>>/debian/ruby-clockwork/usr/lib/ruby/vendor_ruby/clockwork/manager.rb:40: warning: instance variable @error_handler not initialized
> 0.00 s = .
> Clockwork::Manager#test_0014_should be configurable = 0.00 s = .
> Clockwork::Manager#test_0015_configuration should have reasonable defaults = 0.00 s = .
> Clockwork::Manager#test_0017_should accept options without job name = 0.00 s = .
> Clockwork::Manager#test_0002_every three minutes = 0.00 s = .
> Clockwork::Manager#test_0016_should accept unnamed job = 0.00 s = .
> Clockwork::Manager#test_0001_once a minute = 0.00 s = .
> Clockwork::Manager#test_0006_aborts when no handler defined = 0.00 s = .
> Clockwork::Manager#test_0012_exceptions are trapped and logged = /<<PKGBUILDDIR>>/debian/ruby-clockwork/usr/lib/ruby/vendor_ruby/clockwork/manager.rb:40: warning: instance variable @error_handler not initialized
> 0.00 s = .
> Clockwork::Manager#test_0004_once a week = 0.00 s = .
> Clockwork::Manager#test_0010_should pass time to the general handler = 0.00 s = .
> Clockwork::Manager#test_0003_once an hour = 0.00 s = .
> Clockwork::Manager#test_0011_should pass time to the event-specific handler = 0.00 s = .
> Clockwork::Manager#test_0007_aborts when fails to parse = 0.00 s = .
> Clockwork::Manager#test_0009_event-specific handler = 0.00 s = .
> 
> Finished in 0.021601s, 3148.0265 runs/s, 5879.4023 assertions/s.
> 
>   1) Error:
> Clockwork::DatabaseEvents::EventStore::#register#test_0001_adds the event to the event group:
> NameError: uninitialized constant OpenStruct
>     /<<PKGBUILDDIR>>/test/database_events/event_store_test.rb:15:in `block (3 levels) in <top (required)>'
> 
>   2) Failure:
> Clockwork#test_0005_should pass all arguments to every [/<<PKGBUILDDIR>>/test/clockwork_test.rb:72]:
> Expected false to be truthy.
> 
> 68 runs, 127 assertions, 1 failures, 1 errors, 0 skips
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.0.6/lib/rake/rake_test_loader.rb "test/at_test.rb" "test/clockwork_test.rb" "test/database_events/event_store_test.rb" "test/database_events/synchronizer_test.rb" "test/event_test.rb" "test/manager_test.rb" "test/samples/signal_test.rb" "test/database_events/test_helpers.rb" -v]
> /usr/share/rubygems-integration/all/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby2.7" failed.


The full build log is available from:
http://qa-logs.debian.net/2022/02/12/ruby-clockwork_2.0.4-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-ruby-extras-maintainers mailing list