-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Coverage runs correctly locally but fails in GH with OOM/GC errors #356
Comments
cc @ArtiomTr initially we got this one to run by setting the heap to 4096 as it shown below, but now it is breaking the same way again, any ideas what could be causing this? name: 'coverage'
on:
push:
branches: [main]
pull_request:
branches: ['*']
jobs:
coverage:
permissions:
checks: write
pull-requests: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.14.0
uses: actions/setup-node@v2
with:
node-version: 16.14.0
- uses: ArtiomTr/jest-coverage-report-action@v2
env:
NODE_OPTIONS: '--max_old_space_size=4096'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
package-manager: yarn
test-script: yarn test
annotations: none
|
Hey @MorenoMdz 👋, I'm sorry, I missed your issue. In the latest version of jest, memory consumption increased drastically. You can try to apply the fixes, described in that issue, or, you can use the new jest feature: shards. Although shards aren't supported natively, some people were able configure this action to use shards - here is a link to a comment |
Ended up fixing it by increasing the heap size
|
@ArtiomTr would you consider changing/customising the way your action uses |
Describe a bug
Coverage runs correctly locally but fails in GH with OOM/GC errors.
Expected behavior
Coverage run to complete
Details
Additional context
The text was updated successfully, but these errors were encountered: