Skip to content

Repair wp/5.7 branch Actions: Add concurrency configuration to workflows - #84766

Open
desrosj wants to merge 1 commit into
fix-actions-5.7/fix-workflow-branch-filtersfrom
fix-actions-5.7/add-workflow-concurrency
Open

desrosj wants to merge 1 commit into
fix-actions-5.7/fix-workflow-branch-filtersfrom
fix-actions-5.7/add-workflow-concurrency

Conversation

@desrosj

@desrosj desrosj commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Part of #82936.

What?

Adds a concurrency: block to every relevant GitHub Actions workflow on this branch, so a pull request's in-progress run is cancelled when a newer commit is pushed to it.

The cancel.yml workflow this replaces is removed further down the stack, in #84762, alongside this branch's other obsolete workflows.

Why?

Ports upstream trunk commit 7b39dd71905cb7e546857741e3d52e977ec36691, "Replace the Cancel workflow with native GitHub Action functionality" (#32016).

Use of AI Tools

This PR was authored with the help of Claude Code.

@desrosj desrosj added the [Type] Build Tooling Issues or PRs related to build tooling label Oct 15, 2026
@desrosj desrosj self-assigned this Oct 15, 2026
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7604315b-3405-42c0-8220-6eb20815f6fe

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The concurrency keys allow unrelated fork PRs with identical branch names to cancel each other's checks.

1 open finding
What changed in this PR

Adds native GitHub Actions concurrency controls to five workflows as part of restoring wp/5.7 CI.

Changes:

  • Enables cancellation of unfinished runs sharing a concurrency group.
  • Groups runs by workflow and PR source branch, with a commit-SHA fallback for other events.
File Description
.github/​workflows/​unit-test.yml Adds unit-test concurrency controls.
.github/​workflows/​static-checks.yml Adds static-check concurrency controls.
.github/​workflows/​end2end-test.yml Adds end-to-end test concurrency controls.
.github/​workflows/​create-block.yml Adds Create Block check concurrency controls.
.github/​workflows/​bundle-size.yml Adds compressed-size check concurrency controls.

🧠 Review effort: Balanced


💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/unit-test.yml
@desrosj
desrosj removed this pull request from stack #84797 October 16, 2026 00:33
@desrosj
desrosj added this pull request to stack #84872 October 16, 2026 00:34
@desrosj
desrosj marked this pull request as ready for review October 16, 2026 01:26
@github-actions

github-actions Bot commented Oct 16, 2026 •

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>
Co-authored-by: andrewserong <andrewserong@git.wordpress.org>

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

@desrosj
desrosj removed this pull request from stack #84872 October 16, 2026 15:52
@desrosj
desrosj added this pull request to stack #84945 October 16, 2026 15:53
@desrosj desrosj changed the title Repair wp/5.7 branch Actions: add concurrency configuration to workflows Repair wp/5.7 branch Actions: Add concurrency configuration to workflows Oct 16, 2026

@andrewserong andrewserong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM! Tiniest of nits is that these old files still use 2 character indents instead of the 4 character indent this cherry-pick introduces. I don't think that's an issue because these blocks should still be read correctly (and it makes for a smaller diff not to re-do these files to the 4 character indent used in trunk). But, just thought I'd mention in case it wasn't intentional.

@desrosj

desrosj commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

Tiniest of nits is that these old files still use 2 character indents instead of the 4 character indent this cherry-pick introduces.

Given that this is a cosmetic issue only, and the PR is sitting at 5/36, I don't think it's worth rebasing the entire stack to address that. Let's leave it as is.

@desrosj
desrosj removed this pull request from stack #84945 October 21, 2026 19:48
@desrosj
desrosj added this pull request to stack #85354 October 21, 2026 19:48

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants