Skip to content

IBX-12358: Introduced Bootstrapper / Hooks for integration tests - #115

Merged
Steveb-p merged 4 commits into
4.6from
kernel-test-bootstrap-v2
Aug 31, 2026
Merged

IBX-12358: Introduced Bootstrapper / Hooks for integration tests#115
Steveb-p merged 4 commits into
4.6from
kernel-test-bootstrap-v2

Conversation

@Steveb-p

@Steveb-p Steveb-p commented Aug 25, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12358

Related PRs:

Description:

Sixth rollout sample, another "minimal boot-and-shutdown" case: this package's only integration
test (TranslationTest) checks translation config, not repository/content data, and the old
tests/bootstrap.php never touched the database at all - just kernel boot + shutdown, no schema or
fixture import.

  • tests/bootstrap.php: collapsed to (new Bootstrapper())->bootstrap(...), with
    Bootstrapper::OPTION_PREPARE_DATABASE, DatabaseSchemaHook::OPTION_LOAD_SCHEMA and
    FixtureHook::OPTION_LOAD_FIXTURES all disabled - matching the old script's behavior exactly
    (no database creation, no schema/fixture import), not just a default that happens to compile.
  • tests/integration/Kernel.php: registers IbexaTestCoreBundle itself (the shared kernel doesn't
    auto-register it).

Separately, and unrelated to the Bootstrapper migration itself: backend-ci.yaml was calling a
local composite action (.github/actions/composer-install) that wrapped ramsey/composer-install
directly instead of ibexa/gh-workflows/actions/composer-install@main. That shared action is the
only thing that processes dependencies.json, so this repo's CI would silently ignore it and keep
testing against the real published ibexa/test-core - this PR's own dependencies.json commit
wouldn't have done anything without this fix. Swapped in the shared action (paired with
ibexa/gh-workflows/actions/setup-composer-root-version@main to keep the COMPOSER_ROOT_VERSION
behavior the local composite used to provide) and removed the now-unused local composite. This is a
genuine, permanent fix, not something to revert once dependencies.json goes away.

For QA:

Not applicable - test infrastructure only, no runtime behavior change.

Verified locally: no database file gets created, 1 integration + 94 unit tests pass, PHPStan and
cs-fixer clean.

…d-ci.yaml

This repo's workflow called a local composite action
(.github/actions/composer-install) that wrapped ramsey/composer-install
directly after computing COMPOSER_ROOT_VERSION from composer.json's
branch-alias, unlike sibling packages (e.g. product-catalog, connector-dam),
which go through ibexa/gh-workflows/actions/composer-install@main paired
with ibexa/gh-workflows/actions/setup-composer-root-version@main for the
same COMPOSER_ROOT_VERSION behavior. The shared composer-install action is
also the only thing that processes a dependencies.json file at the repo
root - content-forms's had been silently inert, so CI was actually testing
against the real published ibexa/test-core instead of the intended branch.
Bringing this workflow in line with the rest of the org fixes that for
good, not just for this PR. The now-unused local composite action is
removed.
Replaces the manual kernel boot+shutdown with the shared Bootstrapper,
registering IbexaTestCoreBundle in the integration Kernel and disabling
database preparation, schema loading, and fixture loading - the only
integration test (TranslationTest) never touches the database/repository.
Points CI at the branch that adds the Bootstrapper mechanism, so this PR's
tests can run before that PR merges. Must be removed before merging.
@Steveb-p Steveb-p changed the title Adopt ibexa/test-core's Bootstrapper for the integration test bootstrap IBX-12358: Introduced Bootstrapper / Hooks for integration tests Aug 26, 2026
@Steveb-p
Steveb-p marked this pull request as ready for review August 26, 2026 13:46
@Steveb-p
Steveb-p requested a review from a team August 26, 2026 13:46
@sonarqubecloud

Copy link
Copy Markdown

@Steveb-p
Steveb-p merged commit 48ffcbf into 4.6 Aug 31, 2026
15 checks passed
@Steveb-p
Steveb-p deleted the kernel-test-bootstrap-v2 branch August 31, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants