Build: #527 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

  2. QA

Job result summary

Completed
Duration
13 minutes
Agent
yak.openmrs.org
Revision
c2623c5884d09f6217c00cf627ecc1d467ff0815 c2623c5884d09f6217c00cf627ecc1d467ff0815
Total tests
636
Failing since
#523 (Code changes detected – )
Fixed in
#528 (Code changes detected)

Tests

  • 636 tests in total
  • 3 tests failed
  • 50 seconds taken in total.
Existing test failures 3
Status Test Failing since Duration
Error: Method “simulate” is meant to be run on 1 node. 0 found instead.
    at ReactWrapper.single (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/ReactWrapper.js:1168:13)
    at ReactWrapper.simulate (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/ReactWrapper.js:665:17)
    at DictionaryConcepts.call (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/tests/dictionaryConcepts/container/DictionaryConcepts.test.jsx:801:39)
    at ReactSixteenAdapter.invokeSetStateCallback (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/EnzymeAdapter.js:46:14)
    at DictionaryConcepts.<anonymous> (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/ReactWrapper.js:383:19)
    at callCallback (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:13829:12)
    at commitUpdateEffects (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:13867:7)
(31 more lines...)
Error: Method “simulate” is meant to be run on 1 node. 0 found instead.
    at ReactWrapper.single (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/ReactWrapper.js:1168:13)
    at ReactWrapper.simulate (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/ReactWrapper.js:665:17)
    at DictionaryConcepts.call (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/tests/dictionaryConcepts/container/DictionaryConcepts.test.jsx:760:39)
    at ReactSixteenAdapter.invokeSetStateCallback (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/EnzymeAdapter.js:46:14)
    at DictionaryConcepts.<anonymous> (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/ReactWrapper.js:383:19)
    at callCallback (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:13829:12)
    at commitUpdateEffects (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:13867:7)
(31 more lines...)
Error: Method “simulate” is meant to be run on 1 node. 0 found instead.
    at ReactWrapper.single (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/ReactWrapper.js:1168:13)
    at ReactWrapper.simulate (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/ReactWrapper.js:665:17)
    at DictionaryConcepts.call (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/tests/dictionaryConcepts/container/DictionaryConcepts.test.jsx:781:41)
    at ReactSixteenAdapter.invokeSetStateCallback (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/EnzymeAdapter.js:46:14)
    at DictionaryConcepts.<anonymous> (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/enzyme/src/ReactWrapper.js:383:19)
    at callCallback (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:13829:12)
    at commitUpdateEffects (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:13867:7)
(31 more lines...)

