ci: split build and test into separate jobs, upgrade actions to Node 24 - #1128
Merged
Conversation
Previously each of the 21 test matrix cells built its own Docker image, totalling 21 redundant builds per CI run. New structure: - build_images: 4 jobs (one per PG version), builds the test image and uploads it as a zstd-compressed artifact (retention: 1 day). - run_tests: 21 jobs (same matrix as before), downloads the pre-built image artifact and runs tests against it via make run-test-prebuilt. This cuts Docker builds from 21 to 4 per CI run. Also upgrades all actions/checkout, actions/upload-artifact, and actions/download-artifact from Node 20 to Node 24 (v7/v7/v8) to silence the runner deprecation warning. New Makefile targets: save-test-image docker save | zstd → .tar.zst archive load-test-image zstd decompress | docker load run-test-prebuilt like run-test but without the build prerequisite
dimitri
force-pushed
the
ci-split-build-test
branch
from
July 6, 2026 16:37
b3481e0 to
04452a1
Compare
The tablespaces suite runs via $(MAKE) -C tests/tablespaces run-test on the host, not inside the pg_auto_failover_test container. run-test-prebuilt was always entering the container, causing a 33s failure for (14, tablespaces) in CI. Mirror ci-test's ifeq dispatch so tablespaces takes the host path.
This was referenced Jul 10, 2026
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.
Previously each of the 21 test matrix cells built its own Docker image from scratch — 21 redundant builds per CI run, each taking ~2 minutes of compile time before a single test ran.
Changes
Workflow restructure:
build_images— 4 jobs (one per PG version), builds the test image once and uploads it as a 1-day artifact compressed with zstdrun_tests— 21 jobs (same matrix as before), downloads the pre-built image and runs tests withmake run-test-prebuiltThis cuts Docker builds from 21 to 4 per run.
Actions upgrade:
actions/checkout@v4.2.2→v7.0.0(Node 24)actions/upload-artifact@v7.0.1(Node 24)actions/download-artifact@v8.0.1(Node 24)Fixes the runner deprecation warning: "Node.js 20 is deprecated … actions/checkout@v4.2.2"
New Makefile targets:
Tested locally
make save-test-image+make load-test-imageround-trip confirmed on PG17make run-test-prebuilt PGVERSION=17 TEST=monitor— 17/18 tests pass (1 pre-existing pyroute2 asyncio flakiness intest_replace_monitor, unrelated to this change)