[dev] CI: reduce number of wp-env startup crashes (take 2) (#52254)

To reduce wp-env startup crashes in CI, bump the ut's version to the latest and downgrade the MariaDB version used under the hood to 11.2. Related to https://github.com/WordPress/gutenberg/issues/62242, since it's addressed, we are good to remove the patch.
This commit is contained in:
Vladimir Reznichenko 2024-10-23 11:13:20 +02:00 committed by GitHub
parent 983326c6d6
commit ed7d8c8505
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 61 additions and 34 deletions

View File

@ -154,13 +154,9 @@ jobs:
- name: 'Start Test Environment'
id: 'prepare-test-environment'
uses: 'nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e'
with:
command: 'pnpm --filter="${{ matrix.projectName }}" ${{ matrix.testEnv.start }}'
max_attempts: 2
timeout_minutes: 5
if: ${{ matrix.testEnv.shouldCreate }}
env: ${{ matrix.testEnv.envVars }}
run: 'pnpm --filter="${{ matrix.projectName }}" ${{ matrix.testEnv.start }}'
- name: 'Determine BuildKite Analytics Message'
env:

View File

@ -253,7 +253,7 @@
"@woocommerce/block-library",
"**"
],
"pinVersion": "^10.1.0"
"pinVersion": "10.10.x"
},
{
"dependencies": [

View File

@ -0,0 +1,22 @@
diff --git a/lib/build-docker-compose-config.js b/lib/build-docker-compose-config.js
index a394537e3608723eb93f9184654d34fd845b0fe3..ab00a9b178d7f60d1d711fd645026004dd146ba2 100644
--- a/lib/build-docker-compose-config.js
+++ b/lib/build-docker-compose-config.js
@@ -177,7 +177,7 @@ module.exports = function buildDockerComposeConfig( config ) {
return {
services: {
mysql: {
- image: 'mariadb:lts',
+ image: 'mariadb:11.2',
ports: [ developmentMysqlPorts ],
environment: {
MYSQL_ROOT_HOST: '%',
@@ -188,7 +188,7 @@ module.exports = function buildDockerComposeConfig( config ) {
volumes: [ 'mysql:/var/lib/mysql' ],
},
'tests-mysql': {
- image: 'mariadb:lts',
+ image: 'mariadb:11.2',
ports: [ testsMysqlPorts ],
environment: {
MYSQL_ROOT_HOST: '%',

View File

@ -77,7 +77,8 @@
"@automattic/tour-kit>@wordpress/element": "4.4.1"
},
"patchedDependencies": {
"@wordpress/edit-site@5.15.0": "bin/patches/@wordpress__edit-site@5.15.0.patch"
"@wordpress/edit-site@5.15.0": "bin/patches/@wordpress__edit-site@5.15.0.patch",
"@wordpress/env@10.10.0": "bin/patches/@wordpress__env@10.10.0.patch"
}
}
}

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Monorepo: bump and patch wp-env to reduce amount of crashes in CI.

View File

@ -27,7 +27,7 @@
"@woocommerce/dependency-extraction-webpack-plugin": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@wordpress/data": "wp-6.0",
"@wordpress/env": "^10.1.0",
"@wordpress/env": "10.10.x",
"@wordpress/prettier-config": "2.17.0",
"@wordpress/scripts": "^19.2.4",
"babel-jest": "27.5.x",

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Monorepo: bump and patch wp-env to reduce amount of crashes in CI.

View File

@ -17,7 +17,7 @@
"@types/wordpress__plugins": "3.0.0",
"@woocommerce/dependency-extraction-webpack-plugin": "workspace:*",
"@woocommerce/eslint-plugin": "workspace:*",
"@wordpress/env": "^10.1.0",
"@wordpress/env": "10.10.x",
"@wordpress/prettier-config": "2.17.0",
"@wordpress/scripts": "^19.2.4",
"eslint": "^8.55.0",

View File

@ -177,7 +177,7 @@
"@wordpress/e2e-test-utils-playwright": "wp-6.6",
"@wordpress/e2e-tests": "^4.9.2",
"@wordpress/element": "5.22.0",
"@wordpress/env": "^10.1.0",
"@wordpress/env": "10.10.x",
"@wordpress/html-entities": "3.24.0",
"@wordpress/i18n": "4.45.0",
"@wordpress/is-shallow-equal": "4.24.0",

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Monorepo: bump and patch wp-env to reduce amount of crashes in CI.

View File

@ -676,7 +676,7 @@
"@wordpress/babel-plugin-import-jsx-pragma": "1.1.3",
"@wordpress/babel-preset-default": "3.0.2",
"@wordpress/e2e-test-utils-playwright": "wp-6.6",
"@wordpress/env": "^10.1.0",
"@wordpress/env": "10.10.x",
"@wordpress/stylelint-config": "^21.36.0",
"allure-commandline": "^2.25.0",
"allure-playwright": "^2.9.2",

View File

@ -15,6 +15,9 @@ patchedDependencies:
'@wordpress/edit-site@5.15.0':
hash: 6y3l6gxu33zybfmvbjd23dtqda
path: bin/patches/@wordpress__edit-site@5.15.0.patch
'@wordpress/env@10.10.0':
hash: udc4zzshwvoqfywbfiynuocs7e
path: bin/patches/@wordpress__env@10.10.0.patch
importers:
@ -3041,8 +3044,8 @@ importers:
specifier: wp-6.0
version: 6.6.1(react@17.0.2)
'@wordpress/env':
specifier: ^10.1.0
version: 10.5.0
specifier: 10.10.x
version: 10.10.0(patch_hash=udc4zzshwvoqfywbfiynuocs7e)
'@wordpress/prettier-config':
specifier: 2.17.0
version: 2.17.0(wp-prettier@2.8.5)
@ -3144,8 +3147,8 @@ importers:
specifier: wp-6.6
version: 1.0.1(@playwright/test@1.46.1)(encoding@0.1.13)(typescript@5.3.3)
'@wordpress/env':
specifier: ^10.1.0
version: 10.5.0
specifier: 10.10.x
version: 10.10.0(patch_hash=udc4zzshwvoqfywbfiynuocs7e)
'@wordpress/stylelint-config':
specifier: ^21.36.0
version: 21.36.0(postcss@8.4.32)(stylelint@14.16.1)
@ -3316,8 +3319,8 @@ importers:
specifier: workspace:*
version: link:../../packages/js/eslint-plugin
'@wordpress/env':
specifier: ^10.1.0
version: 10.5.0
specifier: 10.10.x
version: 10.10.0(patch_hash=udc4zzshwvoqfywbfiynuocs7e)
'@wordpress/prettier-config':
specifier: 2.17.0
version: 2.17.0(wp-prettier@2.8.5)
@ -3702,8 +3705,8 @@ importers:
specifier: 5.22.0
version: 5.22.0
'@wordpress/env':
specifier: ^10.1.0
version: 10.5.0
specifier: 10.10.x
version: 10.10.0(patch_hash=udc4zzshwvoqfywbfiynuocs7e)
'@wordpress/html-entities':
specifier: 3.24.0
version: 3.24.0
@ -4665,8 +4668,8 @@ importers:
specifier: ^16.18.68
version: 16.18.68
'@wordpress/env':
specifier: ^10.1.0
version: 10.5.0
specifier: 10.10.x
version: 10.10.0(patch_hash=udc4zzshwvoqfywbfiynuocs7e)
chalk:
specifier: ^4.1.2
version: 4.1.2
@ -5045,7 +5048,7 @@ importers:
version: 7.6.19(react-dom@18.3.1(react@18.3.1))(react@18.3.1)
'@woocommerce/admin-library':
specifier: workspace:*
version: link:../../plugins/woocommerce-admin
version: link:../../plugins/woocommerce/client/admin
'@woocommerce/block-library':
specifier: workspace:*
version: link:../../plugins/woocommerce-blocks
@ -11217,8 +11220,8 @@ packages:
resolution: {integrity: sha512-JUd0XUHjNtQexAUJq5TodweU9kooCdrh/3NlKj8jEMKgveDx+ipXN2zVsaJWzAcu50FBhegaL+hFH6XRtqEDdQ==}
engines: {node: '>=18.12.0', npm: '>=8.19.2'}
'@wordpress/env@10.5.0':
resolution: {integrity: sha512-Hx+fi6qTEAuycznulkuMi4d5RDPZ6lPPAxaylpCwXNX2hgx5jrrpgnY4Zn0chBgZMpShO7BbA+zNDq2E6evvTw==}
'@wordpress/env@10.10.0':
resolution: {integrity: sha512-7r4E5ECqkdy+Cll3ikCKfaweyRL7T7uAnY86GZZ9HJa5dNfzObfTyWWtPB44gMp5KnW4dZGW/E6mQMzhedc72A==}
engines: {node: '>=18.12.0', npm: '>=8.19.2'}
hasBin: true
@ -25264,11 +25267,6 @@ packages:
resolution: {integrity: sha512-8aAvwVUSHpfEqTQ4w/KMlf3HcRdt50E5ODIQJBw1fQ5RL34xabzxtUlzTXVqc4rkZsPbvrXKWnABCD7kWSmocA==}
engines: {node: '>= 14'}
yaml@2.4.3:
resolution: {integrity: sha512-sntgmxj8o7DE7g/Qi60cqpLBA3HG3STcDA0kO+WfB05jEKhZMbY7umNm2rBpQvsmZ16/lPXCJGW2672dgOUkrg==}
engines: {node: '>= 14'}
hasBin: true
yaml@2.5.0:
resolution: {integrity: sha512-2wWLbGbYDiSqqIKoPjar3MPgB94ErzCtrNE1FdqGuaO0pi2JGjmE8aW8TDZwzU7vuxcGRdL/4gPQwQ7hD5AMSw==}
engines: {node: '>= 14'}
@ -41892,7 +41890,7 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1(react@18.3.1)
'@wordpress/env@10.5.0':
'@wordpress/env@10.10.0(patch_hash=udc4zzshwvoqfywbfiynuocs7e)':
dependencies:
chalk: 4.1.2
copy-dir: 1.3.0
@ -47610,7 +47608,7 @@ snapshots:
docker-compose@0.24.7:
dependencies:
yaml: 2.4.3
yaml: 2.5.0
doctrine@2.1.0:
dependencies:
@ -63848,8 +63846,6 @@ snapshots:
yaml@2.3.4: {}
yaml@2.4.3: {}
yaml@2.5.0: {}
yargs-parser@13.1.2:

View File

@ -13,7 +13,7 @@
"dependencies": {
"@types/node": "^16.18.68",
"@tsconfig/node16": "^1.0.4",
"@wordpress/env": "^10.1.0",
"@wordpress/env": "10.10.x",
"commander": "9.5.0",
"chalk": "^4.1.2",
"inquirer": "^7.1.0",