Skip to content

Fix dependecies - #49

Merged
gechetspr merged 9 commits into
masterfrom
hotfix/composer
Sep 11, 2026
Merged

Fix dependecies#49
gechetspr merged 9 commits into
masterfrom
hotfix/composer

Conversation

@vol4onok

Copy link
Copy Markdown
Contributor

PR Description

Add a meaningful description here that will let us know what you want to fix with this PR or what functionality you want to add.

Steps before you submit a PR

  • Please add tests for the code you add if it's possible.
  • Please check out our contribution guide: https://docs.spryker.com/docs/dg/dev/code-contribution-guide.html
  • Add a contribution-license-agreement.txt file with the following content:
    I hereby agree to Spryker\'s Contribution License Agreement in https://github.com/spryker/opentelemetry/blob/HASH_OF_COMMIT_YOU_ARE_BASING_YOUR_BRANCH_FROM_MASTER_BRANCH/CONTRIBUTING.md.

This is a mandatory step to make sure you are aware of the license agreement and agree to it. HASH_OF_COMMIT_YOU_ARE_BASING_YOUR_BRANCH_FROM_MASTER_BRANCH is a hash of the commit you are basing your branch from the master branch. You can take it from commits list of master branch before you submit a PR.

Checklist

  • I agree with the Code Contribution License Agreement in CONTRIBUTING.md

* dev:dependency:find flagged it as unused: no test file has a `use
  Codeception\Module\Asserts` statement, only the codeception.yml
  `Asserts` module entry (which the finder doesn't scan for usage).
* Already satisfied transitively via codeception/codeception (pulled
  in through spryker/testify), matching every other Spryker module in
  the suite - none of them list it directly either.
* codecept build failed after removing codeception/module-asserts
  from require-dev (previous commit): the module was still enabled
  in both suites' codeception.yml, and Codeception refuses to build
  if an enabled module's class isn't installed.
* Neither suite actually calls $this->tester->assert*() anywhere -
  all assertions go through PHPUnit's own $this->assertX() inherited
  from Codeception\Test\Unit - so the module was dead weight, not a
  real dependency. Removing it from codeception.yml too (instead of
  putting codeception/module-asserts back) matches what the code
  actually uses.
* Fresh installs failed with "php-http/discovery contains a Composer
  plugin which is blocked by your allow-plugins config" - it's pulled
  in transitively (HTTP client auto-discovery for the OTLP transport)
  but was never allow-listed here, unlike the suite root composer.json
  which already allows it.
* composer.json itself must NOT carry a custom allow-plugins entry -
  the suite monorepo's dev:composer:update-json-files enforces exactly
  one entry (dealerdirect/phpcodesniffer-composer-installer) for every
  Spryker module and strips anything else, which is what happened to
  the earlier "php-http/discovery": true addition (commit 26fc021).
* Standalone CI here still needs the plugin allowed (php-http/discovery
  is pulled in transitively for the OTLP HTTP transport), so allow it
  via `composer global config` instead - an ephemeral, CI-only setting
  that never touches the tracked composer.json.
…config

* The previous "composer global config" step was NOT honored by every
  composer subcommand: the "validation" job's `composer install` picked
  it up fine, but "prefer-lowest"'s `composer update --prefer-lowest
  --prefer-stable` still hit the same blocked-plugin fatal despite the
  identical preceding step (confirmed via the two jobs' CI logs).
* Switch to writing the allow-plugins entry into the checked-out
  composer.json directly (composer config, no --global). Composer
  always honors its own project-level config for every subcommand.
  This still never touches the tracked file in the git repo - the CI
  runner's working copy is discarded after the job, so the entry never
  gets committed/pushed and never conflicts with the suite monorepo's
  dev:composer:update-json-files convention.
gechetspr
gechetspr previously approved these changes Sep 11, 2026
@gechetspr
gechetspr merged commit a940fb4 into master Sep 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants