Skip to content

Run Copilot setup steps sequentially - #324

Merged
swissspidy merged 1 commit into
mainfrom
claude/fix-copilot-setup-steps
Nov 23, 2026
Merged

swissspidy merged 1 commit into
mainfrom
claude/fix-copilot-setup-steps

Conversation

@swissspidy

@swissspidy swissspidy commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Copilot code review currently fails to start with:

Copilot code review could not start because the generated Actions workflow failed validation. Check .github/workflows/copilot-code-review.yml (or .yaml) on your default branch, or copilot-setup-steps.yml (or .yaml) if the code review workflow is absent. Check action references and the placement of workflow settings.

Without a copilot-code-review.yml, Copilot builds its workflow from copilot-setup-steps.yml. Since #298 that file runs the MySQL setup with background: true and has a bare wait-all: step that has neither run nor uses. These step-parallelism keywords are new enough that actionlint doesn't know them either (see .github/actionlint.yml), and they are the only unusual thing in the file, so they are the likely cause of the validation failure.

This PR:

  • Runs the MySQL setup in the foreground and drops the wait-all step.
  • Also avoids the race fixed for reusable-functional.yml in Set up the database server in the foreground #321: the MySQL action unpacks its binaries with the system tar, which fails to load libpcre2 while setup-php upgrades that library with apt.

The cost is a slightly slower Copilot environment setup. Other workflows keep using background/wait-all, since they run as regular Actions jobs where the keywords work.

The file is synced to all repositories, so the fix propagates on merge. This is inferred from the error message rather than verified against Copilot's validator; if reviews still fail after merging, the next step is GitHub Support as the message suggests. actionlint passes.


Generated by Claude Code

Summary by CodeRabbit

  • Chores
    • Updated the development workflow’s MySQL setup sequence. No user-facing changes are included.

Copilot code review builds its workflow from copilot-setup-steps.yml and
failed validation with the `background` MySQL step and the bare
`wait-all` step. Running the MySQL setup in the foreground also avoids
the libpcre2 race with setup-php fixed in reusable-functional.yml.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UWTd5n2TBcDvRzhQfqhhaB
@swissspidy
swissspidy requested a review from a team as a code owner November 23, 2026 15:25
Copilot AI balanced review requested due to automatic review settings November 23, 2026 15:25

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Copilot setup workflow now runs the conditional MySQL setup step in normal step order. It removes the separate MySQL server wait step and updates related comments.

Changes: Copilot MySQL setup

Layer / File(s) Summary
Run MySQL setup in sequence
.github/workflows/copilot-setup-steps.yml
The conditional MySQL setup step no longer runs in the background. The separate wait step is removed, and comments describe workflow validation and PHP setup issues.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Possibly related PRs

  • wp-cli/.github#321: Changes the Behat workflow to run MySQL setup in the foreground for the same reported tar/libpcre2-8.so.0 failure.

Suggested reviewers: brianhenryie

Merge Risk: Minimal · up to bed8b

Copilot environment setup now runs MySQL in the foreground, which is slower but avoids the reported libpcre2 race with PHP setup. No merge-blocking risk is identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Run Copilot setup steps sequentially" matches the main change. The workflow now runs the MySQL setup step in the foreground instead of in the background, and the separate wait step is remov…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Run Copilot setup steps sequentially" matches the main change. The workflow now runs the MySQL setup step in the foreground instead of in the background, and the separate wait step is removed, so the steps run in order. The title is specific and concise, and it names the primary change from the developer's perspective.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

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: 77256f61-547b-4598-b4da-b85db1d1c138
Commits

Reviewing files that changed from the base of the PR and between c819f58 and bed8bb9.

Files selected for processing: 1

  • .github/workflows/copilot-setup-steps.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@github-actions github-actions Bot added bug Something isn't working scope:distribution labels Nov 23, 2026
@swissspidy
swissspidy merged commit 1a8fe7d into main Nov 23, 2026
21 checks passed
@swissspidy
swissspidy deleted the claude/fix-copilot-setup-steps branch November 23, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working scope:distribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants