Build: #421 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

  2. QA

Job result summary

Completed
Duration
11 minutes
Agent
yokobue.openmrs.org
Revision
1adafdc6a1248ab59f1b1047cfe09262ff45d600 1adafdc6a1248ab59f1b1047cfe09262ff45d600
Total tests
529
Fixed in
#422 (Code changes detected)

Tests

  • 529 tests in total
  • 4 tests failed
  • 4 failures are new
  • 43 seconds taken in total.
New test failures 4
Status Test Duration
Collapse Failed Test suite for addBulkConcepts async actions should add concept on ADD_EXISTING_CONCEPTS action dispatch Test suite for addBulkConcepts async actions should add concept on ADD_EXISTING_CONCEPTS action dispatch History
< 1 sec
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)
(12 more lines...)
Collapse Failed Test suite for addBulkConcepts async actions should handle FETCH_FILTERED_CONCEPTS with no filters Test suite for addBulkConcepts async actions should handle FETCH_FILTERED_CONCEPTS with no filters History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": [{"concept_class": "Diagnosis", "datatype": "N/A", "descriptions": [{"description": "The proportion of women of reproductive age (15-49 years) who are not pregnant and are accepting a modern contraceptive method (new and repeat acceptors).  ", "description_type": null, "external_id": null, "locale": "en", "locale_preferred": true, "type": "ConceptDescription", "uuid": "453aa9941e824becaad4b374899e8bcb"}], "display_locale": "en", "display_name": "Bronze Diabetes", "external_id": "146869AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "id": "1468667", "is_latest_version": true, "locale": null, "mappings": null, "owner": "CIEL", "owner_type": "Organization", "owner_url": "/orgs/CIEL/", "retired": false, "source": "CIEL", "url": "/orgs/CIEL/sources/CIEL/concepts/146869/", "version": "5835c0e2955c3c0007e5fb79", "version_url": "/orgs/CIEL/sources/CIEL/concepts/146869/5835c0e2955c3c0007e5fb79/"}], "type": "[concept] fetch_filtered_concepts"}, {"payload": false, "type": "[ui] toggle spinner"}]
Received:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": [{"added": false, "concepts": {"concept_class": "Diagnosis", "datatype": "N/A", "descriptions": [{"description": "The proportion of women of reproductive age (15-49 years) who are not pregnant and are accepting a modern contraceptive method (new and repeat acceptors).  ", "description_type": null, "external_id": null, "locale": "en", "locale_preferred": true, "type": "ConceptDescription", "uuid": "453aa9941e824becaad4b374899e8bcb"}], "display_locale": "en", "display_name": "Bronze Diabetes", "external_id": "146869AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "id": "1468667", "is_latest_version": true, "locale": null, "mappings": null, "owner": "CIEL", "owner_type": "Organization", "owner_url": "/orgs/CIEL/", "retired": false, "source": "CIEL", "url": "/orgs/CIEL/sources/CIEL/concepts/146869/", "version": "5835c0e2955c3c0007e5fb79", "version_url": "/orgs/CIEL/sources/CIEL/concepts/146869/5835c0e2955c3c0007e5fb79/"}}], "type": "[concept] fetch_filtered_concepts"}, {"payload": false, "type": "[ui] toggle spinner"}]

Difference:
(30 more lines...)
Collapse Failed Test suite for addBulkConcepts async actions should handle error in FETCH_FILTERED_CONCEPTS Test suite for addBulkConcepts async actions should handle error in FETCH_FILTERED_CONCEPTS History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": false, "type": "[ui] toggle spinner"}]
Received:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": [{"concept_class": "Diagnosis", "datatype": "N/A", "descriptions": [{"description": "The proportion of women of reproductive age (15-49 years) who are not pregnant and are accepting a modern contraceptive method (new and repeat acceptors).  ", "description_type": null, "external_id": null, "locale": "en", "locale_preferred": true, "type": "ConceptDescription", "uuid": "453aa9941e824becaad4b374899e8bcb"}], "display_locale": "en", "display_name": "Bronze Diabetes", "external_id": "146869AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "id": "1468667", "is_latest_version": true, "locale": null, "mappings": null, "owner": "CIEL", "owner_type": "Organization", "owner_url": "/orgs/CIEL/", "retired": false, "source": "CIEL", "url": "/orgs/CIEL/sources/CIEL/concepts/146869/", "version": "5835c0e2955c3c0007e5fb79", "version_url": "/orgs/CIEL/sources/CIEL/concepts/146869/5835c0e2955c3c0007e5fb79/"}], "type": "[concept] fetch_filtered_concepts"}, {"payload": false, "type": "[ui] toggle spinner"}]

