Failure in spec/lib/gitlab/sidekiq_config_spec.rb | Gitlab::SidekiqConfig.cron_jobs renames job_class to class and removes incomplete jobs
### Test metadata (don't modify) | Field | Value | | ------ | ------ | | File URL | [`spec/lib/gitlab/sidekiq_config_spec.rb#L21`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/spec/lib/gitlab/sidekiq_config_spec.rb#L21) | | Filename | `spec/lib/gitlab/sidekiq_config_spec.rb` | | Description | `Gitlab::SidekiqConfig.cron_jobs renames job_class to class and removes incomplete jobs` | | Test level | unit | | Hash | `a90e0ae00adee8578265d015a05fb565e9cb149b2` | | Duration | 0.06 seconds | | Expected duration | < 27.12 seconds | ### Stack trace ``` Failure/Error: expect(described_class.cron_jobs) .to eq('job' => { 'class' => 'SomeWorker', 'cron' => '0 * * * *' }) expected: {"job"=>{"class"=>"SomeWorker", "cron"=>"0 * * * *"}} got: {"gitlab_service_ping_worker"=>{"class"=>"GitlabServicePingWorker", "cron"=>"4 7 * * 4"}, "import_export_project_cleanup_worker"=>{"class"=>"ImportExportProjectCleanupWorker", "cron"=>"0 * * * *"}} (compared using ==) Diff: @@ -1,2 +1,3 @@ -"job" => {"class"=>"SomeWorker", "cron"=>"0 * * * *"}, +"gitlab_service_ping_worker" => {"class"=>"GitlabServicePingWorker", "cron"=>"4 7 * * 4"}, +"import_export_project_cleanup_worker" => {"class"=>"ImportExportProjectCleanupWorker", "cron"=>"0 * * * *"}, ``` ### Reports (24) 1. 2023-12-23: https://gitlab.com/gitlab-org/gitlab/-/jobs/5814338750 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1117734663) 1. 2023-12-23: https://gitlab.com/gitlab-org/gitlab/-/jobs/5814482388 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1117769014) 1. 2023-12-23: https://gitlab.com/gitlab-org/gitlab/-/jobs/5814622573 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1117802135) 1. 2023-12-23: https://gitlab.com/gitlab-org/gitlab/-/jobs/5814760364 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1117837038) 1. 2023-12-23: https://gitlab.com/gitlab-org/gitlab/-/jobs/5814901506 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1117871366) 1. 2023-12-23: https://gitlab.com/gitlab-org/gitlab/-/jobs/5815046086 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1117905279) 1. 2023-12-23: https://gitlab.com/gitlab-org/gitlab/-/jobs/5815178394 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1117937307) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5815331129 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1117972648) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5815424863 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1117995012) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5815522288 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118013751) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5815694040 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118051162) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5815844196 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118085821) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5815876719 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118093063) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5816011272 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118120017) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5816331323 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118168265) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5816677883 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118218017) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5816972704 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118269052) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5817149697 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118307857) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5817321240 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118343848) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5817461438 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118376415) 1. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5817589688 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118406953) 1. 2023-12-25: https://gitlab.com/gitlab-org/gitlab/-/jobs/5817747650 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118443198) 1. 2023-12-25: https://gitlab.com/gitlab-org/gitlab/-/jobs/5817855208 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118467668) 1. 2023-12-25: https://gitlab.com/gitlab-org/gitlab/-/jobs/5817929412 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1118483793)
issue