Build: #367 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

  2. QA

Job result summary

Completed
Duration
7 minutes
Agent
yokobue.openmrs.org
Revision
328c6bccc70255814962c21ba2a4a55ed25632fe 328c6bccc70255814962c21ba2a4a55ed25632fe
Total tests
463
Failing since
#366 (Rebuilt by Cintia Del Rio)
Fixed in
#368 (Manual run by Cintia Del Rio)

Tests

  • 463 tests in total
  • 8 tests failed
  • 8 failures are new
  • 33 seconds taken in total.
New test failures 8
Status Test Duration
Collapse Failed Test suite for dictionary concept actions should handle ADD_CONCEPT_TO_DICTIONARY Test suite for dictionary concept actions should handle ADD_CONCEPT_TO_DICTIONARY History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": {"added": true}, "type": "[concepts] add_concept_to_dictionary"}, {"payload": false, "type": "[ui] toggle spinner"}]
Received:
  [{"payload": false, "type": "[ui] toggle spinner"}]

Difference:
(17 more lines...)
Collapse Failed Test suite for dictionary concept actions should handle FETCH_EXISTING_CONCEPT Test suite for dictionary concept actions should handle FETCH_EXISTING_CONCEPT History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": {"concept_class": "Indicator", "created_on": "2016-11-10T13:37:22.553", "datatype": "Numeric", "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": "Contraceptive acceptance rate", "external_id": null, "extras": {"Applicable Reporting Units": "HP, HC/Clinic, Hospital, WorHO, ZHD/ScHO, RHB, FMOH", "Denominator": "Total number of women of reproductive age (15-49) who are not pregnant", "Disaggregation": "By acceptors: New, repeat
Age: 15-19, 20-24, 25-49 years
By  Methods: Pills, Injectables, Implants, IUD and Others", "HMIS-Category-1": "C1: Access to Health Service", "HMIS-Category-2": "C1.1 Maternal and Child Health", "HMIS-Category-3": "C.1.1 Maternal Health", "HMIS-Category-4": "", "Interpretation": "This indicator is directly related to operations: for contraception utilization (and prevalence) to increase, the numbers of both new and repeat acceptors should increase. Each acceptor is counted only once, the first time s/he receives contraceptive services in the fiscal year.
“New acceptors” refers to the number of acceptors who receive family planning services from a recognized program for the first time irrespective of the method used. This is not the number of consultations. Each acceptor is enumerated once in the year, at the first consultation for contraception in the calendar year. 
“Repeat acceptors” refers to the number of acceptors who receive family planning services from a family planning program previously irrespective of the method used.  Long acting FP method users will also be counted as repeat every year including routine checkup for ongoing use of a long term method such as Norplant, IUD, etc.
(123 more lines...)
Collapse Failed Test suite for dictionary concept actions should handle error in ADD_CONCEPT_TO_DICTIONARY Test suite for dictionary concept actions should handle error in ADD_CONCEPT_TO_DICTIONARY History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": false, "type": "[ui] toggle spinner"}]
Received:
  [{"payload": {"added": true}, "type": "[concepts] add_concept_to_dictionary"}, {"payload": false, "type": "[ui] toggle spinner"}]

Difference:
(17 more lines...)
Collapse Failed Test suite for dictionary concept actions should handle error in CREATE_NEW_CONCEPT Test suite for dictionary concept actions should handle error in CREATE_NEW_CONCEPT History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": "bad request", "type": "[concepts] create_new_concept"}, {"payload": false, "type": "[ui] toggle spinner"}]
Received:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": false, "type": "[ui] toggle spinner"}]

