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

[Bug] Mochapack always runs into AWS Codebuild Segmentation fault (core dumped) #134

Open
1 task
jcjp opened this issue Jul 27, 2022 · 0 comments
Open
1 task
Labels
bug Something isn't working

Comments

@jcjp
Copy link

jcjp commented Jul 27, 2022

  • I'd be willing to submit the fix

Describe the bug

Running mochapack on our CI using AWS Codebuild it randomlys returns an error of: segmentation fault (core dumped) and fails the unit test. It feels like a chance of success and fail using mochapack.

To Reproduce

Unfortunately the code is private property of the organization.

Screenshots

Running command yarn coverage:dot --timeout=45000

113 | yarn run .22.19
114 | $ nyc npm run test:dot --timeout=45000
115 |  
116 | > [email protected] test:dot
117 | > mochapack -R dot --recursive -r tests/setup.js --webpack-config mochapack.config.js "{,!(node_modules)/
/}*.spec.js"
118 |  
119 | WEBPACK Compiling...
120 |  
121 | WEBPACK Compiled successfully in 4953ms
122 |  
123 | MOCHA Testing...
124 |  
125 | Segmentation fault (core dumped)
126 | ERROR: Coverage for lines (0%) does not meet global threshold (90%)
127 | ERROR: Coverage for functions (0%) does not meet global threshold (90%)
128 | ERROR: Coverage for branches (0%) does not meet global threshold (80%)
129 | ERROR: Coverage for statements (0%) does not meet global threshold (90%)

Environment if relevant (please complete the following information):

  • OS:
    • Ubuntu on CI 22.04
    • Windows locally using Node: 16.15.X
  • Node version: node/16.15.1
  • NPM version: 8.11.0
  • Mochapack version: ^2.1.4
  • Mocha version: ^9.2.1
  • Nuxt: ^2.15.8
  • Webpack version: @nuxt/webpack: 2.15.8

Additional context

Also happens locally where mochapack will randomly fail test.

@jcjp jcjp added the bug Something isn't working label Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant