Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

master #36 failed #41

Closed
nti-jarvis opened this issue Jan 28, 2019 · 5 comments
Closed

master #36 failed #41

nti-jarvis opened this issue Jan 28, 2019 · 5 comments

Comments

@nti-jarvis
Copy link

Build 'NextThought/nti.web.assignment-editor/master' is failing!

Last 50 lines of build output:

[...truncated 10203 lines...]
PASS src/sync-height/__test__/Group.spec.js
PASS src/__test__/dummy.spec.js
PASS src/editor/question/__test__/utils.spec.js (110.93s)
PASS src/dnd/utils/__tests__/DataTransfer.spec.js
PASS src/action-list/__test__/Stack.spec.js (110.471s)
FAIL src/editor/__test__/Actions.spec.js
  ● Test suite failed to run

    The package '@nti/web-commons' cannot be imported as a CJS module.



      at Object.<anonymous> (node_modules/@nti/web-commons/lib/index.js:1:17)
      at Object.<anonymous> (src/editor/Actions.js:1995:15)
      at Object.<anonymous> (src/editor/__test__/Actions.spec.js:3:16)


=============================== Coverage summary ===============================
Statements   : 3.91% ( 207/5292 )
Branches     : 3.87% ( 103/2659 )
Functions    : 6.54% ( 47/719 )
Lines        : 4.04% ( 207/5119 )
================================================================================
Test Suites: 6 failed, 9 passed, 15 total
Tests:       37 passed, 37 total
Snapshots:   0 total
Time:        192.759s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nti/web-assignment-editor@1.26.0-alpha.20190128162621 prepack: `cmp-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @nti/web-assignment-editor@1.26.0-alpha.20190128162621 prepack 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!     /Users/jenkins/npm-cache/_logs/2019-01-28T16_31_54_250Z-debug.log
Command failed:  npm publish --tag alpha 
null
null 
[Pipeline] }
[Pipeline] // stage
[Pipeline] script
[Pipeline] {
[Pipeline] properties
[Pipeline] }
[Pipeline] // script
[Pipeline] step

Changes since last successful build:

  • [Cory Jones] 562824e - NTI-7299 Check passingScore when determining case for non-pass/fail

View full output

@jsg2021
Copy link
Contributor

jsg2021 commented Jan 28, 2019

@rayhatfield we need to update the jest config to point to the src dir
jestjs/jest#2702 (comment)

something like:

moduleNameMapper: {
    '^@nti\\/([^\\/]+)': '$1/src',
  },

@nti-jarvis
Copy link
Author

Build 'NextThought/nti.web.assignment-editor/master' is failing!

Last 50 lines of build output:

[...truncated 11817 lines...]
      at Object.<anonymous> (node_modules/@nti/web-commons/lib/index.js:1:17)
      at Object.<anonymous> (src/editor/inline/DateEditor.jsx:4:1)
      at Object.<anonymous> (src/editor/inline/__test__/DateEditor.spec.js:5:1)

PASS src/action-list/__test__/Stack.spec.js (36.05s)
FAIL src/editor/__test__/Actions.spec.js
  ● Test suite failed to run

    The package '@nti/web-commons' cannot be imported as a CJS module.



      at Object.<anonymous> (node_modules/@nti/web-commons/lib/index.js:1:34)
      at Object.<anonymous> (src/editor/Actions.js:1995:15)
      at Object.<anonymous> (src/editor/__test__/Actions.spec.js:3:16)


=============================== Coverage summary ===============================
Statements   : 3.91% ( 207/5292 )
Branches     : 3.87% ( 103/2659 )
Functions    : 6.54% ( 47/719 )
Lines        : 4.04% ( 207/5119 )
================================================================================
Test Suites: 6 failed, 9 passed, 15 total
Tests:       37 passed, 37 total
Snapshots:   0 total
Time:        57.776s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nti/web-assignment-editor@1.26.0-alpha.20190128174454 prepack: `cmp-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @nti/web-assignment-editor@1.26.0-alpha.20190128174454 prepack 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!     /Users/jenkins/jenkinsMaster/workspace/nti.web.assignment-editor_master/npm-cache/_logs/2019-01-28T17_47_00_963Z-debug.log
Command failed:  npm publish --tag alpha 
null
null 
[Pipeline] }
[Pipeline] // stage
[Pipeline] script
[Pipeline] {
[Pipeline] properties
[Pipeline] }
[Pipeline] // script
[Pipeline] step

Changes since last successful build:

  • [Cory Jones] 562824e - NTI-7299 Check passingScore when determining case for non-pass/fail

No changes

View full output

@nti-jarvis
Copy link
Author

Build 'NextThought/nti.web.assignment-editor/master' is failing!

Last 50 lines of build output:

[...truncated 10187 lines...]
      at Object.<anonymous> (node_modules/@nti/web-commons/lib/index.js:1:17)
      at Object.<anonymous> (src/editor/input-types/base/Button.jsx:4:1)
      at Object.<anonymous> (src/editor/input-types/base/__test__/Button.spec.js:5:1)

PASS src/action-list/__test__/Stack.spec.js (58.905s)
FAIL src/editor/__test__/Actions.spec.js
  ● Test suite failed to run

    The package '@nti/web-commons' cannot be imported as a CJS module.



      at Object.<anonymous> (node_modules/@nti/web-commons/lib/index.js:1:17)
      at Object.<anonymous> (src/editor/Actions.js:1995:15)
      at Object.<anonymous> (src/editor/__test__/Actions.spec.js:3:16)


=============================== Coverage summary ===============================
Statements   : 3.91% ( 207/5293 )
Branches     : 3.87% ( 103/2659 )
Functions    : 6.54% ( 47/719 )
Lines        : 4.04% ( 207/5120 )
================================================================================
Test Suites: 6 failed, 9 passed, 15 total
Tests:       37 passed, 37 total
Snapshots:   0 total
Time:        106.703s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nti/web-assignment-editor@1.26.0-alpha.20190128180406 prepack: `cmp-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @nti/web-assignment-editor@1.26.0-alpha.20190128180406 prepack 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!     /Users/jenkins/npm-cache/_logs/2019-01-28T18_08_08_933Z-debug.log
Command failed:  npm publish --tag alpha 
null
null 
[Pipeline] }
[Pipeline] // stage
[Pipeline] script
[Pipeline] {
[Pipeline] properties
[Pipeline] }
[Pipeline] // script
[Pipeline] step

Changes since last successful build:

  • [Cory Jones] 562824e - NTI-7299 Check passingScore when determining case for non-pass/fail

No changes

  • [Andrew Ligon] fdead38 - NTI-7295 use the completion-passing-percent rel to saving the passing

View full output

@rayhatfield
Copy link
Contributor

added regex to jest config to map to src dirs. try 'er now.

@nti-jarvis
Copy link
Author

Build was fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants