Skip to content

IBX-12229: Added unified deptrac layers configuration - #803

Merged
bnowak merged 6 commits into
6.0from
IBX-12229-added-deptrac-layers-config
Aug 26, 2026
Merged

IBX-12229: Added unified deptrac layers configuration#803
bnowak merged 6 commits into
6.0from
IBX-12229-added-deptrac-layers-config

Conversation

@bnowak

@bnowak bnowak commented Aug 10, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12229

Related PRs:

Description:

PoC of the unified per-package deptrac layer model:

  • The former Bundle and Library layers are merged into a single Bundle layer (src/bundle + src/lib).
  • The Contracts layer stays unchanged — public contracts, implementable by partners.
  • A new InternalContracts layer is introduced, made up of a dedicated src/internal-contracts/ directory. Internal contracts are implementable only by Ibexa packages.
  • A new Test layer covers tests/ — it may depend on all src layers, never vice versa.

Deptrac violations, and therefore a red deptrac CI job, are expected at this stage — the goal is surfacing the current shape of the package against the target ruleset. There are no runtime code changes.

Note: the InternalContract marker attribute that was initially part of this PR has been removed (team decision) — the InternalContracts layer is collected from the dedicated directory only.

For QA:

Nothing to test functionally — this is a config/CI-only change (deptrac configuration, Composer dev dependency and scripts, CI job).

Documentation:

No client-facing impact to document.

@bnowak
bnowak force-pushed the IBX-12229-added-deptrac-layers-config branch from 820b56e to 7b744ab Compare August 13, 2026 06:10
@bnowak
bnowak marked this pull request as ready for review August 13, 2026 11:10
@bnowak
bnowak requested a review from a team August 13, 2026 11:10
bnowak and others added 5 commits August 26, 2026 12:01
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…out v7

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
php-cs-fixer 3.75 declares PHP 8.3.* as its maximum supported version and
refuses to run on PHP 8.4 without PHP_CS_FIXER_IGNORE_ENV being set.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Team decision: the attribute-based collection mechanism will not be used.
The InternalContracts layer remains, collected from the dedicated
src/internal-contracts/ directory (kept via .gitkeep); Bundle collectors
simplified back to plain directory collectors.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bnowak
bnowak force-pushed the IBX-12229-added-deptrac-layers-config branch from 864ce9c to f3f4a4d Compare August 26, 2026 10:02

@alongosz alongosz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 once CI agrees ;)

@sonarqubecloud

Copy link
Copy Markdown

@bnowak
bnowak merged commit 48e2bb3 into 6.0 Aug 26, 2026
13 checks passed
@bnowak
bnowak deleted the IBX-12229-added-deptrac-layers-config branch August 26, 2026 12:12
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.

4 participants