From 90d983a7eb4100c0d266c6e1cfab83f9779ae843 Mon Sep 17 00:00:00 2001 From: Ibrahim Halatci Date: Tue, 1 Sep 2026 14:46:31 +0000 Subject: [PATCH 1/2] Filter nightly postgres versions from the nightly list get_postgres_versions() built the excluded nightly list by iterating release_versions instead of nightly_versions, so any entry under `exclude.nightly` in pg_exclude.yml silently replaced the nightly postgres versions with the release ones. The bug is currently dormant because `exclude.nightly` is empty, but it makes the nightly exclusion feature unusable: adding a single nightly exclusion switches nightly builds over to the release matrix. With citus main at 15.0devel this would have produced PG15/PG16 nightlies, neither of which main supports any more. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: bb18c8e4-f4c5-43b7-92cf-30d6b03deb87 --- packaging_automation/citus_package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging_automation/citus_package.py b/packaging_automation/citus_package.py index 5e5751fc..d19d4407 100644 --- a/packaging_automation/citus_package.py +++ b/packaging_automation/citus_package.py @@ -329,7 +329,7 @@ def get_postgres_versions( if exclude_dict_nightly and platform_key_nightly in exclude_dict_nightly: nightly_versions = [ v - for v in release_versions + for v in nightly_versions if v not in exclude_dict_nightly[platform_key_nightly] ] From d856bec04b029cabf6892da8415c6d5dbb7f7df3 Mon Sep 17 00:00:00 2001 From: Ibrahim Halatci Date: Tue, 1 Sep 2026 19:24:33 +0300 Subject: [PATCH 2/2] Update nightly exclusion test expectation The Oracle Linux fixture excludes PostgreSQL 15 from the nightly matrix, so the corrected filter now leaves only PostgreSQL 14. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- packaging_automation/tests/test_citus_package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging_automation/tests/test_citus_package.py b/packaging_automation/tests/test_citus_package.py index f5e0f196..fd776814 100644 --- a/packaging_automation/tests/test_citus_package.py +++ b/packaging_automation/tests/test_citus_package.py @@ -223,7 +223,7 @@ def test_get_postgres_versions_ol_7(): ) # pg 15 is excluded for all releases with pg_exclude file assert len(release_versions) == 2 and release_versions == ["13", "14"] - assert len(nightly_versions) == 2 and nightly_versions == ["13", "14"] + assert len(nightly_versions) == 1 and nightly_versions == ["14"] def test_get_postgres_versions_el_7():