Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the compatibility issue in starting E2E test environment due to the default charset change in MariaDB v11.3.1 #2272

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

eason9487
Copy link
Member

Changes proposed in this Pull Request:

MariaDB v11.3.1 introduced an issue that breaks backward compatibility for many PHP DB clients. It also affects the starting of E2E test env in this repo.

To fix it, this PR updates @wordpress/env to 9.4.0 to use the LTS version of MariaDB rather than the (default) latest version.

Screenshots:

📷 Before

image

📷 After

image

Detailed test instructions:

📌 Check the results on GitHub Actions

  1. View the failed run before this fix.
  2. View the successful run after this fix.

📌 Local test

  1. It may need to run npm run wp-env destroy first to ensure the incompatible database will be recreated.
  2. Run npm run wp-env:up to see if the E2E test env can be started without errors.
  3. Run npm run test:e2e to see if E2E tests can be run normally.
  4. Run npm run wp-env:down to see if E2E test env can be stopped correctly.

Changelog entry

Dev - Fix the compatibility issue in starting E2E test environment due to the default charset change in MariaDB v11.3.1.

@eason9487 eason9487 requested a review from a team February 22, 2024 03:40
@eason9487 eason9487 self-assigned this Feb 22, 2024
@github-actions github-actions bot added the changelog: dev Developer-facing only change. label Feb 22, 2024
Copy link

codecov bot commented Feb 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (448ea68) 61.5% compared to head (9934d4e) 54.0%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             develop   #2272      +/-   ##
============================================
- Coverage       61.5%   54.0%    -7.5%     
============================================
  Files            748     293     -455     
  Lines          21540    3715   -17825     
  Branches         532     532              
============================================
- Hits           13246    2006   -11240     
+ Misses          7843    1258    -6585     
  Partials         451     451              
Flag Coverage Δ
js-unit-tests 54.0% <ø> (ø)
php-unit-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

see 455 files with indirect coverage changes

Copy link
Contributor

@martynmjones martynmjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @eason9487, thanks for the fix!

Locally the environment setup correctly and all tests pass so LGTM ✅

@eason9487 eason9487 merged commit 28211b8 into develop Feb 22, 2024
8 checks passed
@eason9487 eason9487 deleted the dev/fix-e2e-env-mariadb branch February 22, 2024 12:53
@eason9487 eason9487 mentioned this pull request Feb 27, 2024
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: dev Developer-facing only change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants