Flaky ee/spec/features/epics/update_epic_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 #4147558171 failed for 030d14c2:

Failures:
  1) Update Epic when user with developer access displays the epic behaves like updates epic update form updates the epic and keep the description saved across reload
     Got 0 failures and 3 other errors:
     Shared Example Group: "updates epic" called from ./ee/spec/features/epics/update_epic_spec.rb:184
     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'
          # ./ee/spec/features/epics/update_epic_spec.rb:71:in `block (4 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'.
            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
            http://127.0.0.1:32905/assets/webpack/dll.69ffb48846c3/vendor.dll.bundle.js 289884:20 "[Vue warn]: Injection \"hasIterationsFeature\" not found\n\nfound in\n\n---> \u003CDescription> at issues/show/components/description.vue\n       \u003CIssuableBody> at issues/show/components/app.vue\n         \u003CEpicBody> at ee/app/assets/javascripts/epic/components/epic_body.vue\n           \u003CEpicApp> at ee/app/assets/javascripts/epic/components/epic_app.vue\n             \u003CRoot>"
            webpack-internal:///gzws 144:12 "[gl-modal]: Accessible name for modal missing. Please add title prop or aria-label." #comment
            https://www.gravatar.com/avatar/ec3f8714641492177f26cb2fd4bad7fa?s=48&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/d3e12e6ba98d831e2ef9f7dccad98a8e?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/d3e12e6ba98d831e2ef9f7dccad98a8e?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            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
            http://127.0.0.1:32905/assets/webpack/dll.69ffb48846c3/vendor.dll.bundle.js 289884:20 "[Vue warn]: Injection \"hasIterationsFeature\" not found\n\nfound in\n\n---> \u003CDescription> at issues/show/components/description.vue\n       \u003CIssuableBody> at issues/show/components/app.vue\n         \u003CEpicBody> at ee/app/assets/javascripts/epic/components/epic_body.vue\n           \u003CEpicApp> at ee/app/assets/javascripts/epic/components/epic_app.vue\n             \u003CRoot>"
            webpack-internal:///gzws 144:12 "[gl-modal]: Accessible name for modal missing. Please add title prop or aria-label." #comment
            https://www.gravatar.com/avatar/a6615ab40bb1ee83980f1ef25b6b25ec?s=48&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/3d116a604dea2eeebfea8244c23c2b65?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/3d116a604dea2eeebfea8244c23c2b65?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            http://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
            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
          # ./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)>'
  2) Update Epic when user with developer access displays the epic from a subgroup behaves like updates epic update form updates the epic and keep the description saved across reload
     Got 0 failures and 3 other errors:
     Shared Example Group: "updates epic" called from ./ee/spec/features/epics/update_epic_spec.rb:193
     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)
              (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'
          # ./ee/spec/features/epics/update_epic_spec.rb:71:in `block (4 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)>'
     2.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'.
            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
            http://127.0.0.1:32905/assets/webpack/dll.69ffb48846c3/vendor.dll.bundle.js 289884:20 "[Vue warn]: Injection \"hasIterationsFeature\" not found\n\nfound in\n\n---> \u003CDescription> at issues/show/components/description.vue\n       \u003CIssuableBody> at issues/show/components/app.vue\n         \u003CEpicBody> at ee/app/assets/javascripts/epic/components/epic_body.vue\n           \u003CEpicApp> at ee/app/assets/javascripts/epic/components/epic_app.vue\n             \u003CRoot>"
            webpack-internal:///gzws 144:12 "[gl-modal]: Accessible name for modal missing. Please add title prop or aria-label." #comment
            https://www.gravatar.com/avatar/4b548a42ad63c8f9405a392361142971?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/4d0d683366a19119e4b1e56207c18e54?s=48&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/4b548a42ad63c8f9405a392361142971?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            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
            http://127.0.0.1:32905/assets/webpack/dll.69ffb48846c3/vendor.dll.bundle.js 289884:20 "[Vue warn]: Injection \"hasIterationsFeature\" not found\n\nfound in\n\n---> \u003CDescription> at issues/show/components/description.vue\n       \u003CIssuableBody> at issues/show/components/app.vue\n         \u003CEpicBody> at ee/app/assets/javascripts/epic/components/epic_body.vue\n           \u003CEpicApp> at ee/app/assets/javascripts/epic/components/epic_app.vue\n             \u003CRoot>"
            webpack-internal:///gzws 144:12 "[gl-modal]: Accessible name for modal missing. Please add title prop or aria-label." #comment
            https://www.gravatar.com/avatar/7d196c5bbf998f323711e5d29c42dc98?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/0a04abe79a9fbc43941010fa39094c53?s=48&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://www.gravatar.com/avatar/7d196c5bbf998f323711e5d29c42dc98?s=80&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            http://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
            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
          # ./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)>'
     2.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 23 minutes 10 seconds (files took 1 minute 3.23 seconds to load)
377 examples, 2 failures
Failed examples:
rspec './ee/spec/features/epics/update_epic_spec.rb[1:2:1:1:2]' # Update Epic when user with developer access displays the epic behaves like updates epic update form updates the epic and keep the description saved across reload
rspec './ee/spec/features/epics/update_epic_spec.rb[1:3:1:1:2]' # Update Epic when user with developer access displays the epic from a subgroup behaves like updates epic update form updates the epic and keep the description saved across reload