Skip to content

fix(FFESUPPORT-892): bump php-sdk-relay to eppo/php-sdk ^4.0 - #161

Merged
aarsilv merged 1 commit into
mainfrom
aarsilv/ffesupport-892/php-relay-v4
Jul 20, 2026
Merged

fix(FFESUPPORT-892): bump php-sdk-relay to eppo/php-sdk ^4.0#161
aarsilv merged 1 commit into
mainfrom
aarsilv/ffesupport-892/php-relay-v4

Conversation

@aarsilv

@aarsilv aarsilv commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

🤖 Generated from Claude

Fixes the php-sdk-relay test harness so it works with php-sdk v4.x. Jira: https://datadoghq.atlassian.net/browse/FFESUPPORT-892

Problem

php-sdk's "Package Integration Testing" CI (via this repo's test-server-package action + php-sdk-relay) fails deterministically with "SDK Relay server failed to start" (green on main until 2026-05-26). The relay's composer.json pinned eppo/php-sdk: ^3.2 (locking v3.5.1), but php-sdk is now v4.x. The action composer installs the pinned 3.x deps, then overlays the tested branch's v4.x source onto that 3.x vendor tree → the relay runs 4.x code against 3.x-resolved dependencies → crash → port 4000 never comes up. (Surfaced while remediating php-sdk vulns in php-sdk#62, but unrelated to it — that PR is composer.lock-only.)

Fix

Bump the relay's eppo/php-sdk constraint ^3.2 → ^4.0 and regenerate composer.lock (eppo/php-sdk v3.5.1 → v4.2.1). No relay src/ changes needed.

Verification (local, PHP 8.5)

  • composer require eppo/php-sdk:^4.0 resolves cleanly; composer audit reports no advisories.
  • All src/*.php lint clean (php -l); the client / Config construct against v4.
  • End-to-end boot (relay + testing-api) is exercised by CI once this lands on main; re-running php-sdk#62's integration job will then go green.

Scope

package-testing/php-sdk-relay/composer.json + composer.lock only.

The relay pinned eppo/php-sdk ^3.2 (locked v3.5.1) while php-sdk is now v4.x
(v4.2.1). The test-server-package action installs the pinned deps then overlays
the tested branch's v4.x source, so the relay ran 4.x code against 3.x-resolved
deps and crashed ('SDK Relay server failed to start') — failing php-sdk's
package-integration CI (green on main until php-sdk went 4.x). Bump to ^4.0
(locks v4.2.1). Relay src is BC: all src/*.php lint clean and the client/Config
construct against v4. Unblocks php-sdk PR #62's integration job.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

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.

Pull request overview

Updates the package-testing/php-sdk-relay harness dependencies so it can run against eppo/php-sdk v4.x, resolving the integration test failure caused by overlaying v4 source onto a v3-resolved vendor tree.

Changes:

  • Bump eppo/php-sdk requirement from ^3.2 to ^4.0 in the relay’s composer.json.
  • Regenerate composer.lock to lock eppo/php-sdk at v4.2.1 (and reflect its updated transitive requirements).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
package-testing/php-sdk-relay/composer.json Updates the relay’s SDK dependency constraint to eppo/php-sdk:^4.0.
package-testing/php-sdk-relay/composer.lock Locks updated dependency graph for php-sdk v4 (notably eppo/php-sdk v4.2.1).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@typotter typotter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Fixes the php-sdk-relay test harness so it works with php-sdk v4.x.
🙌

@aarsilv
aarsilv merged commit 690e4b1 into main Jul 20, 2026
2 checks passed
@aarsilv
aarsilv deleted the aarsilv/ffesupport-892/php-relay-v4 branch July 20, 2026 18:58
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.

3 participants