Skip to content

Repair wp/7.0 branch Actions: remove SimenB/github-actions-cpu-cores dependency - #210

Closed
desrosj wants to merge 1 commit into
fix-actions-7.0/disable-flaky-test-issue-reportingfrom
fix-actions-7.0/remove-cpu-cores-dependency
Closed

desrosj wants to merge 1 commit into
fix-actions-7.0/disable-flaky-test-issue-reportingfrom
fix-actions-7.0/remove-cpu-cores-dependency

Conversation

@desrosj

@desrosj desrosj commented Sep 11, 2026

Copy link
Copy Markdown
Owner

What?

Removes the SimenB/github-actions-cpu-cores third-party action dependency from unit-test.yml, matching upstream trunk's own removal of it.

Why?

Upstream trunk removed this dependency in 4d02abd34c61e8bcf30399c219fdccedaf0e8a84 ("Remove dependency used for counting available CPUs (WordPress#78593)"). The action was only ever used to populate a MAXWORKERS environment variable fed into Jest's --maxWorkers flag. nproc, run directly on the runner, provides the exact same value without depending on an external action.

This branch (wp/7.0) still had the dependency in three jobs in unit-test.yml: unit-js, unit-js-date, and the currently-disabled mobile-unit-js. Each had its SimenB/github-actions-cpu-cores step (and id: cpu-cores) removed, its MAXWORKERS env var line dropped, and its --maxWorkers="$MAXWORKERS" usage switched to --maxWorkers="$(nproc)" directly.

Use of AI Tools

This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.

@desrosj
desrosj force-pushed the fix-actions-7.0/remove-cpu-cores-dependency branch from a8b314b to ca13b2f Compare September 11, 2026 02:20
@desrosj
desrosj force-pushed the fix-actions-7.0/remove-cpu-cores-dependency branch from ca13b2f to 3e48440 Compare September 11, 2026 02:34
@desrosj
desrosj added this pull request to stack #179 September 11, 2026 03:12
@desrosj
desrosj force-pushed the fix-actions-7.0/remove-cpu-cores-dependency branch from 3e48440 to 9fc6e57 Compare September 11, 2026 17:03
@desrosj
desrosj marked this pull request as ready for review September 11, 2026 18:16
@github-actions

Copy link
Copy Markdown

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Upstream trunk removed the `SimenB/github-actions-cpu-cores` dependency in `4d02abd34c61e8bcf30399c219fdccedaf0e8a84` ("Remove dependency used for counting available CPUs (WordPress#78593)"). This third-party action was only ever used to populate a `MAXWORKERS` environment variable passed to Jest's `--maxWorkers` flag; `nproc` provides the exact same value directly from the runner without depending on an external action.

This removes the `SimenB/github-actions-cpu-cores` step (and its `id: cpu-cores`) from all three jobs in `unit-test.yml` that used it (`unit-js`, `unit-js-date`, and the currently-disabled `mobile-unit-js`), drops the `MAXWORKERS` env var each fed, and switches each corresponding `--maxWorkers="$MAXWORKERS"` invocation to `--maxWorkers="$(nproc)"` directly, matching trunk's fix.
@desrosj
desrosj force-pushed the fix-actions-7.0/remove-cpu-cores-dependency branch from 9fc6e57 to 3adcd12 Compare September 11, 2026 18:37
@desrosj

desrosj commented Sep 11, 2026

Copy link
Copy Markdown
Owner Author

Migrated to real upstream: WordPress#82804. Closing this fork PR.

@desrosj desrosj closed this Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant