Skip to content

IBX-11939: Added the schema alignment test - #158

Merged
Steveb-p merged 5 commits into
4.6from
feature/schema-alignment-test-4.6
Oct 30, 2026
Merged

Steveb-p merged 5 commits into
4.6from
feature/schema-alignment-test-4.6

Conversation

@Steveb-p

@Steveb-p Steveb-p commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-11939

Related PRs:

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.

  • The SQLite job gets one more run, on the newest PHP, through a single include with schema_builder_event: false. The existing runs get schema_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.php switches between DatabaseSchemaHook and core's DoctrineMigrationsSchemaHook with IBEXA_TEST_SCHEMA_BUILDER_EVENT_ENABLED, as in ibexa/measurement.
  • The test kernel registers the two Doctrine Migrations bundles that path needs, so doctrine/doctrine-migrations-bundle is in require-dev now.
  • The extra run skips PHPStan, which the other runs already do.

On that run, SchemaAlignmentTest checks that the migrations create the schema SchemaBuilderEvent declares, for every table in the test kernel.

Locally, on 4.6, the whole integration suite passes on both paths on SQLite.

@Steveb-p
Steveb-p added this pull request to stack #159 October 5, 2026 11:09
@Steveb-p
Steveb-p marked this pull request as ready for review October 5, 2026 11:09
Base automatically changed from feature/sqlite-fk-on-update-4.6 to 4.6 October 5, 2026 11:12
@Steveb-p
Steveb-p force-pushed the feature/schema-alignment-test-4.6 branch 2 times, most recently from 22259ac to 34ad6ed Compare October 5, 2026 12:02
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
Steveb-p force-pushed the feature/schema-alignment-test-4.6 branch from a06919f to b7eb98a Compare October 24, 2026 10:31
@sonarqubecloud

Copy link
Copy Markdown

@Steveb-p
Steveb-p merged commit 9c4d28e into 4.6 Oct 30, 2026
12 checks passed
@Steveb-p
Steveb-p deleted the feature/schema-alignment-test-4.6 branch October 30, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants