Repository navigation
ci: backport test service image pinning to ghcr on 3.x - #17162
Merged
Merged
Conversation
The `start-services` action intermittently fails when pulling test service images, with Docker Hub registry timeouts (`Get "https://registry-1.docker.io/v2/": context deadline exceeded`). In failing runs, only the Docker Hub images error while images already served from GHCR and Microsoft Container Registry pull normally on GitHub-hosted runners. This moves the remaining Docker Hub test-service images to the `payloadcms` GHCR namespace and repoints `test/docker-compose.yml` at them, so the test stack no longer depends on Docker Hub. - **Mirror the six Docker Hub images to GHCR** - Copied each image to `ghcr.io/payloadcms/*` as a public, multi-arch package, pinned to an explicit version. These were pushed once with `docker buildx imagetools create` (registry-to-registry, preserving all platforms); there is no mirror automation. - **Repoint `test/docker-compose.yml`** - The six image references now point at the GHCR copies. Every image in the file is now served from GHCR or MCR. | Service | Before | After | |---|---|---| | mongodb-community-server | `mongodb/mongodb-community-server:8.2-ubi9` | `ghcr.io/payloadcms/mongodb-community-server:8.2.9-ubi9` | | mongodb-community-search | `mongodb/mongodb-community-search:latest` | `ghcr.io/payloadcms/mongodb-community-search:1.67.1` | | mongodb-atlas-local | `mongodb/mongodb-atlas-local:latest` | `ghcr.io/payloadcms/mongodb-atlas-local:8.2.4` | | localstack | `localstack/localstack:4.14.0` | `ghcr.io/payloadcms/localstack:4.14.0` | | fake-gcs-server | `fsouza/fake-gcs-server` | `ghcr.io/payloadcms/fake-gcs-server:1.54.0` | | redis | `redis:7-alpine` | `ghcr.io/payloadcms/redis:7.4.9-alpine` | - **Why GHCR.** GitHub-hosted runners pull GHCR and MCR reliably, while anonymous Docker Hub pulls time out under load and rate limits. The repo already serves `postgis-vector` and `vercel-blob-emulator` from `ghcr.io/payloadcms/*`, so this extends an existing pattern rather than introducing new infrastructure. - **Public packages.** The GHCR packages are public so CI on external contributor forks (where `GITHUB_TOKEN` is read-only and cannot read private org packages) can pull them anonymously. - **Pinned versions.** Floating tags (`latest`, untagged, `7-alpine`) are replaced with explicit versions for reproducible CI. A future version bump is a deliberate two-step change: push the new pinned tag to GHCR, then update the tag here. New tags inherit the existing public visibility. - Example failing run: https://github.com/payloadcms/payload/actions/runs/26840052429/job/79145763022 (cherry picked from commit 0318f87)
…6866) # Overview Removes two sources of intermittent `Start services` CI failures, both caused by external registries blocking or rate-limiting unauthenticated requests. ## Key Changes - **Pin the Supabase CLI version (`start-services` action)** - `supabase/setup-cli` resolved `version: latest` through an unauthenticated GitHub releases API call (60 requests/hour per IP), which exhausted on shared runners and failed with `Failed to resolve latest Supabase CLI release: rate limit exceeded`. Pinning to `2.104.0` makes `setup-cli` skip that lookup entirely. - **Pull the azurite image from GHCR instead of MCR (`test/docker-compose.yml`)** - `mcr.microsoft.com/azure-storage/azurite:latest` started returning `The request is blocked` from Microsoft Container Registry, failing the storage profile pull through all three retries. The image is now `ghcr.io/payloadcms/azurite:3.35.0`, mirrored to the same `payloadcms` GHCR namespace as the other six test-service images. ## Design Decisions - **Extends the existing GHCR mirroring pattern.** PR #16842 moved every Docker Hub test-service image to `ghcr.io/payloadcms/*`, leaving azurite on MCR as the lone external dependency. With MCR now blocking pulls, azurite joins the same namespace, so the storage stack pulls entirely from GHCR. - **Mirror is a manual prerequisite.** As with the other GHCR images, there is no mirror automation. The azurite copy was pushed registry-to-registry with `docker buildx imagetools create` before this change, preserving all platforms, as a public package so contributor-fork CI can pull it anonymously. - **Pinned versions over floating tags.** Both `2.104.0` and `3.35.0` replace `latest`, matching the repo's convention of explicit versions for reproducible CI. Bumps are deliberate. (cherry picked from commit b3e877c)
Contributor
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖
Largest pathsThese visualization shows top 20 largest paths in the bundle.Meta file: packages/next/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_shared.json, Out file: esbuild/exports/shared.js
Meta file: packages/richtext-lexical/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_shared.json, Out file: esbuild/exports/shared_optimized/index.js
DetailsNext to the size is how much the size has increased or decreased compared with the base branch of this PR.
|
denolfe
approved these changes
Jul 1, 2026
Contributor
|
🚀 This is included in version v3.85.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mongot-payload-testis going unhealthy duringstart-serviceson3.xbefore E2E tests run, which blocks setup; this backport removes the floating/externally rate-limited image pulls in that path by pinning the affected test-service images toghcr.io/payloadcms/*and pinning Supabase CLI.Backported from
main:0318f87928(ci: pull test service images from GHCR instead of Docker Hub)b3e877c3da(ci: avoid registry rate limits for supabase cli and azurite image)Manual port note:
0318f87928conflicted because3.xdoes not include theredisservice block present onmain; only the overlapping image-pin changes for existing3.xservices were applied.Related context: #17152 (blocked by the same infra-wide CI failure pattern).