Skip to content

Repair wp/5.4 branch Actions: Add timeouts to CI jobs that have none - #85602

Merged
desrosj merged 1 commit into
fix-actions-5.4/remove-rn-workflowsfrom
fix-actions-5.4/add-job-timeouts
Oct 29, 2026
Merged

desrosj merged 1 commit into
fix-actions-5.4/remove-rn-workflowsfrom
fix-actions-5.4/add-job-timeouts

Conversation

@desrosj

@desrosj desrosj commented Oct 26, 2026

Copy link
Copy Markdown
Member

Part of #83419.

What?

Adds timeout-minutes to the CI jobs on wp/5.4 that don't have one, using trunk's values:

File Job Check Minutes Trunk
static-checks.yml check Static Analysis All 30 30
unit-test.yml unit-php PHP 20 20
end2end-test.yml admin Admin e2e 45 45 (e2e-playwright)

unit-test.yml's unit-js (JavaScript) job gets no timeout, matching trunk, where it has none.

Why?

Without timeout-minutes, a stuck job runs until GitHub's 360-minute default. On this branch, the Admin - 2 job of run https://github.com/desrosj/gutenberg/actions/runs/35672857737 hung in its npm install and build step until it was cancelled at 360 minutes.

How?

The Static Analysis and Admin e2e values come from 27f57c9 (#80801), which added job timeouts on trunk; the Admin e2e job takes the 45 minutes it gives trunk's Playwright e2e jobs. The PHP value comes from 9ee17a7 (#46510), which created trunk's PHP unit test job with a 20-minute timeout.

All of them leave plenty of headroom on this branch. The slowest successful runs since 2026-09-22 took 4.6 minutes (Static Analysis), 3.4 minutes (PHP) and 7.6 minutes (Admin e2e); a failing Admin e2e run took 9.5 minutes.

Each timeout-minutes goes directly before the job's if:. There are no step-level timeouts.

Testing Instructions

actionlint passes on the changed workflows. Applying every later PR in this stack on top of this change is conflict-free. Check that the Static Analysis, Unit Tests and End-to-End Tests runs on this PR pass as before.

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.

🤖 Generated with Claude Code

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

coderabbitai Bot commented Oct 26, 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
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c6c15f4f-fd09-4ae8-aff5-c35ff6038c00

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.

@github-actions

github-actions Bot commented Oct 27, 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.

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

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


Props Bot commands

You can trigger Props Bot actions by commenting on this PR:

  • @propsbot add <username> to give props to a GitHub user. Requires write access.
  • @propsbot remove <username> to leave a user out of the props. Requires write access.
  • @propsbot refresh to refresh this list. Adding the props-bot label works too.

@desrosj
desrosj force-pushed the fix-actions-5.4/add-job-timeouts branch from 9e8c379 to f2324b6 Compare October 29, 2026 12:48
@desrosj
desrosj merged commit 4d363e8 into wp/5.4 Oct 29, 2026
15 of 27 checks passed
@desrosj
desrosj deleted the fix-actions-5.4/add-job-timeouts branch October 29, 2026 17:19
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