Build: #377 failed Rebuilt by Paul Kayongo

Stages & jobs

  1. Default Stage

  2. QA

Build result summary

Details

Completed
Duration
1 minute
Labels
None
Revision
b2115de731e5f16f8b3f2a5c82dec18532588dfc b2115de731e5f16f8b3f2a5c82dec18532588dfc
Fixed in
#378 (Manual run by Paul Kayongo)
Number of retries
1
No failed test found. A possible compilation error occurred.

Responsible

No one has taken responsibility for this failure

Error summary for Default Job

The job generated some errors, drill down into the full build log for more details.

    +          "external_id": null,
    +          "locale": "en",
    +          "locale_preferred": true,
    +          "name": "Contraceptive acceptance rate",
    +          "name_type": "Fully Specified",
    +          "type": "ConceptName",
    +          "uuid": "42d624cf7f5b462f831a79f43f043f49",
    +        },
    +      ],
    +      "owner": "EthiopiaNHDD",
    +      "owner_type": "Organization",
    +      "owner_url": "/orgs/EthiopiaNHDD/",
    +      "retired": false,
    +      "source": "HMIS-Indicators",
    +      "source_url": "/orgs/EthiopiaNHDD/sources/HMIS-Indicators/",
    +      "type": "Concept",
    +      "updated_on": "2017-10-13T07:12:36.218",
    +      "url": "/orgs/EthiopiaNHDD/sources/HMIS-Indicators/concepts/C1.1.1.1/",
    +      "uuid": "5824be62fc6b9000075d4981",
    +      "version": "5824be62fc6b9000075d4981",
    +      "version_created_by": "root",
    +      "version_created_on": "2016-11-10T13:37:22.553",
    +      "version_url": "/orgs/EthiopiaNHDD/sources/HMIS-Indicators/concepts/C1.1.1.1/5824be62fc6b9000075d4981/",
    +    },
    +    "type": "[concept] update_concept",
       },
     ]
     
      at store.dispatch.then.result (src/tests/dictionaryConcepts/actions/dictionaryConcept.test.js:702:34)

  ‚óŹ Testing Edit concept actions  › should handle error in FETCH_EXISTING_CONCEPT_ERROR for fetching exing concepts

    expect(received).toEqual(expected)
   
    Expected value to equal:
      [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": "bad request", "type": "[concept] fetch_existing_concept_error"}, {"payload": false, "type": "[ui] toggle spinner"}]
    Received:
      [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": undefined, "type": "[concept] fetch_existing_concept_error"}, {"payload": false, "type": "[ui] toggle spinner"}]
   
    Difference:
   
    - Expected
    + Received
   
    @@ -2,11 +2,11 @@
       Object {
         "payload": true,
         "type": "[ui] toggle spinner",
       },
       Object {
    -    "payload": "bad request",
    +    "payload": undefined,
         "type": "[concept] fetch_existing_concept_error",
       },
       Object {
         "payload": false,
         "type": "[ui] toggle spinner",
     
      at store.dispatch.then (src/tests/dictionaryConcepts/actions/dictionaryConcept.test.js:725:34)

PASS  src/tests/Dashboard/container/OwnerDisplay.test.jsx
PASS  src/tests/Dashboard/action/dictionaryAction.test.js
PASS  src/tests/Dashboard/container/DictionaryDisplay.test.jsx
PASS  src/tests/Dictionary/ListDictionaries.test.jsx
PASS  src/tests/Dictionary/DictionaryContainer.test.jsx
PASS  src/tests/dictionaryConcepts/container/DictionaryConcepts.test.jsx

/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-scripts/scripts/test.js:20
  throw err;
  ^
Invariant Violation: The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.
    at invariant (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:55:15)
    at Object.invokeGuardedCallbackDev (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:110:44)
    at invokeGuardedCallback (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:256:31)
    at commitRoot (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:18881:7)
    at /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:20418:5
    at Object.unstable_runWithPriority (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/scheduler/cjs/scheduler.development.js:255:12)
    at completeRoot (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:20417:13)
    at performWorkOnRoot (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:20346:9)
    at performWork (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:20254:7)
    at performSyncWork (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:20228:3)
    at requestWork (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:20097:5)
    at scheduleWork (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:19911:5)
    at Object.enqueueSetState (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react-dom/cjs/react-dom.development.js:11169:5)
    at CreateMapping.Object.<anonymous>.Component.setState (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/node_modules/react/cjs/react.development.js:335:16)
    at CreateMapping.<anonymous> (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/components/dictionaryConcepts/components/CreateMapping.jsx:54:43)
    at next (native)
    at step (/home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/components/dictionaryConcepts/components/CreateMapping.jsx:10:416)
    at /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/components/dictionaryConcepts/components/CreateMapping.jsx:10:576
    at process._tickCallback (internal/process/next_tick.js:109:7)
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/2019-04-15T13_34_57_146Z-debug.log