Error summary

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

      at ReactWrapper.simulate (node_modules/enzyme/src/ReactWrapper.js:665:17)
      at DictionaryConcepts.call (src/tests/dictionaryConcepts/container/DictionaryConcepts.test.jsx:781:41)
      at ReactSixteenAdapter.invokeSetStateCallback (node_modules/enzyme/src/EnzymeAdapter.js:46:14)
      at DictionaryConcepts.<anonymous> (node_modules/enzyme/src/ReactWrapper.js:383:19)
      at callCallback (node_modules/react-dom/cjs/react-dom.development.js:13829:12)
      at commitUpdateEffects (node_modules/react-dom/cjs/react-dom.development.js:13867:7)
      at commitUpdateQueue (node_modules/react-dom/cjs/react-dom.development.js:13855:3)
      at commitLifeCycles (node_modules/react-dom/cjs/react-dom.development.js:22135:11)
      at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:25344:7)
      at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:336:14)
      at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27)
      at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9)
      at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17)
      at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27)
      at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21)
      at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:385:16)
      at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:440:31)
      at commitRootImpl (node_modules/react-dom/cjs/react-dom.development.js:25082:9)
      at unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.development.js:697:12)
      at runWithPriority$2 (node_modules/react-dom/cjs/react-dom.development.js:12149:10)
      at commitRoot (node_modules/react-dom/cjs/react-dom.development.js:24922:3)
      at finishSyncRender (node_modules/react-dom/cjs/react-dom.development.js:24329:3)
      at performSyncWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:24307:9)
      at node_modules/react-dom/cjs/react-dom.development.js:12199:24
      at unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.development.js:697:12)
      at runWithPriority$2 (node_modules/react-dom/cjs/react-dom.development.js:12149:10)
      at flushSyncCallbackQueueImpl (node_modules/react-dom/cjs/react-dom.development.js:12194:7)
      at flushSyncCallbackQueue (node_modules/react-dom/cjs/react-dom.development.js:12182:3)
      at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom.development.js:23709:9)
      at Object.enqueueSetState (node_modules/react-dom/cjs/react-dom.development.js:13994:5)
      at DictionaryConcepts.setState (node_modules/react/cjs/react.development.js:325:16)
      at ReactWrapper.setState (node_modules/enzyme/src/ReactWrapper.js:377:21)
      at Object.it (src/tests/dictionaryConcepts/container/DictionaryConcepts.test.jsx:780:26)

  ● Test suite for dictionary concepts components › Retire/Unretire Concepts › should call handleRetireConcept without crashing when owner_url is invalid

    Method “simulate” is meant to be run on 1 node. 0 found instead.

      799 |       const spy = jest.spyOn(container, 'handleRetireConcept');
      800 |       dictionaryConcepts.setState({ isOwner: true }, () => {
    > 801 |         wrapper.find('button#retire').simulate('click');
          |                                       ^
      802 |         expect(spy).toHaveBeenCalled();
      803 |       });
      804 |     });

      at ReactWrapper.single (node_modules/enzyme/src/ReactWrapper.js:1168:13)
      at ReactWrapper.simulate (node_modules/enzyme/src/ReactWrapper.js:665:17)
      at DictionaryConcepts.call (src/tests/dictionaryConcepts/container/DictionaryConcepts.test.jsx:801:39)
      at ReactSixteenAdapter.invokeSetStateCallback (node_modules/enzyme/src/EnzymeAdapter.js:46:14)
      at DictionaryConcepts.<anonymous> (node_modules/enzyme/src/ReactWrapper.js:383:19)
      at callCallback (node_modules/react-dom/cjs/react-dom.development.js:13829:12)
      at commitUpdateEffects (node_modules/react-dom/cjs/react-dom.development.js:13867:7)
      at commitUpdateQueue (node_modules/react-dom/cjs/react-dom.development.js:13855:3)
      at commitLifeCycles (node_modules/react-dom/cjs/react-dom.development.js:22135:11)
      at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:25344:7)
      at HTMLUnknownElement.callCallback (node_modules/react-dom/cjs/react-dom.development.js:336:14)
      at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:193:27)
      at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:119:9)
      at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:82:17)
      at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js:30:27)
      at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:157:21)
      at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:385:16)
      at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:440:31)
      at commitRootImpl (node_modules/react-dom/cjs/react-dom.development.js:25082:9)
      at unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.development.js:697:12)
      at runWithPriority$2 (node_modules/react-dom/cjs/react-dom.development.js:12149:10)
      at commitRoot (node_modules/react-dom/cjs/react-dom.development.js:24922:3)
      at finishSyncRender (node_modules/react-dom/cjs/react-dom.development.js:24329:3)
      at performSyncWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:24307:9)
      at node_modules/react-dom/cjs/react-dom.development.js:12199:24
      at unstable_runWithPriority (node_modules/scheduler/cjs/scheduler.development.js:697:12)
      at runWithPriority$2 (node_modules/react-dom/cjs/react-dom.development.js:12149:10)
      at flushSyncCallbackQueueImpl (node_modules/react-dom/cjs/react-dom.development.js:12194:7)
      at flushSyncCallbackQueue (node_modules/react-dom/cjs/react-dom.development.js:12182:3)
      at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom.development.js:23709:9)
      at Object.enqueueSetState (node_modules/react-dom/cjs/react-dom.development.js:13994:5)
      at DictionaryConcepts.setState (node_modules/react/cjs/react.development.js:325:16)
      at ReactWrapper.setState (node_modules/enzyme/src/ReactWrapper.js:377:21)
      at Object.it (src/tests/dictionaryConcepts/container/DictionaryConcepts.test.jsx:800:26)


Snapshot Summary
› 64 snapshots written from 25 test suites.

Test Suites: 1 failed, 73 passed, 74 total
Tests:       3 failed, 650 passed, 653 total
Snapshots:   64 written, 64 total
Time:        102.225s, estimated 129s
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/2020-01-27T14_55_14_593Z-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 .
+ docker push openmrs/ocl-client:latest
+ docker image inspect '--format={{index .RepoDigests 0}}' openmrs/ocl-client:latest