Skip to content

chore: update insta snapshot format#5750

Merged
max-sixty merged 4 commits intomainfrom
insta-update
Mar 27, 2026
Merged

chore: update insta snapshot format#5750
max-sixty merged 4 commits intomainfrom
insta-update

Conversation

@snth
Copy link
Copy Markdown
Member

@snth snth commented Mar 27, 2026

Force-update all integration test snapshots to current insta format. The newer insta (1.46.3) enforces a stricter snapshot format, causing CI to fail with 'existing value is in a legacy format'.

@snth snth marked this pull request as draft March 27, 2026 15:20
snth and others added 2 commits March 27, 2026 17:37
Update inline snapshot string delimiters (@r" -> @", r### -> r#)
and remove deprecated snapshot_kind: text metadata from snap files.
All changes are format-only with no semantic differences.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Non-format changes from insta snapshot regeneration:

- compile/fmt append_select_nulls.snap: expression field corrected
  to match current .prql file (stale '# duckdb:skip' / '# postgres:skip'
  comments were removed from the file in a prior commit but the snap
  metadata was never regenerated)

- compileall snap files: leading blank lines added to snapshot content.
  Each blank line represents a dialect whose output matches the generic
  dialect (empty diff). The previous insta version trimmed these; the
  new version preserves them. The actual diff content is unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@snth
Copy link
Copy Markdown
Member Author

snth commented Mar 27, 2026

This final commit c971aff is identical to 5f1de96 , I just split it into two commits to separate semantic changes from regenerating the snapshots to pure formatting changes. All tests passed for 5f1de96 but now some are failing for c971aff. What gives?

@max-sixty
Copy link
Copy Markdown
Member

great! will look at the snapshot issue

@prql-bot are you online?!

@prql-bot
Copy link
Copy Markdown
Collaborator

I'm online! 👋

Regarding @snth's question about the CI failure on c971aff — the failure is not related to the snapshot changes. It's a Docker Hub authentication error in the test-dbs-external job:

Head "https://registry-1.docker.io/v2/library/postgres/manifests/alpine": unauthorized: incorrect username or password

This is an infrastructure/credentials issue pulling the postgres container image. All the actual Rust tests, lints, builds, and code coverage checks passed successfully. A re-run of that job should fix it (assuming Docker Hub credentials are refreshed or the rate limit clears).

snth and others added 2 commits March 27, 2026 19:01
Authenticate with Docker Hub before pulling images to avoid rate limits.

- test-rust.yaml: login before docker compose up (postgres, mysql, clickhouse)
- build-devcontainer.yaml: login before image builds as defensive measure

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The Docker Hub login step in test-rust and build-devcontainer workflows
needs access to DOCKERHUB_USERNAME and DOCKERHUB_TOKEN secrets. These
are only available via 'secrets: inherit' on workflow_call invocations.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@snth snth marked this pull request as ready for review March 27, 2026 17:43
@snth snth requested a review from max-sixty March 27, 2026 17:43
@snth
Copy link
Copy Markdown
Member Author

snth commented Mar 27, 2026

@max-sixty I set up the Docker Hub account and added the details to the repo secrets. Should be good to merge now.

@max-sixty
Copy link
Copy Markdown
Member

@prql-bot can you do a follow-up to change the code that produces those snapshots to avoid producing the blank lines at the top? fix at the source please

@max-sixty
Copy link
Copy Markdown
Member

thanks @snth !

@max-sixty max-sixty merged commit a799b27 into main Mar 27, 2026
82 checks passed
@max-sixty max-sixty deleted the insta-update branch March 27, 2026 19:44
@max-sixty
Copy link
Copy Markdown
Member

@prql-bot can you do a follow-up to change the code that produces those snapshots to avoid producing the blank lines at the top? fix at the source please

@prql-bot ?

prql-bot added a commit that referenced this pull request Mar 28, 2026
Skip empty diffs (where dialect output matches generic) instead of
including them, which produced leading/intermediate blank lines in
the snapshot files.

Closes follow-up from #5750.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@prql-bot
Copy link
Copy Markdown
Collaborator

Done — opened #5752 to fix this at the source. The compileall test was collecting empty diffs (where a dialect's output matches generic) and joining them with newlines, producing the leading blank lines. The fix skips empty diffs entirely.

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.

3 participants