Build: #57 failed

Job: Test, build and push docker image failed

Stages & jobs

  1. Default Stage

  2. QA

Job result summary

Completed
Duration
6 minutes
Revision
eebba2118ab6356355bfa5baa75361db74f00566 eebba2118ab6356355bfa5baa75361db74f00566
Total tests
111
Fixed in
#59 (Code changes detected)
No failed test found. A possible compilation error occurred.

Tests

  • 111 tests in total
  • 2 seconds taken in total.

Error summary

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

          in MemoryRouter (created by WrapperComponent)
          in WrapperComponent

PASS  src/tests/Dashboard/container/SourceSearch.test.jsx
  ● Console

    console.error node_modules/fbjs/lib/warning.js:33
      Warning: Connect(AddDictionary).shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.
    console.error node_modules/fbjs/lib/warning.js:33
      Warning: Connect(AddDictionary).shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.

PASS  src/tests/Dictionary/DictionaryModal.test.jsx
  ● Console

    console.error node_modules/fbjs/lib/warning.js:33
      Warning: DictionaryModal: type specification of prop `organizations` is invalid; the type checker function must return `null` or an `Error` but returned a function. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).

PASS  src/tests/Dashboard/action/index.test.js
PASS  src/tests/dictionaryConcepts/actions/dictionaryConcept.test.js
PASS  src/tests/Login/container/index.test.jsx
PASS  src/tests/Dashboard/action/api.test.js
PASS  src/tests/Dashboard/action/conceptAction.test.js
PASS  src/tests/Dashboard/action/specificConceptAction.test.js
PASS  src/tests/Navbar.test.js
PASS  src/tests/Dashboard/reducer/dictionaryReducers.test.js
PASS  src/tests/Auth/index.test.jsx
PASS  src/tests/dictionaryConcepts/reducer/dictionaryConcept.test.js
PASS  src/tests/Dashboard/container/ConceptModal.test.js
  ● Console

    console.error node_modules/fbjs/lib/warning.js:33
      Warning: Failed prop type: The prop `id` is marked as required in `AddConceptModal`, but its value is `undefined`.
          in AddConceptModal (at ConceptModal.test.js:7)
    console.error node_modules/fbjs/lib/warning.js:33
      Warning: Failed prop type: The prop `display_name` is marked as required in `AddConceptModal`, but its value is `undefined`.
          in AddConceptModal (at ConceptModal.test.js:7)
    console.error node_modules/fbjs/lib/warning.js:33
      Warning: Failed prop type: The prop `concept_class` is marked as required in `AddConceptModal`, but its value is `undefined`.
          in AddConceptModal (at ConceptModal.test.js:7)
    console.error node_modules/fbjs/lib/warning.js:33
      Warning: Failed prop type: The prop `source` is marked as required in `AddConceptModal`, but its value is `undefined`.
          in AddConceptModal (at ConceptModal.test.js:7)
    console.error node_modules/fbjs/lib/warning.js:33
      Warning: Failed prop type: The prop `owner` is marked as required in `AddConceptModal`, but its value is `undefined`.
          in AddConceptModal (at ConceptModal.test.js:7)

PASS  src/tests/Dashboard/reducer/conceptReducer.test.js
PASS  src/tests/AuthReducers.test.js
PASS  src/tests/Dashboard/action/sourcesActionCreators.test.js
FAIL  src/tests/dictionaryConcepts/container/CreateConcept.test.jsx
  ● Test suite failed to run

    Cannot find module 'create-emotion' from 'index.cjs.js'
     
      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:179:17)
      at Object.<anonymous> (node_modules/emotion/dist/index.cjs.js:7:37)

PASS  src/tests/Dictionary/UserDashboard.test.jsx
PASS  src/tests/Auth/notFound.test.js
PASS  src/tests/Dashboard/action/ConceptsActionCreator.test.js
PASS  src/tests/AuthActions.test.js
PASS  src/tests/Dashboard/reducer/index.test.js
PASS  src/tests/Loader.test.js

Summary of all failing tests
FAIL  src/tests/App.test.js
  ● Test suite failed to run

    Cannot find module 'create-emotion' from 'index.cjs.js'
     
      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:179:17)
      at Object.<anonymous> (node_modules/emotion/dist/index.cjs.js:7:37)

FAIL  src/tests/dictionaryConcepts/container/CreateConcept.test.jsx
  ● Test suite failed to run

    Cannot find module 'create-emotion' from 'index.cjs.js'
     
      at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:179:17)
      at Object.<anonymous> (node_modules/emotion/dist/index.cjs.js:7:37)


Snapshot Summary
› 30 snapshots written in 14 test suites.

Test Suites: 2 failed, 28 passed, 30 total
Tests:       111 passed, 111 total
Snapshots:   30 added, 30 total
Time:        18.055s, estimated 40s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! openmrs-ocl-client@0.1.0 test:bamboo: `react-scripts test --env=jsdom -u --ci --coverage --testResultsProcessor ./node_modules/jest-junit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openmrs-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/2018-07-05T19_00_56_314Z-debug.log
+ docker --version
+ docker login -u openmrsci -p '********'
+ IMAGE=openmrs/ocl-client
+ TAG=latest
+ /usr/bin/docker build --force-rm=true --tag=openmrs/ocl-client:latest .
The command '/bin/sh -c npm run build' returned a non-zero code: 1