Skip to content

Run the Behat tests in parallel workers in throwaway containers - #313

Merged
schlessera merged 2 commits into
mainfrom
ci/parallel-docker-behat
Nov 2, 2026
Merged

schlessera merged 2 commits into
mainfrom
ci/parallel-docker-behat

Conversation

@schlessera

@schlessera schlessera commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Enables the parallel runner of wp-cli/wp-cli-tests#405 with throwaway Docker containers per worker from wp-cli/wp-cli-tests#408 for the functional tests of all packages.

On core-command and cache-command, this cut the run time of the Behat step by about 68% and 55%, with every job passing (wp-cli/wp-cli-tests#391). WP_CLI_TEST_DOCKER is set to auto, so where Docker cannot be used, on Windows and macOS, for code coverage and where the image cannot be built, wp-cli/wp-cli-tests runs the scenarios without containers and reports why. Versions of wp-cli/wp-cli-tests without these changes ignore both settings.

Draft until wp-cli/wp-cli-tests#405 and #408 are released.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

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: b9244b89-a64f-43f1-96e3-5e96361a9e24
  • 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

@github-actions github-actions Bot added enhancement New feature or request scope:testing labels Oct 31, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
schlessera added a commit to wp-cli/wp-cli that referenced this pull request Nov 2, 2026
The Docker workers of wp-cli/.github#313 fail a few scenarios of this
package, so the baseline used host workers as well.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schlessera
schlessera marked this pull request as ready for review November 2, 2026 09:33
@schlessera
schlessera requested a review from a team as a code owner November 2, 2026 09:33
@schlessera
schlessera merged commit 3b9c705 into main Nov 2, 2026
11 checks passed
@schlessera
schlessera deleted the ci/parallel-docker-behat branch November 2, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request scope:testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant