Build: #705 failed

Job: Test, build and push docker image failed

Stages & jobs

  1. Default Stage

  2. QA

Job result summary

Completed
Duration
23 minutes
Agent
yak.openmrs.org
Revision
33ecb4493f62160163cf6f31133ba37057cfda50 33ecb4493f62160163cf6f31133ba37057cfda50
Total tests
4
Fixed in
#706 (Code changes detected)
No failed test found. A possible compilation error occurred.

Tests

  • 4 tests in total
  • < 1 second taken in total.

Error summary

The build generated some errors. See the full build log for more details.

v12.22.1 is already installed.
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

FAIL src/tests/unit/App.test.tsx
  ‚óŹ Test suite failed to run

    TypeError: (0 , _uuid.default) is not a function

      116 |   datatype: DATA_TYPES[0],
      117 |   descriptions: [],
    > 118 |   external_id: uuid(),
          |                ^
      119 |   id: "",
      120 |   answers: [],
      121 |   sets: [],

      at Object.<anonymous> (src/apps/concepts/components/ConceptForm.tsx:118:16)
      at Object.<anonymous> (src/apps/concepts/components/index.ts:1:1)
      at Object.<anonymous> (src/apps/concepts/pages/ViewConceptPage.tsx:3:1)
      at Object.<anonymous> (src/apps/concepts/pages/index.ts:1:1)
      at Object.<anonymous> (src/apps/concepts/Routes.tsx:3:1)
      at Object.<anonymous> (src/apps/concepts/index.ts:1:1)
      at Object.<anonymous> (src/redux/store.ts:7:1)
      at Object.<anonymous> (src/redux/index.ts:13:1)
      at Object.<anonymous> (src/apps/authentication/redux/actions.ts:1:1)
      at Object.<anonymous> (src/apps/authentication/redux/index.ts:1:1)
      at Object.<anonymous> (src/apps/authentication/index.ts:1:1)
      at Object.<anonymous> (src/App.tsx:8:1)
      at Object.<anonymous> (src/tests/unit/App.test.tsx:3:1)

PASS src/utils/tests/unit/utils.test.ts

Test Suites: 1 failed, 1 passed, 2 total
Tests:       4 passed, 4 total
Snapshots:   0 total
Time:        22.92 s, estimated 69 s
Ran all test suites matching /.*\/tests\/unit\//i.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ocl-client@0.1.0 test:bamboo: `node -v && CI=true react-scripts test --testPathPattern='.*/tests/unit/' --ci --coverage --env=jsdom --testResultsProcessor ./node_modules/jest-junit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ocl-client@0.1.0 test:bamboo script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bamboo-agent/.npm/_logs/2021-04-29T20_02_56_818Z-debug.log
+ docker --version
+ docker login -u openmrsci -p ********
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/bamboo-agent/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

+ IMAGE=openmrs/ocl-client
+ TAG=latest
+ /usr/bin/docker build --force-rm=true --tag=openmrs/ocl-client:latest --build-arg OCL_BUILD=705 .
The command '/bin/sh -c npm run build' returned a non-zero code: 1
Removing network ocl-oc-job1_default
Network ocl-oc-job1_default not found.