Skip to content

IBX-11939: Merged branch '4.6' into 5.0 - #929

Merged
Steveb-p merged 2 commits into
5.0from
merge/4.6-to-5.0-schema-alignment
Nov 3, 2026
Merged

Steveb-p merged 2 commits into
5.0from
merge/4.6-to-5.0-schema-alignment

Conversation

@Steveb-p

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

Copy link
Copy Markdown
Contributor

Caution

This is a merge pull request

🎫 Issue IBX-11939

Related PRs:

Conflict resolutions:

  • composer.json keeps 5.0's constraints and takes doctrine/doctrine-migrations-bundle from 4.6.
  • CI: 4.6's schema_builder_event matrix and includes, without the PHP 7.4 exclude and the doctrine-persistence dimension 5.0 doesn't have.
  • phpunit-integration-legacy(-solr).xml: 5.0's format, plus the SchemaAlignmentTest exclude.
  • phpunit-integration*.xml: 5.0's UserService exclude from IBX-12847: Added find methods for users and user groups to UserService #872 and the SchemaAlignmentTest one, both kept.

Rebuilt on 2026-11-03 on top of #872. The merge differs from the previous one by #872's changes only.

* IBX-11939: Added the schema alignment test

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.

* IBX-11939: Ran every CI step on the Doctrine Migrations leg too

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.

* IBX-11939: Used SchemaInstallPath to select the schema install path in 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.

* IBX-11939: Wrote the empty SchemaAlignmentTest body on one line

The single_line_empty_body rule of PHP CS Fixer 3.95 wants it, and CI resolves that version here
now.

* IBX-11939: Passed SchemaInstallPath whether the Doctrine Migrations path is enabled
@Steveb-p Steveb-p added the Fast-forward merge PR should be merged in a fast-forward way label Oct 30, 2026
@Steveb-p
Steveb-p marked this pull request as ready for review October 30, 2026 16:00
# Conflicts:
#	.github/workflows/backend-ci.yaml
#	composer.json
#	phpunit-integration-legacy-solr.xml
#	phpunit-integration-legacy.xml
#	phpunit-integration.xml
@Steveb-p
Steveb-p force-pushed the merge/4.6-to-5.0-schema-alignment branch 2 times, most recently from 87e4a0c to 27ec81f Compare November 3, 2026 11:22
@Steveb-p
Steveb-p merged commit 27ec81f into 5.0 Nov 3, 2026
13 checks passed
@Steveb-p
Steveb-p deleted the merge/4.6-to-5.0-schema-alignment branch November 3, 2026 11:24
@sonarqubecloud

sonarqubecloud Bot commented Nov 3, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fast-forward merge PR should be merged in a fast-forward way

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant