Build: #524 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

  2. QA

Job result summary

Completed
Duration
22 minutes
Agent
yokobue.openmrs.org
Revision
8ef245dbe6ea6f5103c3706a6a83e4bb9f26a401 8ef245dbe6ea6f5103c3706a6a83e4bb9f26a401
Total tests
597
Failing since
#523 (Code changes detected – )
Fixed in
#528 (Code changes detected)

Tests

  • 597 tests in total
  • 3 tests failed
  • 52 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.

      2 | import { mount } from 'enzyme';
      3 | import { MemoryRouter } from 'react-router-dom';
      4 | import NotFound from '../../components/NotFound';

      at raise (node_modules/@babel/parser/src/parser/location.js:41:63)
      at unexpected (node_modules/@babel/parser/src/parser/util.js:150:16)
      at expect (node_modules/@babel/parser/src/parser/util.js:130:28)
      at parseNamedImportSpecifiers (node_modules/@babel/parser/src/parser/statement.js:2103:10)
      at parseImport (node_modules/@babel/parser/src/parser/statement.js:2036:39)
      at parseStatementContent (node_modules/@babel/parser/src/parser/statement.js:247:25)
      at parseStatement (node_modules/@babel/parser/src/parser/statement.js:146:17)
      at parseStatement (node_modules/@babel/parser/src/plugins/flow.js:1675:28)
      at parseBlockOrModuleBlockBody (node_modules/@babel/parser/src/parser/statement.js:865:25)
      at parseBlockBody (node_modules/@babel/parser/src/parser/statement.js:841:10)

FAIL src/tests/Title.test.js
  ● Test suite failed to run

    SyntaxError: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/tests/Title.test.js: Unexpected token, expected "{" (1:7)

    > 1 | import React from 'react';
        |        ^
      2 | import { mount } from 'enzyme';
      3 | import Title from '../components/Title';
      4 |

      at raise (node_modules/@babel/parser/src/parser/location.js:41:63)
      at unexpected (node_modules/@babel/parser/src/parser/util.js:150:16)
      at expect (node_modules/@babel/parser/src/parser/util.js:130:28)
      at parseNamedImportSpecifiers (node_modules/@babel/parser/src/parser/statement.js:2103:10)
      at parseImport (node_modules/@babel/parser/src/parser/statement.js:2036:39)
      at parseStatementContent (node_modules/@babel/parser/src/parser/statement.js:247:25)
      at parseStatement (node_modules/@babel/parser/src/parser/statement.js:146:17)
      at parseStatement (node_modules/@babel/parser/src/plugins/flow.js:1675:28)
      at parseBlockOrModuleBlockBody (node_modules/@babel/parser/src/parser/statement.js:865:25)
      at parseBlockBody (node_modules/@babel/parser/src/parser/statement.js:841:10)

FAIL src/tests/dictionaryConcepts/components/MapType.test.js
  ● Test suite failed to run

    SyntaxError: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/tests/dictionaryConcepts/components/MapType.test.js: Unexpected token, expected "{" (1:7)

    > 1 | import React from 'react';
        |        ^
      2 | import { shallow } from 'enzyme';
      3 | import MapType from '../../../components/dictionaryConcepts/components/MapType';
      4 |

      at raise (node_modules/@babel/parser/src/parser/location.js:41:63)
      at unexpected (node_modules/@babel/parser/src/parser/util.js:150:16)
      at expect (node_modules/@babel/parser/src/parser/util.js:130:28)
      at parseNamedImportSpecifiers (node_modules/@babel/parser/src/parser/statement.js:2103:10)
      at parseImport (node_modules/@babel/parser/src/parser/statement.js:2036:39)
      at parseStatementContent (node_modules/@babel/parser/src/parser/statement.js:247:25)
      at parseStatement (node_modules/@babel/parser/src/parser/statement.js:146:17)
      at parseStatement (node_modules/@babel/parser/src/plugins/flow.js:1675:28)
      at parseBlockOrModuleBlockBody (node_modules/@babel/parser/src/parser/statement.js:865:25)
      at parseBlockBody (node_modules/@babel/parser/src/parser/statement.js:841:10)

FAIL src/tests/App.test.js
  ● Test suite failed to run

    SyntaxError: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/tests/App.test.js: Unexpected token, expected "{" (1:7)

    > 1 | import React from 'react';
        |        ^
      2 | import ReactDOM from 'react-dom';
      3 | import App from '../App';
      4 |

      at raise (node_modules/@babel/parser/src/parser/location.js:41:63)
      at unexpected (node_modules/@babel/parser/src/parser/util.js:150:16)
      at expect (node_modules/@babel/parser/src/parser/util.js:130:28)
      at parseNamedImportSpecifiers (node_modules/@babel/parser/src/parser/statement.js:2103:10)
      at parseImport (node_modules/@babel/parser/src/parser/statement.js:2036:39)
      at parseStatementContent (node_modules/@babel/parser/src/parser/statement.js:247:25)
      at parseStatement (node_modules/@babel/parser/src/parser/statement.js:146:17)
      at parseStatement (node_modules/@babel/parser/src/plugins/flow.js:1675:28)
      at parseBlockOrModuleBlockBody (node_modules/@babel/parser/src/parser/statement.js:865:25)
      at parseBlockBody (node_modules/@babel/parser/src/parser/statement.js:841:10)


Snapshot Summary
› 46 snapshots written from 16 test suites.

Test Suites: 23 failed, 51 passed, 74 total
Tests:       3 failed, 605 passed, 608 total
Snapshots:   46 written, 46 total
Time:        238.911s
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-21T22_38_50_278Z-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