Build: #118 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

  2. QA

Job result summary

Completed
Duration
8 minutes
Revision
3d0ba0affc100b02047bca467686c7c099e8d10b 3d0ba0affc100b02047bca467686c7c099e8d10b
Total tests
228
Failing since
#117 (Code changes detected – )
Fixed in
#122 (Code changes detected)

Tests

  • 228 tests in total
  • 1 test failed
  • 1 failure is new
  • 8 seconds taken in total.
New test failures 1
Status Test Duration
Collapse Failed Testing Edit concept actions should handle error in FETCH_EXISTING_CONCEPT_ERROR for update concept Testing Edit concept actions should handle error in FETCH_EXISTING_CONCEPT_ERROR for update concept History
< 1 sec
TypeError: Object.values is not a function
    at /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/redux/actions/concepts/dictionaryConcepts.js:224:20
    at throw (native)
    at step (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/redux/actions/concepts/dictionaryConcepts.js:33:446)
    at /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/redux/actions/concepts/dictionaryConcepts.js:33:645

Error summary

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

      Warning: Failed prop type: The prop `removeRow` is marked as required in `ConceptNameRows`, but its value is `undefined`.
          in ConceptNameRows (at ConceptNameRows.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `removeDataFromRow` is marked as required in `ConceptNameRows`, but its value is `undefined`.
          in ConceptNameRows (at ConceptNameRows.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: Invalid prop `pathName` of type `object` supplied to `ConceptNameRows`, expected `string`.
          in ConceptNameRows (at ConceptNameRows.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `existingConcept` is marked as required in `ConceptNameRows`, but its value is `undefined`.
          in ConceptNameRows (at ConceptNameRows.test.jsx:13)

PASS  src/tests/dictionaryConcepts/components/CreateConceptForm.test.jsx
  ● Console

    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `addDescription` is marked as required in `CreateConceptForm`, but its value is `undefined`.
          in CreateConceptForm (at CreateConceptForm.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `handleNewName` is marked as required in `CreateConceptForm`, but its value is `undefined`.
          in CreateConceptForm (at CreateConceptForm.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: Invalid prop `state.id` of type `number` supplied to `CreateConceptForm`, expected `string`.
          in CreateConceptForm (at CreateConceptForm.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `concept` is marked as required in `CreateConceptForm`, but its value is `undefined`.
          in CreateConceptForm (at CreateConceptForm.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `path` is marked as required in `CreateConceptForm`, but its value is `undefined`.
          in CreateConceptForm (at CreateConceptForm.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `toggleUUID` is marked as required in `CreateConceptForm`, but its value is `undefined`.
          in CreateConceptForm (at CreateConceptForm.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `handleChange` is marked as required in `CreateConceptForm`, but its value is `undefined`.
          in CreateConceptForm (at CreateConceptForm.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `handleSubmit` is marked as required in `CreateConceptForm`, but its value is `undefined`.
          in CreateConceptForm (at CreateConceptForm.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `editable` is marked as required in `CreateConceptForm`, but its value is `undefined`.
          in CreateConceptForm (at CreateConceptForm.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `isEditConcept` is marked as required in `CreateConceptForm`, but its value is `undefined`.
          in CreateConceptForm (at CreateConceptForm.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `existingConcept` is marked as required in `CreateConceptForm`, but its value is `undefined`.
          in CreateConceptForm (at CreateConceptForm.test.jsx:13)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `nameRows` is marked as required in `CreateConceptTable`, but its value is `undefined`.
          in CreateConceptTable (at CreateConceptForm.jsx:108)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `existingConcept` is marked as required in `CreateConceptTable`, but its value is `undefined`.
          in CreateConceptTable (at CreateConceptForm.jsx:108)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `description` is marked as required in `DescriptionTable`, but its value is `undefined`.
          in DescriptionTable (at CreateConceptForm.jsx:117)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `existingConcept` is marked as required in `DescriptionTable`, but its value is `undefined`.
          in DescriptionTable (at CreateConceptForm.jsx:117)
    console.error node_modules/prop-types/checkPropTypes.js:19
      Warning: Failed prop type: The prop `to` is marked as required in `Link`, but its value is `undefined`.
          in Link (at CreateConceptForm.jsx:124)

PASS  src/tests/Dashboard/action/sourcesActionCreators.test.js
PASS  src/tests/Dictionary/UserDashboard.test.jsx
PASS  src/tests/Auth/notFound.test.js
PASS  src/tests/Loader.test.js
PASS  src/tests/App.test.js

Summary of all failing tests
FAIL  src/tests/dictionaryConcepts/actions/dictionaryConcept.test.js
  ● Testing Edit concept actions  › should handle error in FETCH_EXISTING_CONCEPT_ERROR for update concept

    TypeError: Object.values is not a function
     
      at src/redux/actions/concepts/dictionaryConcepts.js:224:20
      at throw (native)
      at step (src/redux/actions/concepts/dictionaryConcepts.js:33:446)
      at src/redux/actions/concepts/dictionaryConcepts.js:33:645


Snapshot Summary
› 64 snapshots written in 31 test suites.

Test Suites: 1 failed, 54 passed, 55 total
Tests:       1 failed, 246 passed, 247 total
Snapshots:   64 added, 64 total
Time:        33.331s
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-08-30T09_16_20_404Z-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 .
+ docker push openmrs/ocl-client:latest
+ docker image inspect '--format={{index .RepoDigests 0}}' openmrs/ocl-client:latest