Skip to content

docs: recommend pinning both the expand and build snapshots - #28

Merged
mpyw merged 1 commit into
mainfrom
docs/snapshot-both-tip
Aug 18, 2026
Merged

docs: recommend pinning both the expand and build snapshots#28
mpyw merged 1 commit into
mainfrom
docs/snapshot-both-tip

Conversation

@mpyw

@mpyw mpyw commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Adds a TIP to the Expanding includes for inspection section: pin two snapshots per query — the Expand/ExpandFile output (the @include-resolved, still-two-way template, independent of dialect and parameters) and the Build output for representative parameters (the parameterized SQL + Args, or the values-embedded SQLWithArgs). The first isolates fragment-composition drift; the second captures how a given set of inputs renders. The testdata/example sample project already follows this pattern (<name>.expanded.sql + <name>.<case>.embedded.sql).

🤖 Generated with Claude Code

@codecov

codecov Bot commented Aug 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.52%. Comparing base (3df3f5e) to head (12694cc).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #28   +/-   ##
=======================================
  Coverage   96.52%   96.52%           
=======================================
  Files          11       11           
  Lines         951      951           
=======================================
  Hits          918      918           
  Misses         21       21           
  Partials       12       12           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Add a TIP to the "Expanding includes for inspection" section: pin two snapshots
per query — the Expand/ExpandFile output (@include-resolved, dialect- and
parameter-independent) and the Build output for representative parameters (SQL +
Args, or the values-embedded SQLWithArgs). The first isolates fragment-composition
drift; the second captures how inputs render. The testdata/example project
follows this with <name>.expanded.sql and <name>.<case>.embedded.sql.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YAydPGeSHjZvJv22oz4P6d
@mpyw
mpyw force-pushed the docs/snapshot-both-tip branch from 1369d39 to 12694cc Compare August 18, 2026 21:48
@mpyw
mpyw merged commit bc443d9 into main Aug 18, 2026
4 checks passed
@mpyw
mpyw deleted the docs/snapshot-both-tip branch August 19, 2026 06:49
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.

1 participant