Skip to content

fix: minor improvements to splinter CI and the lint manifest build - #187

Merged
utkarash2991 merged 4 commits into
mainfrom
ci/run-on-main-and-wire-pg-version
Sep 8, 2026
Merged

fix: minor improvements to splinter CI and the lint manifest build#187
utkarash2991 merged 4 commits into
mainfrom
ci/run-on-main-and-wire-pg-version

Conversation

@utkarash2991

@utkarash2991 utkarash2991 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Small build/CI fixes.

CI: the push trigger was master, but the default branch is main, so tests only ran on PRs. And the matrix version was exported as PG_VERSION while compose/Dockerfile read SUPABASE_VERSION, so every run built the hardcoded 15.1.1.13 image regardless of the matrix. Align on SUPABASE_VERSION, refresh the pin, and test 15 and 17.

Manifest: compile_json.py's categories regex was lazy under DOTALL, so in lints with an earlier array[...] it captured across it and returned garbage. 0023/0024/0025 lost their SECURITY category and dropped out of category-filtered Advisor runs. Match a single array[...] with [^\]]*.

0022 test: it pinned amcheck's available version (1.3), which is 1.4 on 17 and was the only thing failing there. The assertion now drops the version-dependent columns, so it holds on both.

Tracking: PSQL-1654

The push trigger targeted `master`, but the default branch is `main`, so
tests only ran on pull requests and never after a merge.

The matrix version was exported as PG_VERSION, while docker-compose reads
SUPABASE_VERSION and the Dockerfile declares ARG SUPABASE_VERSION, so every
run built against the hardcoded 15.1.1.13 image no matter what the matrix
said. Use SUPABASE_VERSION throughout, refresh the pinned image, and add 17
to the matrix.
The categories regex used a lazy `.*?` under DOTALL, so in a lint with an
earlier `array[...]` the capture ran across it to the trailing
`as categories` and returned the whole span as garbage categories. This hit
0023/0024/0025, whose SECURITY category came out as junk and then dropped
them from category-filtered Advisor runs. Match a single `array[...]` with
`[^\]]*` so the capture can't leave its own array.
@utkarash2991 utkarash2991 changed the title ci: run tests on main and pass the Postgres version through fix: minor improvements to splinter CI and the lint manifest build Sep 8, 2026
@utkarash2991
utkarash2991 requested review from imor and soedirgo and removed request for imor September 8, 2026 16:41
17 exposes a pre-existing version-pinned assertion in the 0022 test
(amcheck default is 1.4 on 17, the expected output pins 1.3). Track adding
17 with that test fix separately.
The 0022 test pinned amcheck's available version (1.3), which differs on 17
(1.4) and was the only failure when 17 was in the matrix. Drop the version-
dependent columns from the assertion and add 17 back.
@utkarash2991
utkarash2991 requested a review from samrose September 8, 2026 17:03
@utkarash2991
utkarash2991 merged commit e74a9e3 into main Sep 8, 2026
4 checks passed
@utkarash2991
utkarash2991 deleted the ci/run-on-main-and-wire-pg-version branch September 9, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants