Flaky test './ee/spec/features/projects/pipelines/pipeline_spec.rb[1:4:2:1:2:2]' # Pipeline GET /:project/pipelines/:id/codequality_report for a merge request pipeline behaves like full codequality report with code quality artifact shows code quality repo
https://gitlab.com/gitlab-org/gitlab/-/jobs/868863657
1) Pipeline GET /:project/pipelines/:id/codequality_report for a merge request pipeline behaves like full codequality report with code quality artifact shows code quality report section
Got 1 failure and 1 other error:
Shared Example Group: "full codequality report" called from ./ee/spec/features/projects/pipelines/pipeline_spec.rb:231
1.1) Failure/Error: expect(page).to have_content('Loading codeclimate report')
expected to find text "Loading codeclimate report" in "Skip to content GitLab Projects Groups More Help P project193 Project overview Repository Issues 0 Merge Requests 1 CI / CD Pipelines Editor Jobs Artifacts Schedules Operations Packages & Registries Analytics Wiki Snippets Members Collapse sidebar John Doe357 project193 Pipelines #35 pending Pipeline #35 triggered just now by Cancel running Merge branch 'branch-merged' into 'master' adds bar folder and branch-test text file to check Repository merged_to_root_ref method See merge request !12 1 job for !1 with master into feature stuck b83d6e39 1 related merge request: !1 My title 6 Pipeline Needs Jobs 1 Tests 0 Code Quality Found 3 code quality issues Major - Method `new_array` has 12 arguments (exceeds 4 allowed). Consider refactoring. in foo.rb:10 Major - Method `new_backwards_array` has 12 arguments (exceeds 4 allowed). Consider refactoring. in foo.rb:14 Minor - Avoid parameter lists longer than 5 parameters. [12/5] in foo.rb:14"
# ./ee/spec/features/projects/pipelines/pipeline_spec.rb:195:in `block (5 levels) in <top (required)>'
# ./spec/spec_helper.rb:347:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:338:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:334:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:334:in `block (2 levels) in <top (required)>'
1.2) Failure/Error: raise JSConsoleError, message
JSConsoleError:
Unexpected browser console output:
http://127.0.0.1:42763/namespace44/project193/-/pipelines/35/codequality_report - A preload for 'http://127.0.0.1:42763/assets/fontawesome-webfont-2adefcbc041e7d18fcf2d417879dc5a09997aa64d675b7a3c4b6ce33da13f3fe.woff2?v=4.7.0' is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
http://127.0.0.1:42763/namespace44/project193/-/pipelines/35/codequality_report - The resource http://127.0.0.1:42763/assets/fontawesome-webfont-2adefcbc041e7d18fcf2d417879dc5a09997aa64d675b7a3c4b6ce33da13f3fe.woff2?v=4.7.0 was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
# ./spec/support/capybara.rb:172:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:347:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:338:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:334:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:334:in `block (2 levels) in <top (required)>'
Finished in 15 minutes 32 seconds (files took 41.99 seconds to load)
243 examples, 1 failure
Failed examples:
rspec './ee/spec/features/projects/pipelines/pipeline_spec.rb[1:4:2:1:2:2]' # Pipeline GET /:project/pipelines/:id/codequality_report for a merge request pipeline behaves like full codequality report with code quality artifact shows code quality report section
From what I understand, the test expect the page to include a content that is by definition supposed to disappear once the report is loaded (i.e. Loading codeclimate report
), so I think this is very flaky in essence.