Skip to content

Fix GitHub Action Worfklow env configuration of node 'max_old_space_size'. #7785

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

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

DellaBitta
Copy link
Contributor

Discussion

TLDR; This change migrates the configuration of NODE_OPTIONS from shell commands within individual jobs, to GitHub Workflow env: directives which apply to all jobs on the runner.

Our workflows attempted to configure the NODE_OPTIONS environment variable by executing the following shell command:

echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV

This was once supported by GitHub Actions, but no more. Attempts at env config in this way produces errors in our workflows and the configuration fails to stick. In the worst case, this could be part of test flakiness, but at the least it's producing needless error messages in the Annotation section our Workflow results. To fix this, replace the errant shell-based env configuration with the GitHub Workflow sanctioned method of setting environment variables.

Testing

CI Run (below).

API Changes

N/A.

Copy link

changeset-bot bot commented Nov 15, 2023

⚠️ No Changeset found

Latest commit: f433708

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

@google-oss-bot
Copy link
Contributor

@DellaBitta DellaBitta marked this pull request as ready for review November 15, 2023 14:03
@DellaBitta DellaBitta requested a review from a team as a code owner November 15, 2023 14:03
@DellaBitta DellaBitta requested a review from hsubox76 November 15, 2023 14:03
@DellaBitta DellaBitta merged commit 2a2e2b7 into master Nov 15, 2023
@DellaBitta DellaBitta deleted the ddb-workflow-env-node-options branch November 15, 2023 18:33
@firebase firebase locked and limited conversation to collaborators Dec 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants