Gitlab pipeline not installing dependencies

Running with local gitlab-runner produces a passing result:

apps/7d2d-modlet-manager [develop●] » gitlab-runner exec docker --docker-network-mode=host test
Runtime platform                                    arch=amd64 os=linux pid=25216 revision=577f813d version=12.5.0
WARNING: You most probably have uncommitted changes.
WARNING: These changes will not be tested.
Running with gitlab-runner 12.5.0 (577f813d)
Using Docker executor with image node:12 ...
Pulling docker image node:12 ...
Using docker image sha256:7be6a8478f5f667ef8eef2c29dbd55a5132243755f56eb17d2260592a1eb3c1f for node:12 ...
Running on runner--project-0-concurrent-0 via AORUS-GAMING...
Fetching changes...
Initialized empty Git repository in /builds/project-0/.git/
Created fresh repository.
From /home/dyoung/Projects/apps/7d2d-modlet-manager
 * [new branch]      develop    -> origin/develop
 * [new branch]      master     -> origin/master
Checking out 422ed01b as develop...
Skipping Git submodules setup
Skipping cache extraction due to empty cache key
$ yarn && yarn test
yarn install v1.19.1
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info fsevents@2.0.7: The platform "linux" is incompatible with this module.
info "fsevents@2.0.7" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@rescripts/cli > @rescripts/utilities@0.0.6" has incorrect peer dependency "react-scripts@^2.1.2".
[4/4] Building fresh packages...
$ electron-builder install-app-deps
  • electron-builder  version=21.2.0
  • loaded configuration  file=package.json ("build" field)
  • loaded parent configuration  preset=react-cra
Done in 166.13s.
yarn run v1.19.1
$ react-scripts test
PASS src/helpers/file_exists.test.js
PASS src/helpers/get_modlets.test.js (5.059s)
PASS src/helpers/modlet-class.test.js (5.069s)
PASS src/components/FolderPicker/folder_picker.test.js (5.367s)
PASS src/components/Modlet/modlet.test.js (5.487s)
PASS src/components/Modlets/modlets.test.js (5.525s)
PASS src/App.test.js (5.666s)

Test Suites: 7 passed, 7 total
Tests:       17 passed, 17 total
Snapshots:   2 passed, 2 total
Time:        8.241s
Ran all test suites.
Icon Path: public/favicon.ico
Done in 10.85s.
Skipping cache archiving due to empty cache key
Job succeeded

However, when running via pipeline produces the following error:

[0KRunning with gitlab-runner 12.5.0-rc1 (b295d93b)
[0;m[0K  on docker-auto-scale fa6cab46
[0;msection_start:1575678309:prepare_executor
[0K[0KUsing Docker executor with image node:12 ...
[0;m[0KPulling docker image node:12 ...
[0;m[0KUsing docker image sha256:7be6a8478f5f667ef8eef2c29dbd55a5132243755f56eb17d2260592a1eb3c1f for node:12 ...
[0;msection_end:1575678344:prepare_executor
[0Ksection_start:1575678344:prepare_script
[0KRunning on runner-fa6cab46-project-15454997-concurrent-0 via runner-fa6cab46-srm-1575678153-35322e4a...
section_end:1575678349:prepare_script
[0Ksection_start:1575678349:get_sources
[0K[32;1mFetching changes with git depth set to 50...[0;m
Initialized empty Git repository in /builds/dyoung522/7d2d-modlet-manager/.git/
[32;1mCreated fresh repository.[0;m
From https://gitlab.com/dyoung522/7d2d-modlet-manager
 * [new ref]         refs/pipelines/101329882 -> refs/pipelines/101329882
 * [new branch]      develop                  -> origin/develop
[32;1mChecking out 9ef24eb4 as develop...[0;m
[32;1mSkipping Git submodules setup[0;m
section_end:1575678354:get_sources
[0Ksection_start:1575678354:restore_cache
[0K[32;1mChecking cache for develop-11...[0;m
Downloading cache.zip from https://storage.googleapis.com/gitlab-com-runners-cache/project/15454997/develop-11[0;m 
[32;1mSuccessfully extracted cache[0;m
section_end:1575678373:restore_cache
[0Ksection_start:1575678373:download_artifacts
[0Ksection_end:1575678374:download_artifacts
[0Ksection_start:1575678374:build_script
[0K[32;1m$ yarn && yarn test[0;m
yarn install v1.19.1
[1/4] Resolving packages...
success Already up-to-date.
$ electron-builder install-app-deps
  • electron-builder  version=21.2.0
  • loaded configuration  file=package.json ("build" field)
  • loaded parent configuration  preset=react-cra
Done in 1.54s.
yarn run v1.19.1
$ react-scripts test
PASS src/helpers/modlet-class.test.js
FAIL src/components/Modlet/modlet.test.js
  ● Test suite failed to run

    Cannot find module 'enzyme' from 'modlet.test.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:259:17)
      at Object.<anonymous> (src/components/Modlet/modlet.test.js:2:1)

PASS src/helpers/get_modlets.test.js
FAIL src/App.test.js
  ● Test suite failed to run

    Cannot find module 'jss-plugin-rule-value-function' from 'jssPreset.js'

    However, Jest was able to find:
    	'./jssPreset.d.ts'
    	'./jssPreset.js'

    You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['web.js', 'js', 'web.ts', 'ts', 'web.tsx', 'tsx', 'json', 'web.jsx', 'jsx', 'node'].

    See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string

    However, Jest was able to find:
    	'../styles/styled.d.ts'
    	'../styles/styled.js'

    You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['web.js', 'js', 'web.ts', 'ts', 'web.tsx', 'tsx', 'json', 'web.jsx', 'jsx', 'node'].

    See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string

    However, Jest was able to find:
    	'./Box.d.ts'
    	'./Box.js'

    You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['web.js', 'js', 'web.ts', 'ts', 'web.tsx', 'tsx', 'json', 'web.jsx', 'jsx', 'node'].

    See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string

    However, Jest was able to find:
    	'./App.test.js'
    	'./App.tsx'

    You might want to include a file extension in your import, or update your 'moduleFileExtensions', which is currently ['web.js', 'js', 'web.ts', 'ts', 'web.tsx', 'tsx', 'json', 'web.jsx', 'jsx', 'node'].

    See https://jestjs.io/docs/en/configuration#modulefileextensions-array-string

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:259:17)
      at Object.<anonymous> (node_modules/@material-ui/styles/jssPreset/jssPreset.js:10:58)

PASS src/helpers/file_exists.test.js
FAIL src/components/Modlets/modlets.test.js
  ● Test suite failed to run

    Cannot find module 'enzyme' from 'modlets.test.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:259:17)
      at Object.<anonymous> (src/components/Modlets/modlets.test.js:2:1)

FAIL src/components/FolderPicker/folder_picker.test.js
  ● Test suite failed to run

    Cannot find module 'enzyme' from 'folder_picker.test.js'

      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:259:17)
      at Object.<anonymous> (src/components/FolderPicker/folder_picker.test.js:2:1)

Test Suites: 4 failed, 3 passed, 7 total
Tests:       12 passed, 12 total
Snapshots:   0 total
Time:        4.188s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
section_end:1575678383:build_script
[0Ksection_start:1575678383:after_script
[0Ksection_end:1575678384:after_script
[0Ksection_start:1575678384:upload_artifacts_on_failure
[0Ksection_end:1575678386:upload_artifacts_on_failure
[0K[31;1mERROR: Job failed: exit code 1
[0;m

I've been banging my head against the wall to resolve this issue, but it seems it's something within the pipline architecture that's failing vs a configuration issue on my end. If it is a configuration issue, it's not at all clear what it might be considering everything works as expected in my local gitlab-runner environment.

Assignee Loading
Time tracking Loading