Difference:
(19 more lines...)
Collapse Failed Testing Edit concept actions should handle error in FETCH_EXISTING_CONCEPT_ERROR for fetching exing concepts Testing Edit concept actions should handle error in FETCH_EXISTING_CONCEPT_ERROR for fetching exing concepts History
< 1 sec
Error: 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:
(18 more lines...)
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
Error: 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": {"concept_class": "Indicator", "created_on": "2016-11-10T13:37:22.553", "datatype": "Numeric", "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": "Contraceptive acceptance rate", "external_id": null, "extras": {"Applicable Reporting Units": "HP, HC/Clinic, Hospital, WorHO, ZHD/ScHO, RHB, FMOH", "Denominator": "Total number of women of reproductive age (15-49) who are not pregnant", "Disaggregation": "By acceptors: New, repeat
Age: 15-19, 20-24, 25-49 years
By  Methods: Pills, Injectables, Implants, IUD and Others", "HMIS-Category-1": "C1: Access to Health Service", "HMIS-Category-2": "C1.1 Maternal and Child Health", "HMIS-Category-3": "C.1.1 Maternal Health", "HMIS-Category-4": "", "Interpretation": "This indicator is directly related to operations: for contraception utilization (and prevalence) to increase, the numbers of both new and repeat acceptors should increase. Each acceptor is counted only once, the first time s/he receives contraceptive services in the fiscal year.
(118 more lines...)
Collapse Failed Testing Edit concept actions should handle exceptions for unretire a Mapping Testing Edit concept actions should handle exceptions for unretire a Mapping 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": "Indicator", "created_on": "2016-11-10T13:37:22.553", "datatype": "Numeric", "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": "Contraceptive acceptance rate", "external_id": null, "extras": {"Applicable Reporting Units": "HP, HC/Clinic, Hospital, WorHO, ZHD/ScHO, RHB, FMOH", "Denominator": "Total number of women of reproductive age (15-49) who are not pregnant", "Disaggregation": "By acceptors: New, repeat
Age: 15-19, 20-24, 25-49 years
By  Methods: Pills, Injectables, Implants, IUD and Others", "HMIS-Category-1": "C1: Access to Health Service", "HMIS-Category-2": "C1.1 Maternal and Child Health", "HMIS-Category-3": "C.1.1 Maternal Health", "HMIS-Category-4": "", "Interpretation": "This indicator is directly related to operations: for contraception utilization (and prevalence) to increase, the numbers of both new and repeat acceptors should increase. Each acceptor is counted only once, the first time s/he receives contraceptive services in the fiscal year.
(115 more lines...)
Collapse Failed Testing Edit concept actions should unretire a Mapping when the unretireMapping action is triggered Testing Edit concept actions should unretire a Mapping when the unretireMapping action is triggered History
< 1 sec
Error: expect(received).toEqual(expected)

Expected value to equal:
  [{"payload": true, "type": "[ui] toggle spinner"}, {"payload": {"concept_class": "Indicator", "created_on": "2016-11-10T13:37:22.553", "datatype": "Numeric", "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": "Contraceptive acceptance rate", "external_id": null, "extras": {"Applicable Reporting Units": "HP, HC/Clinic, Hospital, WorHO, ZHD/ScHO, RHB, FMOH", "Denominator": "Total number of women of reproductive age (15-49) who are not pregnant", "Disaggregation": "By acceptors: New, repeat
Age: 15-19, 20-24, 25-49 years
By  Methods: Pills, Injectables, Implants, IUD and Others", "HMIS-Category-1": "C1: Access to Health Service", "HMIS-Category-2": "C1.1 Maternal and Child Health", "HMIS-Category-3": "C.1.1 Maternal Health", "HMIS-Category-4": "", "Interpretation": "This indicator is directly related to operations: for contraception utilization (and prevalence) to increase, the numbers of both new and repeat acceptors should increase. Each acceptor is counted only once, the first time s/he receives contraceptive services in the fiscal year.
“New acceptors” refers to the number of acceptors who receive family planning services from a recognized program for the first time irrespective of the method used. This is not the number of consultations. Each acceptor is enumerated once in the year, at the first consultation for contraception in the calendar year. 
“Repeat acceptors” refers to the number of acceptors who receive family planning services from a family planning program previously irrespective of the method used.  Long acting FP method users will also be counted as repeat every year including routine checkup for ongoing use of a long term method such as Norplant, IUD, etc.
(115 more lines...)

Error summary

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

    +        },
    +        Object {
    +          "isNew": true,
    +          "map_type": "Narrower than",
    +          "source": "CIEL",
    +          "to_concept_code": "67c0bc01-4f16-4424-80fd-f08b122bcef2",
    +          "to_concept_name": "MALARIA DIAGNOSIS IN THE LAST TWELVE MONTHS",
    +          "to_source_url": "/orgs/CIEL/sources/CIEL/concepts/1476/",
    +        },
    +        Object {
    +          "id": 3,
    +          "isNew": false,
    +          "map_type": "Same as",
    +          "source": "SNOMED",
    +          "to_concept_code": "92eebf0a-df73-4c17-985f-0347c7dee768",
    +          "to_concept_name": "malaria",
    +          "to_source_url": null,
    +        },
    +      ],
    +      "names": Array [
    +        Object {
    +          "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)


Snapshot Summary
› 64 snapshots written in 26 test suites.

Test Suites: 1 failed, 62 passed, 63 total
Tests:       8 failed, 477 passed, 485 total
Snapshots:   64 added, 64 total
Time:        58.918s
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-04-14T05_23_16_662Z-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