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

Build plugin zip: Verify npm cache before a clean install #34973

Merged
merged 1 commit into from
Sep 20, 2021

Conversation

fullofcaffeine
Copy link
Member

The Build Release Artifact step of the Build Plugin Zip GH action sometimes fails because of npm cache issues. Namely, it could fail with a npm ERR cb() never called error message. This attempt to verify the cache before the ci to give npm a chance to repair it, if needed.

The `Build Release Artifact` step of the `Build Plugin Zip` GH action sometimes fails because of `npm` cache issues. Namely, it fails with a `npm ERR cb() never called` error message. This attempt to verify the cache before the `ci` to give `npm` a chance to repair it, if needed.
@@ -99,6 +99,7 @@ done

# Run the build.
status "Installing dependencies... 📦"
npm cache verify
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've been experiencing some issues like the one at https://github.com/WordPress/gutenberg/runs/3654626964?check_suite_focus=true for other npm install and npm ci in GitHub Actions. Tracked at #33424 They seem related to some packages that we point to the GitHub SHA instead of the npm package. When there're network issues, things fall apart.

That was just for context. We can still try doing this to see if it improves the situation for the plugin job.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ntsekouras ntsekouras merged commit 89e5815 into trunk Sep 20, 2021
@ntsekouras ntsekouras deleted the fix/gh-action-npm-cache-issue branch September 20, 2021 19:26
@github-actions github-actions bot added this to the Gutenberg 11.6 milestone Sep 20, 2021
fullofcaffeine added a commit that referenced this pull request Sep 20, 2021
The `Build Release Artifact` step of the `Build Plugin Zip` GH action sometimes fails because of `npm` cache issues. Namely, it fails with a `npm ERR cb() never called` error message. This attempt to verify the cache before the `ci` to give `npm` a chance to repair it, if needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants