Repository navigation
ci: test the databases with Pest, E2E on MySQL - #117
Merged
Merged
Conversation
Run Pest on the runner with a database service instead of Sail, one matrix entry per database: MySQL with and without a prefix, and SQLite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The database support is tested by Pest: run the browser tests once on MySQL, and only the setup wizard on each database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An in-memory database is lost when db:wipe disconnects from it, and the setup wizard tests need a DB_USERNAME to fall back to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SQLite reads an unknown quoted column as a string, so pointing the settings at another table raised no error there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every database runs with and without the longest table prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Database bugs come from the query layer (raw SQL, JSON operators, migrations, prefixes), and the Pest suite covers that faster and more precisely than running all ~237 browser tests on every database. This PR moves the database matrix to Pest:
run-e2e-tests.yml): one job with threeincludeentries:E2E allruns every Playwright project except the setup wizard, on MySQL only (the database used in production and by the PR previews). Its list of projects is spelled out, and a comment inplaywright.config.tssays to add new projects there too.E2E setup wizard (sqlite|mysql)runs only--project=setup-wizard, because the wizard configures the database of its own run.playwright test --list). Local runs still default to SQLite.run-pest-tests.yml): Sail is gone. The suite runs directly on the runner with a database service container. The matrix isdatabase×db-prefix: MySQL 8.0 and SQLite, each without a prefix and with thep9999_prefix.app/(the<source>ofphpunit.xml).database/testing.sqlite), as a real install does. An in-memory database is lost whendb:wipedisconnects from it (SharedDatabaseSafetyTest).pgsqlormariadblater means adding it todatabase, plus anincludeentry (image, port, user) and its PHP extension.RootUserTransferTest"other errors reading the root user setting are raised" now makes the settings query fail the same way on every database. SQLite reads an unknown quoted column as a string, so pointing the settings at theuserstable raised no error there.README.md(End-to-end tests) and.github/copilot-instructions.md(list of workflows).CHANGELOG.mdentry of test: add a Playwright E2E suite #116 said the E2E tests run on SQLite and MySQL. It now describes the new split and links this PR.Required checks (branch protection on
main, already updated)Pest (prefixed=no)Pest (mysql, prefixed=no)Pest (prefixed=yes)Pest (mysql, prefixed=yes)Pest (sqlite, prefixed=no)(added)Pest (sqlite, prefixed=yes)(added)E2E (mysql)E2E allE2E (sqlite)E2E setup wizard (sqlite)(added)E2E setup wizard (mysql)(added)🤖 Generated with Claude Code
https://claude.ai/code/session_019ELFCv5TybakcWoMz8SmQN