From 3fd1d0fe96a99ad84177cf3f5e598168373b38f9 Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Sun, 15 Nov 2026 18:05:12 +0530 Subject: [PATCH 1/2] ci(behat): ignore the symfony/config and symfony/serializer advisories Packagist now flags symfony/config 4.4 (PKSA-9myg-zzdn-22rg) and symfony/serializer 3.4.20 (PKSA-nyd8-k74r-fsf2, PKSA-grh8-hvfp-h9pf), so composer update of the cloned core fails before Behat starts. Ignore exactly these versions in CI, like the existing entries, until the Symfony and Behat upgrade. The committed composer.json and lock are unchanged. --- .github/workflows/behat.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/behat.yml b/.github/workflows/behat.yml index 2e3fe1b..ae0758b 100644 --- a/.github/workflows/behat.yml +++ b/.github/workflows/behat.yml @@ -31,11 +31,13 @@ env: COMPOSE_INTERACTIVE_NO_CLI: 1 RCLONE_CONFIG: /etc/rclone/rclone.conf EE_BEHAT_DESTRUCTIVE: 1 - # CI only, for `composer update` of the cloned core (develop and PRs): Composer blocks these versions for security advisories. Remove after the symfony/yaml and guzzlehttp/psr7 upgrade. + # CI only, for `composer update` of the cloned core (develop and PRs): Composer blocks these versions for security advisories. Remove after the Symfony, Behat and guzzlehttp/psr7 upgrade. ADVISORY_IGNORE: >- {"symfony/yaml": {"constraint": "4.4.*", "reason": "pinned by core and behat/behat 3.8.1", "on-audit": false}, "guzzlehttp/psr7": {"constraint": "1.9.*", "reason": "required by acmephp/core 1.3.0", "on-audit": false}, - "guzzlehttp/guzzle": {"constraint": "7.8.*", "reason": "last guzzle 7 line that accepts guzzlehttp/psr7 1.x", "on-audit": false}} + "guzzlehttp/guzzle": {"constraint": "7.8.*", "reason": "last guzzle 7 line that accepts guzzlehttp/psr7 1.x", "on-audit": false}, + "symfony/config": {"constraint": "4.4.*", "reason": "pinned by core and behat/behat 3.8.1", "on-audit": false}, + "symfony/serializer": {"constraint": "3.4.20", "reason": "pinned by site-command", "on-audit": false}} jobs: behat: From 4496db6d6b3e15011684eeb03b0b413f19c13623 Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Sun, 15 Nov 2026 18:16:18 +0530 Subject: [PATCH 2/2] ci(behat): run the Behat jobs on ubuntu-24.04 ubuntu-latest now resolves to ubuntu-26.04, whose sudo-rs ignores `sudo -E`, so the variables the suite needs (EE_BEHAT_* guards, RCLONE_CONFIG, the Pebble settings) no longer reach Behat under sudo and the guarded, backup and Let's Encrypt scenarios fail. Pin the image the suites last passed on until the workflow passes those variables explicitly. --- .github/workflows/behat.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/behat.yml b/.github/workflows/behat.yml index ae0758b..459a8c3 100644 --- a/.github/workflows/behat.yml +++ b/.github/workflows/behat.yml @@ -42,7 +42,8 @@ env: jobs: behat: name: ${{ matrix.lane == 'main' && format('Behat Tests - PHP {0}', matrix.php) || format('Behat {0} (PHP {1})', matrix.lane, matrix.php) }} - runs-on: ubuntu-latest + # ubuntu-latest is now 26.04, whose sudo-rs ignores `sudo -E`, so the job's env (Behat guards, rclone and Pebble settings) never reaches commands run under sudo. + runs-on: ubuntu-24.04 timeout-minutes: 150 strategy: fail-fast: false