Flaky test spec/features/projects/ci/editor_spec.rb
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.
Job #4257166285 failed for 8ebf3823:
Failures:
1) Pipeline Editor Editor navigation when a change is made user who tries to navigate away can cancel the action and keep their changes
Got 0 failures and 2 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)
# #0 0x55eb01396303 <unknown>
# #1 0x55eb0116ad37 <unknown>
# #2 0x55eb011dfdb5 <unknown>
# #3 0x55eb011c7753 <unknown>
# #4 0x55eb0119aa14 <unknown>
# #5 0x55eb0119bb7e <unknown>
# #6 0x55eb013e532e <unknown>
# #7 0x55eb013e8c0e <unknown>
# #8 0x55eb013cb610 <unknown>
# #9 0x55eb013e9c23 <unknown>
# #10 0x55eb013bd545 <unknown>
# #11 0x55eb0140a6a8 <unknown>
# #12 0x55eb0140a836 <unknown>
# #13 0x55eb01425d13 <unknown>
# #14 0x7f6c044fcea7 start_thread
# ./spec/support/helpers/wait_for_requests.rb:58:in `finished_all_ajax_requests?'
# ./spec/support/helpers/wait_for_requests.rb:54:in `finished_all_js_requests?'
# ./spec/support/helpers/wait_for_requests.rb:41: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:39:in `wait_for_all_requests'
# ./spec/support/capybara_wait_for_all_requests.rb:39:in `click_link'
# ./spec/features/projects/ci/editor_spec.rb:105:in `block (4 levels) in <main>'
# ./spec/spec_helper.rb:419:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:411:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:407:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:61:in `with_raw_context'
# ./spec/spec_helper.rb:407: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 <main>'
# ./spec/support/fast_quarantine.rb:39:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <main>'
# ./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 <main>'
1.2) Failure/Error: raise JSConsoleError, message
JSConsoleError:
Unexpected browser console output:
webpack-internal:///gzws 163:12 "GlDisclosureDropdown/GlCollapsibleListbox: Toggle is missing a 'tabindex' and cannot be focused.\n Use 'a' or 'button' element instead or make sure to add 'role=\"button\"' along with 'tabindex' otherwise." div.gl-new-dropdown.gl-disclosure-dropdown.gl-ml-3
# ./spec/support/capybara.rb:216:in `block (2 levels) in <main>'
# ./spec/spec_helper.rb:419:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:411:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:407:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:61:in `with_raw_context'
# ./spec/spec_helper.rb:407: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 <main>'
# ./spec/support/fast_quarantine.rb:39:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <main>'
# ./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 <main>'
2) Pipeline Editor Editor navigation when a change is made user who tries to navigate away can confirm the action and discard their change
Got 0 failures and 2 other errors:
2.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)
# #0 0x55eb01396303 <unknown>
# #1 0x55eb0116ad37 <unknown>
# #2 0x55eb011dfdb5 <unknown>
# #3 0x55eb011c7753 <unknown>
# #4 0x55eb0119aa14 <unknown>
# #5 0x55eb0119bb7e <unknown>
# #6 0x55eb013e532e <unknown>
# #7 0x55eb013e8c0e <unknown>
# #8 0x55eb013cb610 <unknown>
# #9 0x55eb013e9c23 <unknown>
# #10 0x55eb013bd545 <unknown>
# #11 0x55eb0140a6a8 <unknown>
# #12 0x55eb0140a836 <unknown>
# #13 0x55eb01425d13 <unknown>
# #14 0x7f6c044fcea7 start_thread
# ./spec/support/helpers/wait_for_requests.rb:58:in `finished_all_ajax_requests?'
# ./spec/support/helpers/wait_for_requests.rb:54:in `finished_all_js_requests?'
# ./spec/support/helpers/wait_for_requests.rb:41: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:39:in `wait_for_all_requests'
# ./spec/support/capybara_wait_for_all_requests.rb:39:in `click_link'
# ./spec/features/projects/ci/editor_spec.rb:117:in `block (4 levels) in <main>'
# ./spec/spec_helper.rb:419:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:411:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:407:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:61:in `with_raw_context'
# ./spec/spec_helper.rb:407: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 <main>'
# ./spec/support/fast_quarantine.rb:39:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <main>'
# ./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 <main>'
2.2) Failure/Error: raise JSConsoleError, message
JSConsoleError:
Unexpected browser console output:
webpack-internal:///gzws 163:12 "GlDisclosureDropdown/GlCollapsibleListbox: Toggle is missing a 'tabindex' and cannot be focused.\n Use 'a' or 'button' element instead or make sure to add 'role=\"button\"' along with 'tabindex' otherwise." div.gl-new-dropdown.gl-disclosure-dropdown.gl-ml-3
# ./spec/support/capybara.rb:216:in `block (2 levels) in <main>'
# ./spec/spec_helper.rb:419:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:411:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:407:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:61:in `with_raw_context'
# ./spec/spec_helper.rb:407: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 <main>'
# ./spec/support/fast_quarantine.rb:39:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <main>'
# ./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 <main>'
Finished in 28.79 seconds (files took 1 minute 2 seconds to load)
2 examples, 2 failures
Failed examples:
rspec ./spec/features/projects/ci/editor_spec.rb:104 # Pipeline Editor Editor navigation when a change is made user who tries to navigate away can cancel the action and keep their changes
rspec ./spec/features/projects/ci/editor_spec.rb:116 # Pipeline Editor Editor navigation when a change is made user who tries to navigate away can confirm the action and discard their change
Edited by 🤖 GitLab Bot 🤖