-
-
Notifications
You must be signed in to change notification settings - Fork 537
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
running publish in github actions workflow using windows-latest container: Array buffer allocation failed #2472
Comments
I suspect this has something to do with the size of the artifacts that you're trying to upload to GitHub Releases. How big are they? |
Specifically, how big are the Setup.exe and nupkg files? My guess is that the GitHub hosted Windows runners do not have enough memory to read the files into the heap, in order to construct the payload for uploading the artifact to GitHub Releases. In which case, I don't see a solution that can happen in Electron Forge. |
The macos container is provisioned with 14GB of ram, the windows containers only 7GB.
Perhaps disabling the generation of the |
I'm now wondering if running |
Sounds like it's primarily for updates. The root cause of this issue is that the Windows runner of GItHub Actions does not have enough memory to read a ~1GB file into memory in order to upload it as a release asset. There's not much that Electron Forge can do here since Octokit (the official GitHub API library used) does not have another way to upload release assets, other than passing in a string for data. |
Pre-flight checklist
Electron Forge version
6.0.0-beta.59
Electron version
v13.1.8
Operating system
Windows Server 2019
Last known working Electron Forge version
No response
Expected behavior
I can run
electron-forge publish
on my local Windows and MacOS systems successfully.Running a github actions workflow using their windows-latest container generates a
Array buffer allocation failed
error during the upload artifact section of the script.This workflow ran successfully until I added a large directory of source images to the repository. It still runs successfully using the github macos-latest container.
Actual behavior
This is the release workflow:
https://github.com/stepheneb/cfa-own-electron/blob/main/.github/workflows/release.yml
The workflow takes about 10 minutes to complete in the macos container and errors while uploading artifact:
Uploading Artifacts 0/1 to v1.0.0-beta.6
in the windows container after about 16 minutes.The latest error log from the github windows_latest container:
https://github.com/stepheneb/cfa-own-electron/runs/3414592521?check_suite_focus=true#logs
The section displaying the error:
Steps to reproduce
Clone and checkout repository. Update the bata version and push tags. This will start the
release
workflow. The macos release succeeds, the windows release fails.npm install
npm version prerelease
git push origin main
git push --follow-tags
This is the release workflow:
https://github.com/stepheneb/cfa-own-electron/blob/main/.github/workflows/release.yml
The workflow takes about 10 minutes t o complete in the macos container and errors while uploading artifacts in the windows container after about 16 minutes.
The latest error log from the github windows_latest container:
https://github.com/stepheneb/cfa-own-electron/runs/3414592521?check_suite_focus=true#logs
Unless the issue is obvious I plan to update the workflow running
electron-forge publish
in the windows container to add additional debugging information in the log.I suspect the problem uploading the built artifacts on the github
windows_latest
container started after this commit add source-images and scripts which added this directory of images: https://github.com/stepheneb/cfa-own-electron/tree/main/src/source-imagesAdditional information
No response
The text was updated successfully, but these errors were encountered: