jest predictive as-if-foss
Failed Started
by
@aturinske

Alexander Turinske
1Running with gitlab-runner 16.8.0~beta.67.gb5664e8e (b5664e8e)2 on blue-3.private.runners-manager.gitlab.com/gitlab.com/gitlab-org 6io2xoDD, system ID: s_8f94f77602233 feature flags: FF_NETWORK_PER_BUILD:true, FF_USE_IMPROVED_URL_MASKING:true6Using Docker executor with image registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bookworm-ruby-3.1.patched-golang-1.20-rust-1.73-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-120-yarn-1.22-graphicsmagick-1.3.36 ...7Authenticating with credentials from job payload (GitLab Registry)8Pulling docker image registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bookworm-ruby-3.1.patched-golang-1.20-rust-1.73-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-120-yarn-1.22-graphicsmagick-1.3.36 ...9Using docker image sha256:70731bc8facc25a0a36e6cba5d84b6ef4c6b749fabdb4cc8c066d3e8faf1cb10 for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bookworm-ruby-3.1.patched-golang-1.20-rust-1.73-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-120-yarn-1.22-graphicsmagick-1.3.36 with digest registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bookworm-ruby-3.1.patched-golang-1.20-rust-1.73-node-18.17-postgresql-14@sha256:44f28cc9284da6caf604d0bc8967c863e83ef51869bffdcfeeb7c626a0894156 ...11Running on runner-6io2xodd-project-278964-concurrent-0 via runner-6io2xodd-private-1708056927-3bd3f2fd...13Fetching changes with git depth set to 20...14Initialized empty Git repository in /builds/gitlab-org/gitlab/.git/15Created fresh repository.16remote: Enumerating objects: 142736, done. 17remote: Counting objects: 100% (142736/142736), done. 18remote: Compressing objects: 100% (101035/101035), done. 19remote: Total 142736 (delta 59747), reused 91337 (delta 35979), pack-reused 0 20Receiving objects: 100% (142736/142736), 122.30 MiB | 31.11 MiB/s, done.21Resolving deltas: 100% (59747/59747), done.23 * [new ref] refs/pipelines/1178880320 -> refs/pipelines/117888032024Checking out ed205394 as detached HEAD (ref is refs/merge-requests/144947/merge)...25Skipping Git submodules setup26$ git remote set-url origin "${CI_REPOSITORY_URL}"28Checking cache for node-modules-debian-bookworm-test-16...29Downloading cache from https://storage.googleapis.com/gitlab-com-runners-cache/project/278964/node-modules-debian-bookworm-test-16 30Successfully extracted cache32Downloading artifacts for detect-tests (6187255742)...33Downloading artifacts from coordinator... ok host=storage.googleapis.com id=6187255742 responseStatus=200 OK token=glcbt-6534Downloading artifacts for rspec-all frontend_fixture as-if-foss (6187255778)...35Downloading artifacts from coordinator... ok host=storage.googleapis.com id=6187255778 responseStatus=200 OK token=glcbt-6537Using docker image sha256:70731bc8facc25a0a36e6cba5d84b6ef4c6b749fabdb4cc8c066d3e8faf1cb10 for registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bookworm-ruby-3.1.patched-golang-1.20-rust-1.73-node-18.17-postgresql-14:rubygems-3.4-git-2.36-lfs-2.9-chrome-120-yarn-1.22-graphicsmagick-1.3.36 with digest registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bookworm-ruby-3.1.patched-golang-1.20-rust-1.73-node-18.17-postgresql-14@sha256:44f28cc9284da6caf604d0bc8967c863e83ef51869bffdcfeeb7c626a0894156 ...38$ echo $FOSS_ONLY39140$ [ "$FOSS_ONLY" = "1" ] && rm -rf ee/ qa/spec/ee/ qa/qa/specs/features/ee/ qa/qa/ee/ qa/qa/ee.rb41$ export GOPATH=$CI_PROJECT_DIR/.go42$ mkdir -p $GOPATH43$ source scripts/utils.sh44$ source scripts/prepare_build.sh45Using decomposed database config (config/database.yml.decomposed-postgresql)46Geo DB won't be set up.47Embedding DB won't be set up.48$ yarn_install_script103$ if [[ -s "$RSPEC_CHANGED_FILES_PATH" ]] || [[ -s "$RSPEC_MATCHING_JS_FILES_PATH" ]]; then run_timed_command "yarn jest:ci:predictive"; fi104$ yarn jest:ci:predictive105yarn run v1.22.19106$ jest --config jest.config.js --ci --coverage --findRelatedTests $(cat $RSPEC_CHANGED_FILES_PATH) $(cat $RSPEC_MATCHING_JS_FILES_PATH) --passWithNoTests --testSequencer ./scripts/frontend/parallel_ci_sequencer.js107CI_NODE_INDEX: 1108CI_NODE_TOTAL: 1109Total number of tests: 1110Total number of tests for this runner: 1111`isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`112 at isModuleDeclaration (/builds/gitlab-org/gitlab/node_modules/@babel/types/lib/validators/generated/index.js:2748:35)113 at PluginPass.Program (/builds/gitlab-org/gitlab/node_modules/babel-plugin-lodash/lib/index.js:102:44)114FAIL spec/frontend/vue_shared/components/filtered_search_bar/filtered_search_bar_root_spec.js115 FilteredSearchBarRoot116 data117 ✓ does not initialize the sort dropdown when `sortOptions` are not provided (5 ms)118 when `sortOptions` are provided119 ✓ sets a correct initial value for GlFilteredSearch (27 ms)120 ✓ emits an event with the selectedSortOption provided by default (18 ms)121 ✓ emits an event with the selectedSortDirection provided by default (7 ms)122 computed123 tokenSymbols124 ✓ returns a map containing type and symbols from `tokens` prop (5 ms)125 tokenTitles126 ✓ returns a map containing type and title from `tokens` prop (4 ms)127 sortDirectionIcon128 ✓ passes isAscending=false to GlSorting by default (6 ms)129 ✓ renders `sort-lowest` ascending icon when the sort button is clicked (6 ms)130 filteredRecentSearches131 ✓ returns array of recent searches filtering out any string type (unsupported) items (6 ms)132 ✓ returns array of recent searches sanitizing any duplicate token values (12 ms)133 ✓ returns undefined when recentSearchesStorageKey prop is not set on component (5 ms)134 events135 ✓ emits component event `onFilter` with empty array and true when initially selected filter value was cleared (4 ms)136 methods137 setupRecentSearch138 ✓ initializes `recentSearchesService` and `recentSearchesStore` props when `recentSearchesStorageKey` is available (3 ms)139 ✓ initializes `recentSearchesPromise` prop with a promise by using `recentSearchesService.fetch()` (5 ms)140 removeQuotesEnclosure141 ✓ returns filter array with unescaped strings for values which have spaces (5 ms)142 handleSortOptionChange143 ✓ emits component event `onSort` with selected sort by value (6 ms)144 handleSortDirectionChange145 ✓ sets sort direction to be opposite of its current value (6 ms)146 ✓ emits component event `onSort` with opposite of currently selected sort by value (5 ms)147 handleHistoryItemSelected148 ✓ emits `onFilter` event with provided filters param (4 ms)149 handleClearHistory150 ✕ clears search history from recent searches store (8 ms)151 handleFilterSubmit152 ✓ calls `uniqueTokens` on `filterValue` prop to remove duplicates (9 ms)153 ✓ calls `recentSearchesStore.addRecentSearch` with serialized value of provided `filters` param (14 ms)154 ✕ calls `recentSearchesService.save` with array of searches (7 ms)155 ✕ sets `recentSearches` data prop with array of searches (6 ms)156 ✓ calls `blurSearchInput` method to remove focus from filter input field (6 ms)157 ✓ emits component event `onFilter` with provided filters param (5 ms)158 template159 ✓ renders gl-filtered-search component (6 ms)160 ✓ renders unchecked checkbox when `showCheckbox` prop is true (8 ms)161 ✓ renders checked checkbox when `checkboxChecked` prop is true (5 ms)162 ✓ renders search history items dropdown with formatting done using token symbols (84 ms)163 ✓ renders sort dropdown component (5 ms)164 ✓ renders sort dropdown items (6 ms)165 when token options have `title` attribute defined166 ✓ renders search history items using the provided `title` attribute (54 ms)167 when token options have do not have `title` attribute defined168 ✓ renders search history items using the provided `value` attribute (62 ms)169 watchers170 ✓ syncs filter value (8 ms)171 ✓ does not sync filter value when syncFilterAndSort=false (5 ms)172 ✓ syncs sort values (5 ms)173 ✓ does not sync sort values when syncFilterAndSort=false (6 ms)174 ✓ does not sync sort values when initialSortBy is unset (6 ms)175 ● FilteredSearchBarRoot › methods › handleClearHistory › clears search history from recent searches store176 expect(jest.fn()).toHaveBeenLastCalledWith(...expected)177 Expected: "gitlab-org/gitlab-test-requirements-recent-searches", "[]"178 Received179 3: "canUseLocalStorage", "true"180 -> 4: "gitlab-org/gitlab-test-undefined", "[]"181 Number of calls: 4182 294 | expect(wrapper.vm.recentSearchesStore.setRecentSearches).toHaveBeenCalledWith([]);183 295 | expect(localStorage.setItem).toHaveBeenCalledTimes(4);184 > 296 | expect(localStorage.setItem).toHaveBeenLastCalledWith(185 | ^186 297 | 'gitlab-org/gitlab-test-requirements-recent-searches',187 298 | '[]',188 299 | );189 at Object.toHaveBeenLastCalledWith (spec/frontend/vue_shared/components/filtered_search_bar/filtered_search_bar_root_spec.js:296:38)190 ● FilteredSearchBarRoot › methods › handleFilterSubmit › calls `recentSearchesService.save` with array of searches191 expect(jest.fn()).toHaveBeenLastCalledWith(...expected)192 Expected: "gitlab-org/gitlab-test-requirements-recent-searches", "[[{\"type\":\"author\",\"value\":{\"data\":\"root\",\"operator\":\"=\"}},\"foo\"]]"193 Received194 5: "canUseLocalStorage", "true"195 -> 6: "gitlab-org/gitlab-test-undefined", "[[{\"type\":\"author\",\"value\":{\"data\":\"root\",\"operator\":\"=\"}},\"foo\"]]"196 Number of calls: 6197 341 |198 342 | expect(localStorage.setItem).toHaveBeenCalledTimes(6);199 > 343 | expect(localStorage.setItem).toHaveBeenLastCalledWith(200 | ^201 344 | 'gitlab-org/gitlab-test-requirements-recent-searches',202 345 | JSON.stringify([mockFilters]),203 346 | );204 at Object.toHaveBeenLastCalledWith (spec/frontend/vue_shared/components/filtered_search_bar/filtered_search_bar_root_spec.js:343:38)205 ● FilteredSearchBarRoot › methods › handleFilterSubmit › sets `recentSearches` data prop with array of searches206 expect(jest.fn()).toHaveBeenLastCalledWith(...expected)207 Expected: "gitlab-org/gitlab-test-requirements-recent-searches", "[[{\"type\":\"author\",\"value\":{\"data\":\"root\",\"operator\":\"=\"}},\"foo\"]]"208 Received209 5: "canUseLocalStorage", "true"210 -> 6: "gitlab-org/gitlab-test-undefined", "[[{\"type\":\"author\",\"value\":{\"data\":\"root\",\"operator\":\"=\"}},\"foo\"]]"211 Number of calls: 6212 353 |213 354 | expect(localStorage.setItem).toHaveBeenCalledTimes(6);214 > 355 | expect(localStorage.setItem).toHaveBeenLastCalledWith(215 | ^216 356 | 'gitlab-org/gitlab-test-requirements-recent-searches',217 357 | JSON.stringify([mockFilters]),218 358 | );219 at Object.toHaveBeenLastCalledWith (spec/frontend/vue_shared/components/filtered_search_bar/filtered_search_bar_root_spec.js:355:38)220=============================== Coverage summary ===============================221Statements : 1.03% ( 720/69411 )222Branches : 0.15% ( 45/28804 )223Functions : 0.24% ( 67/27443 )224Lines : 1.06% ( 714/67215 )225================================================================================226Test Suites: 1 failed, 1 total227Tests: 3 failed, 36 passed, 39 total228Snapshots: 0 total229Time: 190.397 s230Ran all test suites related to files matching /spec\/frontend\/vue_shared\/components\/filtered_search_bar\/filtered_search_bar_root_spec.js/i.231error Command failed with exit code 1.232info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.233/usr/bin/bash: line 380: pop_var_context: head of shell_variables not a function context235ERROR: Job failed: exit code 1