Skip to content

Persistent failure in spec/models/ci/pipeline_schedule_spec.rb

https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/225274041

  1) Ci::PipelineSchedule#set_next_run_at when pipeline schedule runs every minute updates next_run_at to the sidekiq worker's execution time
     Failure/Error: expect(pipeline_schedule.next_run_at).to eq(cron_worker_next_run_at)

       expected: 2019-06-04 22:19:00.000000000 +0000
            got: 2019-06-04 23:19:00.000000000 +0000

       (compared using ==)

       Diff:
       @@ -1,2 +1,2 @@
       -Tue, 04 Jun 2019 22:19:00 UTC +00:00
       +Tue, 04 Jun 2019 23:19:00 UTC +00:00
     # ./vendor/ruby/2.6.0/gems/rspec-support-3.7.1/lib/rspec/support.rb:97:in `block in <module:Support>'
     # ./vendor/ruby/2.6.0/gems/rspec-support-3.7.1/lib/rspec/support.rb:106:in `notify_failure'
     # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/fail_with.rb:35:in `fail_with'
     # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:38:in `handle_failure'
     # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:50:in `block in handle_matcher'
     # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:27:in `with_matcher'
     # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/handler.rb:48:in `handle_matcher'
     # ./vendor/ruby/2.6.0/gems/rspec-expectations-3.7.0/lib/rspec/expectations/expectation_target.rb:65:in `to'
     # ./spec/models/ci/pipeline_schedule_spec.rb:132:in `block (4 levels) in <top (required)>'

Doesn't fail locally, could be an order-dependent spec.