Flaky issue spec/features/snippets/user_creates_snippet_spec.rb:131
- https://gitlab.com/gitlab-org/gitlab/-/jobs/4147558105
- https://gitlab.com/gitlab-org/gitlab/-/jobs/4147557965
Summary
Steps to reproduce
Please refer to Flaky tests documentation to learn more about how to reproduce them.
Proposed Resolution
Please refer to the Resolution guidance to learn more about resolution of broken master.
Once the flaky failure has been fixed on the default branch, open merge requests to cherry-pick the fix to the active stable branches.
Failures:
1) User creates snippet previews a snippet with file
Got 0 failures and 3 other errors:
1.1) Failure/Error: Capybara.page.evaluate_script('window.pendingRequests || window.pendingApolloRequests || window.pendingRailsUJSRequests || 0').zero? # rubocop:disable Style/NumericPredicate
Selenium::WebDriver::Error::UnexpectedAlertOpenError:
unexpected alert open: {Alert text : }
(Session info: headless chrome=109.0.5414.119)
(Driver info: chromedriver=109.0.5414.74 (e7c5703604daa9cc128ccf5a5d3e993513758913-refs/branch-heads/5414@{#1172}),platform=Linux 5.4.109+ x86_64)
# ./spec/support/helpers/wait_for_requests.rb:55:in `finished_all_ajax_requests?'
# ./spec/support/helpers/wait_for_requests.rb:51:in `finished_all_js_requests?'
# ./spec/support/helpers/wait_for_requests.rb:38:in `block in wait_for_all_requests'
# ./spec/support/helpers/wait_helpers.rb:10:in `block in wait_for'
# ./spec/support/helpers/wait_helpers.rb:9:in `loop'
# ./spec/support/helpers/wait_helpers.rb:9:in `wait_for'
# ./spec/support/helpers/wait_for_requests.rb:36:in `wait_for_all_requests'
# ./spec/support/capybara_wait_for_all_requests_after_visit_page.rb:17:in `visit'
# ./spec/features/snippets/user_creates_snippet_spec.rb:146:in `block (5 levels) in <top (required)>'
# ./spec/features/snippets/user_creates_snippet_spec.rb:146:in `block (4 levels) in <top (required)>'
# ./spec/support/helpers/inspect_requests.rb:12:in `inspect_requests'
# ./spec/features/snippets/user_creates_snippet_spec.rb:146:in `block (3 levels) in <top (required)>'
# ./spec/features/snippets/user_creates_snippet_spec.rb:137:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:427:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:419:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:415:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:61:in `with_raw_context'
# ./spec/spec_helper.rb:415:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:242:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:62:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (2 levels) in <top (required)>'
1.2) Failure/Error: raise JSConsoleError, message
JSConsoleError:
Unexpected browser console output:
security - Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
http://127.0.0.1:46473/uploads/-/system/user/270/a0e8eb12627fe01826f6b0a1cb13093f/banana_sample.gif?ran=16QJcaTP/G3UXxw/qrUekaoQFvk= - Failed to load resource: the server responded with a status of 404 (Not Found)
security - Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
webpack-internal:///gzws 144:12 "[gl-button]: Accessible name missing. Please add inner text or aria-label." button.btn.btn-default.btn-md.gl-button.btn-default-tertiary.btn-icon
https://www.gravatar.com/avatar/7c7d4a2373f9c93d0b2357caac18e4f1?s=48&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
http://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
# ./spec/support/capybara.rb:221:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:427:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:419:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:415:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:61:in `with_raw_context'
# ./spec/spec_helper.rb:415:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:242:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:62:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (2 levels) in <top (required)>'
1.3) Failure/Error: example.run
Selenium::WebDriver::Error::UnexpectedAlertOpenError:
unexpected alert open: {Alert text : }
(Session info: headless chrome=109.0.5414.119)
(Driver info: chromedriver=109.0.5414.74 (e7c5703604daa9cc128ccf5a5d3e993513758913-refs/branch-heads/5414@{#1172}),platform=Linux 5.4.109+ x86_64)
# ./spec/spec_helper.rb:427:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:419:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:415:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:61:in `with_raw_context'
# ./spec/spec_helper.rb:415:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:242:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:62:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (2 levels) in <top (required)>'
Finished in 28 minutes 13 seconds (files took 44.81 seconds to load)
196 examples, 1 failures
Failed examples:
rspec ./spec/features/snippets/user_creates_snippet_spec.rb:131 # User creates snippet previews a snippet with file
Edited by Alina Mihaila