Skip to content

fix(installer): restore composerProbePaths() — fixes 2 CI Pest failures on master - #526

Merged
navneetkumar-pim-webkul merged 1 commit into
masterfrom
fix/installer-composer-probe
Jun 26, 2026
Merged

navneetkumar-pim-webkul merged 1 commit into
masterfrom
fix/installer-composer-probe

Conversation

@navneetkumar-pim-webkul

Copy link
Copy Markdown
Collaborator

Problem

Master's Pest CI is red — 2 failures, both InstallerController::resolveComposerBinary:

  • it probes the bundled bin/composer/composer.phar
  • it returns a php + phar argument prefix when only the bundled phar exists

(1981 passed, 2 failed.)

Cause

The 2.1 convergence merge (#525) brought in 2.1's InstallerControllerTest, which asserts:

  • a composerProbePaths() method exists, and
  • it includes base_path('bin/composer/composer.phar').

But the merge kept master's InstallerController, which inlined the probe list inside resolveComposerBinary() and had no composerProbePaths() method → the test's ReflectionMethod($controller, 'composerProbePaths') blew up. (A test↔code mismatch from resolving that conflict in master's favor.)

Fix

Extract the probe list into composerProbePaths() (adding the bundled bin/composer/composer.phar path) and have resolveComposerBinary() iterate it — exactly 2.1's shape, which the test was written against. Pure refactor; runtime behaviour unchanged apart from the extra bundled-phar probe.

Verification

  • ✅ InstallerControllerTest → 7/7 pass (the 2 failing tests now green)
  • ✅ Pint clean
  • ✅ Confirmed via CI log these were the only 2 failures in the master Pest run

Greens the Pest job on master.

…trollerTest

The 2.1 convergence merge (#525) brought in 2.1's InstallerControllerTest
(which asserts a `composerProbePaths()` method and a bundled
`bin/composer/composer.phar` probe) but kept master's InstallerController,
which inlined the probe list and lacked that method — causing 2 CI Pest
failures.

Extract the probe list into composerProbePaths() (adding the bundled
bin/composer/composer.phar path) and have resolveComposerBinary() iterate it,
matching the test. Pure refactor — runtime behaviour unchanged except the
extra bundled-phar probe.

InstallerControllerTest: 7/7 pass. Pint clean.
Copilot AI review requested due to automatic review settings June 26, 2026 15:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@navneetkumar-pim-webkul
navneetkumar-pim-webkul merged commit bd7b4cf into master Jun 26, 2026
28 of 31 checks passed
@navneetkumar-pim-webkul
navneetkumar-pim-webkul deleted the fix/installer-composer-probe branch June 26, 2026 15:12
kunal-kumar-dev pushed a commit to kunal-kumar-dev/unopim that referenced this pull request Jul 6, 2026
…trollerTest (unopim#526)

The 2.1 convergence merge (unopim#525) brought in 2.1's InstallerControllerTest
(which asserts a `composerProbePaths()` method and a bundled
`bin/composer/composer.phar` probe) but kept master's InstallerController,
which inlined the probe list and lacked that method — causing 2 CI Pest
failures.

Extract the probe list into composerProbePaths() (adding the bundled
bin/composer/composer.phar path) and have resolveComposerBinary() iterate it,
matching the test. Pure refactor — runtime behaviour unchanged except the
extra bundled-phar probe.

InstallerControllerTest: 7/7 pass. Pint clean.
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.

2 participants