Skip to content

Restore self-describing names on the test jobs - #276

Merged
swissspidy merged 1 commit into
mainfrom
claude/wp-cli-actions-optimization-mozclo
Aug 7, 2026
Merged

Restore self-describing names on the test jobs#276
swissspidy merged 1 commit into
mainfrom
claude/wp-cli-actions-optimization-mozclo

Conversation

@swissspidy

Copy link
Copy Markdown
Member

Fixes a regression from #274. Because consumer repositories pin @main, the bad names are live everywhere right now.

What broke

#274 moved the PHP version out of the called workflows and into the calling job, on the assumption that the run view renders a nested job as <calling job> / <called job>. It does not at this depth — a nested job is labelled with its own name only. The version was not moved, it was hidden.

Observed in wp-cli/wp-cli-tests run 31163465254: nine jobs all called PHPUnit, and Behat legs called WP trunk | SQLite with no way to tell PHP 8.3 from 8.4 from 8.5.

Why the grouping is not reachable here

The idea came from wp-cli/automated-tests, where the run groups neatly by package. That works because its matrix job is called directly from the top-level workflow — two levels, so the matrix job is the top-level caller and its name becomes the group header.

This repository has three levels: testing.ymlreusable-testing.ymlreusable-unit.yml / reusable-functional.yml. The middle name is not surfaced. Grouping by PHP version would require the matrix to live in each repository's testing.yml — the per-repository file that carries minimum-php, minimum-wp and the matrix overrides, and which we deliberately kept out of the sync list. So it is not reachable without reopening that decision.

What actually makes automated-tests readable is not the grouping, it is that its leaf name is self-sufficient. That is the property #274 broke.

This change

  • Full description restored in reusable-unit.yml and reusable-functional.yml, where it is displayed.
  • Calling job names in reusable-testing.yml static again (Unit, Behat), with a comment recording why detail must not go there.
  • The database version stays spelled out. That part of Reduce CI cost and latency across the reusable workflows #274 fixed a real ambiguity: MySQL alone rendered the mysql-5.6, 5.7, 8.0 and 8.4 legs identically, which was seven pairs of check runs sharing a name.

Verified by simulating the rendered names across the full pull request matrix: 41 Behat and 9 unit names, no duplicates.

Net effect against main: names return to the pre-#274 format, plus the database version disambiguation.


Generated by Claude Code

The previous change moved the PHP version out of the called workflows and into
the calling job, on the assumption that the run view renders a nested job as
"<calling job> / <called job>". It does not at this depth. A nested job is
labelled with its own name only, so the version was not moved, it was hidden.

The result was a run full of jobs called "PHPUnit", and Behat legs called
"WP trunk | SQLite" that gave no way to tell PHP 8.3 from 8.4 or 8.5.

wp-cli/automated-tests appears to group because its matrix job is called
directly from the top-level workflow, one level up from here. This repository
has an extra level — testing.yml calls reusable-testing.yml, which calls
reusable-unit.yml and reusable-functional.yml — and the middle name is not
surfaced. Grouping by PHP version would require the matrix to live in each
repository's testing.yml, which is exactly the per-repository file we decided
not to centralise, so it is not reachable from here at all.

Put the full description back in the called workflows, where it is displayed,
and make the calling job names static again. The database version stays spelled
out; that part fixed a real ambiguity where mysql-8.0 and mysql-8.4 rendered
identically.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jy4dmjymj9VmoTBaqrV4iX
@swissspidy
swissspidy requested a review from a team as a code owner August 7, 2026 09:07
Copilot AI lite review requested due to automatic review settings August 7, 2026 09:07
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@swissspidy, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 52 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f0d99894-a156-4a9d-9c39-8b2218dcf9ca

📥 Commits

Reviewing files that changed from the base of the PR and between d6520f3 and d0f85aa.

📒 Files selected for processing (3)
  • .github/workflows/reusable-functional.yml
  • .github/workflows/reusable-testing.yml
  • .github/workflows/reusable-unit.yml

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.

Pull request overview

Restores self-describing GitHub Actions job names for nested reusable workflows so CI runs remain readable (and uniquely identifiable) in consumer repositories that call these workflows at three levels of nesting.

Changes:

  • Restore full, self-sufficient leg names in reusable-unit.yml and reusable-functional.yml (including PHP version).
  • Make the calling job names in reusable-testing.yml static again (Unit, Behat) and document why distinguishing detail must live in the leaf workflow job names.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/reusable-unit.yml Updates the leaf job name to include `Unit
.github/workflows/reusable-testing.yml Reverts caller job names to static Unit/Behat with an explanatory comment; continues passing matrix values to called workflows.
.github/workflows/reusable-functional.yml Updates the leaf job name to include `Behat

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@swissspidy
swissspidy merged commit 68a426d into main Aug 7, 2026
14 of 15 checks passed
@swissspidy
swissspidy deleted the claude/wp-cli-actions-optimization-mozclo branch August 7, 2026 09:16
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.

3 participants