From 639d012942299a06c872e6d3b6c5566bc2944cd8 Mon Sep 17 00:00:00 2001 From: 2ynn Date: Wed, 21 Oct 2026 19:42:10 -0400 Subject: [PATCH 1/2] chore(php): set up latest PHP 8.3 patch in test-generator [skip changelog] The test-generator job runs PHP snapshot tests that call `composer update`, but it had no setup-php step and used the runner image's preinstalled PHP. roave/security-advisories (dev-latest) conflicts with PHP 8.3 releases older than 8.3.36, so Composer refused to resolve dependencies on the image's 8.3.6. Add the same pinned setup-php step used by test-php.yml, with `update: true` so the latest 8.3 patch is installed on every run. --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b52fe2884..4ec1ad1d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,6 +58,13 @@ jobs: with: ruby-version: "3.2" bundler-cache: true + - name: Setup PHP + uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2 + with: + php-version: "8.3" + extensions: mbstring, xml, curl + env: + update: true - name: Configure Composer run: | composer config --global preferred-install auto From fe5880b53d6279a342f0b1cbf309ec3d71da9866 Mon Sep 17 00:00:00 2001 From: 2ynn Date: Wed, 21 Oct 2026 21:47:23 -0400 Subject: [PATCH 2/2] chore(php): keep the Composer process timeout under setup-php [skip changelog] setup-php exports COMPOSER_PROCESS_TIMEOUT=0 to later steps, and Composer reads that variable before its config, so `process-timeout 300` set by the "Configure Composer" steps had no effect and stalled commands ran unbounded. Pass COMPOSER_PROCESS_TIMEOUT: 300 to setup-php so it exports that value instead, and drop the overridden `composer config process-timeout` calls. --- .github/workflows/test-php.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index cd6ba65c2..88a309665 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -35,12 +35,12 @@ jobs: extensions: mbstring, xml, curl env: update: true + COMPOSER_PROCESS_TIMEOUT: 300 - name: Configure Composer run: | # Prefer source clones because codeload.github.com can reject dist zips. composer config --global preferred-install source - composer config --global process-timeout 300 - name: Get Composer cache dir id: composer-cache diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ec1ad1d5..507b517eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -65,10 +65,10 @@ jobs: extensions: mbstring, xml, curl env: update: true + COMPOSER_PROCESS_TIMEOUT: 300 - name: Configure Composer run: | composer config --global preferred-install auto - composer config --global process-timeout 300 - name: Get Composer cache dir id: composer-cache run: echo "dir=$(composer config --global cache-dir)" >> "$GITHUB_OUTPUT"