Difference:
(50 more lines...)
Collapse Failed Test suite for addBulkConcepts async actions should notify user when one tries to add a duplicate concept Test suite for addBulkConcepts async actions should notify user when one tries to add a duplicate concept History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": [{"added": false, "concepts": {"concept_class": "Diagnosis", "datatype": "N/A", "descriptions": [{"description": "The proportion of women of reproductive age (15-49 years) who are not pregnant and are accepting a modern contraceptive method (new and repeat acceptors).  ", "description_type": null, "external_id": null, "locale": "en", "locale_preferred": true, "type": "ConceptDescription", "uuid": "453aa9941e824becaad4b374899e8bcb"}], "display_locale": "en", "display_name": "Bronze Diabetes", "external_id": "146869AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "id": "1468667", "is_latest_version": true, "locale": null, "mappings": null, "owner": "CIEL", "owner_type": "Organization", "owner_url": "/orgs/CIEL/", "retired": false, "source": "CIEL", "url": "/orgs/CIEL/sources/CIEL/concepts/146869/", "version": "5835c0e2955c3c0007e5fb79", "version_url": "/orgs/CIEL/sources/CIEL/concepts/146869/5835c0e2955c3c0007e5fb79/"}}], "type": "[concepts] add_existing_concepts"}]
Received:
  [{"payload": [{"added": true, "concepts": {"concept_class": "Diagnosis", "datatype": "N/A", "descriptions": [{"description": "The proportion of women of reproductive age (15-49 years) who are not pregnant and are accepting a modern contraceptive method (new and repeat acceptors).  ", "description_type": null, "external_id": null, "locale": "en", "locale_preferred": true, "type": "ConceptDescription", "uuid": "453aa9941e824becaad4b374899e8bcb"}], "display_locale": "en", "display_name": "Bronze Diabetes", "external_id": "146869AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "id": "1468667", "is_latest_version": true, "locale": null, "mappings": null, "owner": "CIEL", "owner_type": "Organization", "owner_url": "/orgs/CIEL/", "retired": false, "source": "CIEL", "url": "/orgs/CIEL/sources/CIEL/concepts/146869/", "version": "5835c0e2955c3c0007e5fb79", "version_url": "/orgs/CIEL/sources/CIEL/concepts/146869/5835c0e2955c3c0007e5fb79/"}}], "type": "[concepts] add_existing_concepts"}]

Difference:
(17 more lines...)

Error summary

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


      103 |
      104 |     return store.dispatch(fetchFilteredConcepts()).then(() => {
    > 105 |       expect(store.getActions()).toEqual(expectedActions);
          |                                  ^
      106 |     });
      107 |   });
      108 |   it('should handle FETCH_FILTERED_CONCEPTS with datatype filters', () => {

      at toEqual (src/tests/bulkConcepts/actions/bulkConcept.test.js:105:34)

  ‚óŹ Test suite for addBulkConcepts async actions › should handle error in FETCH_FILTERED_CONCEPTS

    expect(received).toEqual(expected)

    Expected value to equal:
      [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": false, "type": "[ui] toggle spinner"}]
    Received:
      [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": [{"concept_class": "Diagnosis", "datatype": "N/A", "descriptions": [{"description": "The proportion of women of reproductive age (15-49 years) who are not pregnant and are accepting a modern contraceptive method (new and repeat acceptors).  ", "description_type": null, "external_id": null, "locale": "en", "locale_preferred": true, "type": "ConceptDescription", "uuid": "453aa9941e824becaad4b374899e8bcb"}], "display_locale": "en", "display_name": "Bronze Diabetes", "external_id": "146869AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "id": "1468667", "is_latest_version": true, "locale": null, "mappings": null, "owner": "CIEL", "owner_type": "Organization", "owner_url": "/orgs/CIEL/", "retired": false, "source": "CIEL", "url": "/orgs/CIEL/sources/CIEL/concepts/146869/", "version": "5835c0e2955c3c0007e5fb79", "version_url": "/orgs/CIEL/sources/CIEL/concepts/146869/5835c0e2955c3c0007e5fb79/"}], "type": "[concept] fetch_filtered_concepts"}, {"payload": false, "type": "[ui] toggle spinner"}]

    Difference:

    - Expected
    + Received

    @@ -2,9 +2,44 @@
        Object {
          "payload": true,
          "type": "[ui] toggle spinner",
        },
        Object {
    +     "payload": Array [
    +       Object {
    +         "concept_class": "Diagnosis",
    +         "datatype": "N/A",
    +         "descriptions": Array [
    +           Object {
    +             "description": "The proportion of women of reproductive age (15-49 years) who are not pregnant and are accepting a modern contraceptive method (new and repeat acceptors).  ",
    +             "description_type": null,
    +             "external_id": null,
    +             "locale": "en",
    +             "locale_preferred": true,
    +             "type": "ConceptDescription",
    +             "uuid": "453aa9941e824becaad4b374899e8bcb",
    +           },
    +         ],
    +         "display_locale": "en",
    +         "display_name": "Bronze Diabetes",
    +         "external_id": "146869AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    +         "id": "1468667",
    +         "is_latest_version": true,
    +         "locale": null,
    +         "mappings": null,
    +         "owner": "CIEL",
    +         "owner_type": "Organization",
    +         "owner_url": "/orgs/CIEL/",
    +         "retired": false,
    +         "source": "CIEL",
    +         "url": "/orgs/CIEL/sources/CIEL/concepts/146869/",
    +         "version": "5835c0e2955c3c0007e5fb79",
    +         "version_url": "/orgs/CIEL/sources/CIEL/concepts/146869/5835c0e2955c3c0007e5fb79/",
    +       },
    +     ],
    +     "type": "[concept] fetch_filtered_concepts",
    +   },
    +   Object {
          "payload": false,
          "type": "[ui] toggle spinner",
        },
      ]

      186 |
      187 |     return store.dispatch(fetchFilteredConcepts()).then(() => {
    > 188 |       expect(store.getActions()).toEqual(expectedActions);
          |                                  ^
      189 |     });
      190 |   });
      191 |   it('dispatches the current page', () => {

      at toEqual (src/tests/bulkConcepts/actions/bulkConcept.test.js:188:34)


Snapshot Summary
› 69 snapshots written from 26 test suites.

Test Suites: 1 failed, 63 passed, 64 total
Tests:       4 failed, 546 passed, 550 total
Snapshots:   69 written, 69 total
Time:        110.282s
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/2019-05-23T16_25_11_726Z-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