-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Upload npm logs during debug or failure runs #61289
base: trunk
Are you sure you want to change the base?
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Hmm, on second glance, this may not be fixing the issue. Reverting to draft to continue investigating. |
Flaky tests detected in f21b053. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8913631643
|
I'm honestly not sure what's going on now. This PR fully reverts #61211 now, and the issue is still present. @kevin940726 do you have any ideas by chance? @DaniGuardiola did you find anything in your debugging on the other PR? |
I'm in the process of debugging it, I'll report back when I either find something conclusive or... give up :) |
Feel free to fully take over this and I will stop debugging on my branch. Seems like you were already able to get some useful insights, according to #61138 (comment) I was at a meetup so couldn't spend enough time here. Thank you for taking on this! |
The available matrix options are not consistent across workflows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far. Did you manage to find a consistent solution or workaround? If not, let's merge this as is and rename it just to get the nicer logs, and we can leave a task open to debug further. The action is not marked as required for now so it won't be blocking: https://wordpress.slack.com/archives/C02QB2JS7/p1714721524597469?thread_ts=1714590550.533979&cid=C02QB2JS7
Heads up, I removed the logging stuff from my PR but somehow managed to not push it and it got merged 😅 You should be able to simply override the trunk version with yours in this PR. |
I've gone and merged the changes from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try it, those failure are very annoying 🙂
Sorry, I forgot to change the PR title and brief description to reflect the new intent of this PR. @sirreal I think we've filtered out the failures elsewhere, but this just gives better log preservation for debug purposes. |
I suspect the recent failures might be related to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, but we need to remove this thing I accidentally introduced in a different PR.
.github/setup-node/action.yml
Outdated
@@ -42,6 +42,19 @@ runs: | |||
name: npm-logs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to remove this task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ref: #61289 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DaniGuardiola Could you have another look? I've merged trunk
into this PR and this should now be addressed.
What?
This rolls back the most recent update to the actions/setup-node GitHub Action.This adds steps to upload npm logs as an artifact when running in debug mode or a failure is encountered.
Why?
When using a Windows based runner, there are some failures occurring when the
npm ci
script is run.See this workflow run associated with #61138.
How?
This downgrades the actions/setup-node version from the latest (4.0.2) to 4.0.1, which fixes the problem in my testing (see #61288). It's not clear what's causing the problem, but it's likely related to the Windows related changes in 4.0.2 to add support forarm64
.