Flaky test ee/spec/features/epic_boards/new_epic_spec.rb:24 # create epic in board new epics in board list creates new epic and opens sidebar

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 #3876226848 failed for a703f470:

Failures:
  1) create epic in board new epics in board list creates new epic and opens sidebar
     Got 1 failure and 1 other error:
     1.1) Failure/Error: expect(page).to have_content('1')
            expected to find text "1" in "0 0"
            Timeout (30s) reached while running a waiting Capybara finder.
            Consider using a non-waiting finder.
            See https://www.cloudbees.com/blog/faster-rails-tests
          # ./ee/spec/features/epic_boards/new_epic_spec.rb:39:in `block (4 levels) in <main>'
          # ./ee/spec/features/epic_boards/new_epic_spec.rb:38:in `block (3 levels) in <main>'
          # ./spec/spec_helper.rb:506:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:498:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:494:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:59:in `with_raw_context'
          # ./spec/spec_helper.rb:494: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/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:
            security - Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.
            https://www.gravatar.com/avatar/10fc7f102be8de7657fb4d80898bbfe3?s=48&d=identicon - Failed to load resource: net::ERR_CONNECTION_RESET
            https://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
            http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js 283780:26 "Cache data may be lost when replacing the metadata field of a EpicList object.\n\nTo address this problem (which is not a bug in Apollo Client), either ensure all objects of type EpicListMetadata have an ID or a custom merge function, or define a custom merge function for the EpicList.metadata field, so InMemoryCache can safely merge these objects:\n\n  existing: {\"__typename\":\"EpicListMetadata\",\"epicsCount\":0}\n  incoming: {\"__typename\":\"EpicListMetadata\",\"totalWeight\":0}\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"
            http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js 284777:14 "[Vue warn]: Error in v-on handler: \"TypeError: Cannot assign to read only property 'epicsCount' of object '#\u003CObject>'\"\n\nfound in\n\n---> \u003CBoardNewItem> at boards/components/board_new_item.vue\n       \u003CBoardNewEpic> at ee/app/assets/javascripts/boards/components/board_new_epic.vue\n         \u003CBoardList> at boards/components/board_list.vue\n           \u003CBoardColumn> at boards/components/board_column.vue\n             \u003CDraggable>\n               \u003CBoardContent> at boards/components/board_content.vue\n                 \u003CBoardApp> at boards/components/board_app.vue\n                   \u003CRoot>"
            http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js 286053:12 TypeError: Cannot assign to read only property 'epicsCount' of object '#<Object>'
                at updateListItemsCount (webpack-internal:///gHlq:59:30)
                at addItemToList (webpack-internal:///gHlq:110:5)
                at Store.ADD_BOARD_ITEM_TO_LIST (webpack-internal:///gHlq:327:5)
                at wrappedMutationHandler (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:293508:13)
                at commitIterator (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:293130:7)
                at Array.forEach (<anonymous>)
                at http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:293129:11
                at Store._withCommit (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:293288:3)
                at Store.commit (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:293128:8)
                at boundCommit (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:293073:19)
            http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js 284777:14 "[Vue warn]: Error in render: \"TypeError: Cannot read properties of undefined (reading 'find')\"\n\nfound in\n\n---> \u003CBoardCardInner> at boards/components/board_card_inner.vue\n       \u003CBoardCard> at boards/components/board_card.vue\n         \u003CBoardList> at boards/components/board_list.vue\n           \u003CBoardColumn> at boards/components/board_column.vue\n             \u003CDraggable>\n               \u003CBoardContent> at boards/components/board_content.vue\n                 \u003CBoardApp> at boards/components/board_app.vue\n                   \u003CRoot>"
            http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js 286053:12 TypeError: Cannot read properties of undefined (reading 'find')
                at VueComponent.showLabelFooter (webpack-internal:///i2UW:177:55)
                at Watcher.get (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:288647:25)
                at Watcher.evaluate (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:288749:21)
                at VueComponent.computedGetter [as showLabelFooter] (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:289001:17)
                at Object.get (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:286238:20)
                at Proxy.render (webpack-internal:///fsfy:86:9)
                at Vue._render (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:287721:22)
                at VueComponent.updateComponent (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:288233:21)
                at Watcher.get (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:288647:25)
                at new Watcher (http://127.0.0.1:39811/assets/webpack/dll.a9f6592ca371/vendor.dll.bundle.js:288636:12)
            https://localhost/com.snowplowanalytics.snowplow/tp2 - Failed to load resource: net::ERR_CONNECTION_REFUSED
          # ./spec/support/capybara.rb:221:in `block (2 levels) in <main>'
          # ./spec/spec_helper.rb:506:in `block (3 levels) in <top (required)>'
          # ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
          # ./spec/spec_helper.rb:498:in `block (2 levels) in <top (required)>'
          # ./spec/spec_helper.rb:494:in `block (3 levels) in <top (required)>'
          # ./lib/gitlab/application_context.rb:59:in `with_raw_context'
          # ./spec/spec_helper.rb:494: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/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 1 minute 16.23 seconds (files took 44.24 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./ee/spec/features/epic_boards/new_epic_spec.rb:24 # create epic in board new epics in board list creates new epic and opens sidebar
[TEST PROF INFO] Time spent in factories: 00:00.827 (1.04% of total time)

create_epic_in_board_new_epics_in_board_list_creates_new_epic_and_opens_sidebar

Edited by Alina Mihaila