Repository navigation
IBX-11939: Added the schema alignment test - #861
Merged
Merged
Conversation
Steveb-p
force-pushed
the
feature/schema-alignment-test-4.6
branch
from
October 5, 2026 10:22
8c5f89a to
4ff7193
Compare
Steveb-p
force-pushed
the
feature/schema-parity-4.6
branch
from
October 5, 2026 10:37
c9d5111 to
c2f78c9
Compare
Steveb-p
force-pushed
the
feature/schema-alignment-test-4.6
branch
from
October 5, 2026 11:59
4ff7193 to
8528379
Compare
Steveb-p
marked this pull request as ready for review
October 5, 2026 15:39
konradoboza
approved these changes
Oct 6, 2026
ViniTou
approved these changes
Oct 6, 2026
Steveb-p
force-pushed
the
feature/schema-alignment-test-4.6
branch
4 times, most recently
from
October 22, 2026 10:26
9313b71 to
3732631
Compare
The kernel-based integration suite now also runs on the Doctrine Migrations install path, in one extra CI run per database on the newest PHP and the oldest server version, and SchemaAlignmentTest checks there that the migrations create the schema SchemaBuilderEvent declares. The bootstrap switches between the two paths with IBEXA_TEST_SCHEMA_BUILDER_EVENT_ENABLED, and the test kernel registers the two Doctrine Migrations bundles that path needs. Those runs skip PHPStan, the unit tests and the legacy integration suite, which installs its own schema whatever the path. The legacy suites' configs exclude the test, like the kernel-based suite's other tests.
The schema_builder_event=false legs skipped PHPStan, the unit tests and the legacy integration suite, and ran phpunit-integration.xml in a step of their own. They now run the same steps as the other legs, and IBEXA_TEST_SCHEMA_BUILDER_EVENT_ENABLED (1 or 0) picks the install path. The legacy suite doesn't read it, so it runs the same on every leg.
…n the bootstrap ibexa/test-core#73 returns the DatabaseSchemaHook and DoctrineMigrationsSchemaHook options for either path, so the bootstrap only reads IBEXA_TEST_SCHEMA_BUILDER_EVENT_ENABLED itself.
The single_line_empty_body rule of PHP CS Fixer 3.95 wants it, and CI resolves that version here now.
Steveb-p
force-pushed
the
feature/schema-alignment-test-4.6
branch
from
October 29, 2026 10:29
3732631 to
6313d16
Compare
|
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.



Related PRs:
SchemaInstallPath, which the bootstrap uses; merged)Description:
Adds ibexa/test-core#68's schema alignment test to the kernel-based integration suite (
phpunit-integration.xml), and runs that suite on the Doctrine Migrations install path too, which core's CI didn't do yet.includewithschema_builder_event: false. The existing runs getschema_builder_event: true, and their names stay as they were.phpunit-integration.xml: the legacy integration suite installs its own schema whatever the path, and PHPStan and the unit tests don't depend on it.phpunit-integration-legacy.xmlandphpunit-integration-legacy-solr.xmlexclude the new test, like the kernel-based suite's other tests.tests/integration/bootstrap.phpswitches betweenDatabaseSchemaHookandDoctrineMigrationsSchemaHookwithIBEXA_TEST_SCHEMA_BUILDER_EVENT_ENABLED. The base fixture loads on both paths, like the kernel's owntest_data.yaml, which the tests assert against.doctrine/doctrine-migrations-bundleis in require-dev now.On those runs,
SchemaAlignmentTestchecks that core's migrations create the schemaSchemaBuilderEventdeclares. That includesezcontentclass_attribute_ml's SQLite foreign key, fixed in #856.Locally the kernel-based suite passes on both paths on SQLite, PostgreSQL 14 and MySQL 8.0.