From 1db11bf30af7bb5eabcfe82918fcce7d9e435769 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Sat, 31 Oct 2026 12:18:06 +0100 Subject: [PATCH 1/4] Run the Behat tests in parallel workers Co-Authored-By: Claude Opus 5.5 --- composer.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 9fe69a4a..2b7fded9 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ }, "require-dev": { "wp-cli/db-command": "^1.3 || ^2 || ^3", - "wp-cli/wp-cli-tests": "^5" + "wp-cli/wp-cli-tests": "dev-perf/parallel-scenarios#79d8ddadac6616da7b326634c4275aa37de708e2 as 5.1.99" }, "config": { "process-timeout": 7200, @@ -66,7 +66,10 @@ "minimum-stability": "dev", "prefer-stable": true, "scripts": { - "behat": "run-behat-tests", + "behat": [ + "@putenv WP_CLI_TEST_PARALLEL=4", + "run-behat-tests" + ], "behat-rerun": "rerun-behat-tests", "lint": "run-linter-tests", "lint-gherkin": "run-gherkin-lint-tests", From 91fd0ec7981efaad26c9214f7e0928497145e66f Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Sat, 31 Oct 2026 12:26:51 +0100 Subject: [PATCH 2/4] Expect the configured test database name Some scenarios expected the test database to be called wp_cli_test, which only holds with the default configuration, and not for parallel test workers, which each use their own database. Co-Authored-By: Claude Opus 5.5 --- features/config-backcompat.feature | 2 +- features/config-get-field.feature | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/features/config-backcompat.feature b/features/config-backcompat.feature index b7f30844..0d021e64 100644 --- a/features/config-backcompat.feature +++ b/features/config-backcompat.feature @@ -6,7 +6,7 @@ Feature: Backwards compatibility When I run `wp config get --constant=DB_NAME` Then STDOUT should be: """ - wp_cli_test + {DB_NAME} """ Scenario: wp config get --global= --> wp config get --type=variable diff --git a/features/config-get-field.feature b/features/config-get-field.feature index 569e27e8..63c16fbd 100644 --- a/features/config-get-field.feature +++ b/features/config-get-field.feature @@ -6,7 +6,7 @@ Feature: Get the value of a constant or variable defined in wp-config.php and wp When I run `wp config get DB_NAME --type=constant` Then STDOUT should be: """ - wp_cli_test + {DB_NAME} """ Scenario: Get the value of an existing wp-config.php constant without explicit type @@ -15,7 +15,7 @@ Feature: Get the value of a constant or variable defined in wp-config.php and wp When I run `wp config get DB_NAME` Then STDOUT should be: """ - wp_cli_test + {DB_NAME} """ Scenario: Get the value of an existing wp-config.php variable @@ -172,7 +172,7 @@ Feature: Get the value of a constant or variable defined in wp-config.php and wp When I run `wp config get DB_NAME --type=constant --config-file='wp-custom-config.php'` Then STDOUT should be: """ - wp_cli_test + {DB_NAME} """ Scenario: Get the value of an entry that exists as both a variable and a constant should yield a helpful error @@ -248,20 +248,20 @@ Feature: Get the value of a constant or variable defined in wp-config.php and wp When I run `wp config get DB_NAME` Then STDOUT should be: """ - wp_cli_test + {DB_NAME} """ When I run `wp config get DB_NAME --format=json` Then STDOUT should be: """ - "wp_cli_test" + "{DB_NAME}" """ When I run `wp config get DB_NAME --format=yaml` Then STDOUT should be: """ --- - - wp_cli_test + - {DB_NAME} """ @custom-config-file @@ -278,20 +278,20 @@ Feature: Get the value of a constant or variable defined in wp-config.php and wp When I run `wp config get DB_NAME --config-file='wp-custom-config.php'` Then STDOUT should be: """ - wp_cli_test + {DB_NAME} """ When I run `wp config get DB_NAME --format=json --config-file='wp-custom-config.php'` Then STDOUT should be: """ - "wp_cli_test" + "{DB_NAME}" """ When I run `wp config get DB_NAME --format=yaml --config-file='wp-custom-config.php'` Then STDOUT should be: """ --- - - wp_cli_test + - {DB_NAME} """ Scenario: Get a boolean true constant from wp-config.php shows literal "true" From b846594fbf234496ac6ce69538ffdafbbdf69078 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Sat, 31 Oct 2026 13:51:30 +0100 Subject: [PATCH 3/4] Use the latest fixes for parallel Behat runs Co-Authored-By: Claude Opus 5.5 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2b7fded9..675b5b99 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ }, "require-dev": { "wp-cli/db-command": "^1.3 || ^2 || ^3", - "wp-cli/wp-cli-tests": "dev-perf/parallel-scenarios#79d8ddadac6616da7b326634c4275aa37de708e2 as 5.1.99" + "wp-cli/wp-cli-tests": "dev-ci/parallel-integration#97797bbc5dd40d88842afa901f4cd66bc102ddaa as 5.1.99" }, "config": { "process-timeout": 7200, From 301ff0dfe89abf19ce170188b863b0146b34e7bf Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Sat, 31 Oct 2026 16:46:42 +0100 Subject: [PATCH 4/4] Test the latest parallel integration branch Co-Authored-By: Claude Opus 5.5 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 675b5b99..c0711508 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ }, "require-dev": { "wp-cli/db-command": "^1.3 || ^2 || ^3", - "wp-cli/wp-cli-tests": "dev-ci/parallel-integration#97797bbc5dd40d88842afa901f4cd66bc102ddaa as 5.1.99" + "wp-cli/wp-cli-tests": "dev-ci/parallel-integration#04a78ab9833119b5af984ea4d17a2153ae69547f as 5.1.99" }, "config": { "process-timeout": 7200,