ENOBUFS error when the to be committed files exceed 1MB
See original GitHub issueI am trying to commit the docs folder generated in a previous step. This throws the following error after 1s on execFileSync
. I found that ENOBUFS is thrown when the maxBuffer (1MB by default) gets exceeded.
This happens to be the case here. When only committing a single HTML file from the docs folder, the action succeeds as expected.
Possible solution
The buffer size can be specified as an option with execFileSync
. More in the docs of Node.js. Setting an increased maxBuffer
might solve the issue.
Run EndBug/add-and-commit@v4
with:
add: docs
author_name: Github Workflow Bot
author_email: bot@github.com
message: build docs and dist
cwd: .
force: false
env:
GITHUB_TOKEN: ***
Using 'Github Workflow Bot <bot@github.com>' as author.
Error: spawnSync /home/runner/work/_actions/EndBug/add-and-commit/v4/lib/entrypoint.sh ENOBUFS
at Object.spawnSync (internal/child_process.js:1041:20)
at spawnSync (child_process.js:607:24)
at Object.execFileSync (child_process.js:634:15)
at Object.131 (/home/runner/work/_actions/EndBug/add-and-commit/v4/lib/index.js:1:576)
at __webpack_require__ (/home/runner/work/_actions/EndBug/add-and-commit/v4/lib/index.js:1:154)
at startup (/home/runner/work/_actions/EndBug/add-and-commit/v4/lib/index.js:1:291)
at module.exports.87 (/home/runner/work/_actions/EndBug/add-and-commit/v4/lib/index.js:1:323)
at Object.<anonymous> (/home/runner/work/_actions/EndBug/add-and-commit/v4/lib/index.js:1:333)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
My workflow yml:
name: Build and release
on:
push:
# branches:
# - master
paths-ignore:
- 'docs/**'
jobs:
node:
name: Node 12
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Sync packages with cache
uses: actions/cache@v1
with:
path: ./node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-node_modules-
- name: Install packages
run: yarn install --frozen-lockfile
- name: Build the docs
run: yarn document
- name: Commit docs
uses: EndBug/add-and-commit@v4
with:
add: 'docs'
author_name: Github Workflow Bot
author_email: bot@github.com
message: 'build docs'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
403 error from Github.js getSha for files above ~1MB in size
It throws a 403 Forbidden error because it uses Github GET contents API which gives results for file not exceding 1Mo.
Read more >You just committed a large file and can't push to GitHub
But oops, GitHub complains that you are trying to commit files larger than 50 Mb and even grinds to a halt if they...
Read more >Outlook gives error Attachment size exceeds limit whereas ...
It gives an error message "the file exceeds your attachment limit" whereas the attachment size is just 1 MB and as per my...
Read more >Compress / Reduce a PDF When Documents Exceed The File ...
There's a limit to how much a file can be compressed. A 100mb document may not be able to be compressed to a...
Read more >Changing the File Upload Size Limit - Jotform
When uploading a project file, a Maximum File Size Exceeded error displays ... I want to change my upload file size to be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The fix has been published in a new release! you can get the fixed version using
v4.0.3
,v4
orlatest
. Thanks for your contribution ❤️@EndBug
I’ve put up a pull request to add @RobinWijnant! 🎉