Repository navigation
IBX-11939: Added the schema alignment test - #158
Merged
Merged
Conversation
Steveb-p
marked this pull request as ready for review
October 5, 2026 11:09
Steveb-p
force-pushed
the
feature/schema-alignment-test-4.6
branch
2 times, most recently
from
October 5, 2026 12:02
22259ac to
34ad6ed
Compare
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
2 times, most recently
from
October 19, 2026 11:08
3f805ee to
a06919f
Compare
The integration suite now also runs on the Doctrine Migrations install path, in one extra CI job per database on the newest PHP, 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. The extra run skips PHPStan, which the other runs already do.
The schema_builder_event=false leg skipped PHPStan. It now runs the same steps as the other legs, and IBEXA_TEST_SCHEMA_BUILDER_EVENT_ENABLED (1 or 0) picks the install path.
…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, now that 4.6 requires ibexa/code-style ~2.3.1.
Steveb-p
force-pushed
the
feature/schema-alignment-test-4.6
branch
from
October 24, 2026 10:31
a06919f to
b7eb98a
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 integration suite, and runs the suite on the Doctrine Migrations install path too, which this package's CI didn't do yet.
includewithschema_builder_event: false. The existing runs getschema_builder_event: true, so GitHub adds that entry as a new job instead of merging it into an existing one; their names stay as they were.tests/bootstrap.phpswitches betweenDatabaseSchemaHookand core'sDoctrineMigrationsSchemaHookwithIBEXA_TEST_SCHEMA_BUILDER_EVENT_ENABLED, as in ibexa/measurement.doctrine/doctrine-migrations-bundleis in require-dev now.On that run,
SchemaAlignmentTestchecks that the migrations create the schemaSchemaBuilderEventdeclares, for every table in the test kernel.Locally, on 4.6, the whole integration suite passes on both paths on SQLite.