Skip to content

chore: refresh insta snapshots to latest format#5943

Merged
max-sixty merged 1 commit into
mainfrom
chore/insta-snapshot-format
May 23, 2026
Merged

chore: refresh insta snapshots to latest format#5943
max-sixty merged 1 commit into
mainfrom
chore/insta-snapshot-format

Conversation

@prql-bot
Copy link
Copy Markdown
Collaborator

Summary

Refreshes all insta snapshots on main to the format that the currently-pinned cargo-insta (1.47.2) wants to emit, so that #5741 — which had a lot of incidental snapshot-formatting noise mixed in with its real date.floor changes — can rebase to a cleaner diff.

Three kinds of churn:

  • @r"…"@"…" on inline snapshots whose contents don't need raw-string semantics
  • r#"…"# blocks re-indented to the format cargo-insta now writes
  • Stale expression: fields refreshed on a handful of tests/integration/snapshots/integration__queries__results__*.snap files where the source .prql had been edited without an accompanying cargo insta accept (e.g. aggregation.prql no longer carries # mssql:skip); also strips an outdated snapshot_kind: text line on date_to_text.snap

No behavioural changes — every snapshot's actual content is unchanged. Produced by running INSTA_FORCE_UPDATE=1 cargo insta test --accept --dnd -p prqlc-parser -p prqlc -p prqlc-python --features=default,test-dbs --test-runner=nextest against main, then verifying with cargo insta test --check.

Requested by @max-sixty in #5741 (comment).

Test plan

  • cargo insta test --check -p prqlc-parser -p prqlc -p prqlc-python — 645 passed, 6 skipped
  • CI (tests workflow)

Regenerates inline snapshots with the current cargo-insta version (1.47.2). Drops the `r"` raw-string prefix on `@r"…"` blocks that don't actually need it, normalises indentation on the `r#"…"#` blocks that did, and refreshes a few stale `__results__*.snap` `expression:` fields where the source `.prql` had been edited without an accompanying `cargo insta accept`.

Produced by running `INSTA_FORCE_UPDATE=1 cargo insta test --accept --dnd -p prqlc-parser -p prqlc -p prqlc-python --features=default,test-dbs --test-runner=nextest` on `main`.

Intended to make #5741 a more manageable diff — once this lands, the inline-snapshot churn there should disappear.
@max-sixty max-sixty merged commit 973575f into main May 23, 2026
38 checks passed
@max-sixty max-sixty deleted the chore/insta-snapshot-format branch May 23, 2026 18:59
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