From 49e27f4144ff021de13bd6c5a31d124518e6d208 Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Sun, 12 Jul 2026 21:10:10 -0400 Subject: [PATCH 1/5] Bug 2054399: pull dependencies from extensions in TestSuite Docker image --- docker/images/Dockerfile.perl-testsuite | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/images/Dockerfile.perl-testsuite b/docker/images/Dockerfile.perl-testsuite index 2df452541..b485d026a 100644 --- a/docker/images/Dockerfile.perl-testsuite +++ b/docker/images/Dockerfile.perl-testsuite @@ -30,7 +30,7 @@ RUN apt-get update && apt-get -y dist-upgrade && \ rm -rf /var/lib/apt/lists/* # Copy just enough to get the list of dependencies -COPY Bugzilla.pm Makefile.PL gen-cpanfile.pl /app/ +COPY --parents Bugzilla.pm Makefile.PL gen-cpanfile.pl extensions/*/Config.pm extensions/*/disabled /app/ # Run Makefile.PL and install dependencies RUN perl Makefile.PL && \ From f8748d3c4a8c7e1b6a75ceefc2a3efdff0b37e43 Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Sun, 12 Jul 2026 21:23:30 -0400 Subject: [PATCH 2/5] Apparently we need Ubuntu 24 for COPY --parents and latest might still be 22 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f632a186..e025d3da8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,7 +86,7 @@ jobs: test_release: name: Perl Test Suite - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout the repository uses: actions/checkout@v4 From 885561f610105bc5812ecc4fc99176f9a474da77 Mon Sep 17 00:00:00 2001 From: Dave Miller Date: Sun, 12 Jul 2026 21:27:12 -0400 Subject: [PATCH 3/5] OK, let's try Docker BuildX --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e025d3da8..71197a7d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -86,12 +86,14 @@ jobs: test_release: name: Perl Test Suite - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest steps: - name: Checkout the repository uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 - name: Build Docker image - run: docker build -t bugzilla-release-test -f docker/images/Dockerfile.perl-testsuite . + run: docker buildx build --load -t bugzilla-release-test -f docker/images/Dockerfile.perl-testsuite . - name: Run tests run: docker run --rm bugzilla-release-test From 3adce157682a1b2727e69454262decf0967f6eda Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 3 Aug 2026 17:10:18 +0100 Subject: [PATCH 4/5] Bug 2054399: Pin Dockerfile syntax for COPY --parents support COPY --parents requires the BuildKit dockerfile:1 frontend; Docker's own docs always pair it with a # syntax= directive. Without pinning it, whether the build supports --parents depends on whatever frontend version the local Docker/buildx install happens to default to, which is likely why getting CI green here took the two follow-up commits it did. --- docker/images/Dockerfile.perl-testsuite | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/images/Dockerfile.perl-testsuite b/docker/images/Dockerfile.perl-testsuite index b485d026a..a5ff0ede0 100644 --- a/docker/images/Dockerfile.perl-testsuite +++ b/docker/images/Dockerfile.perl-testsuite @@ -1,3 +1,5 @@ +# syntax=docker/dockerfile:1 + # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. From 1ffd721d295db32e43865448d12be75951cfed9d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 3 Aug 2026 17:10:18 +0100 Subject: [PATCH 5/5] Bug 2054399: Bump docker/setup-buildx-action to v4 v2 is two majors behind current; bump to the latest since this action was newly introduced in this branch. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71197a7d4..bbee5d906 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -91,7 +91,7 @@ jobs: - name: Checkout the repository uses: actions/checkout@v4 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v4 - name: Build Docker image run: docker buildx build --load -t bugzilla-release-test -f docker/images/Dockerfile.perl-testsuite . - name: Run tests