Skip to content

Fix sample cache churn and release v0.4.1 - #5

Merged
david-whimsical merged 2 commits into
mainfrom
david/whim-8082-fix-wlens-caching-problem
Sep 2, 2026
Merged

david-whimsical merged 2 commits into
mainfrom
david/whim-8082-fix-wlens-caching-problem

Conversation

@david-whimsical

Copy link
Copy Markdown
Collaborator

Summary

  • fingerprint sample caches by their order-independent column-name set
  • ignore data-type metadata drift while retaining PII and obfuscation safety invalidation
  • deduplicate model/source entries for the same schema.table before rendering so they cannot overwrite one cache file twice per run
  • keep v1 cache files backward compatible
  • bump the package to v0.4.1

Real-world failure fixed

public.clo_workspace_join exists in the dbt manifest as both a model and a source with slightly different documented columns (created vs created_at). They previously invalidated the same cache file in sequence on every wlens generate, leaving a timestamp-only diff after the source overwrote the model cache.

Validation

  • uv run pytest -q — 184 passed
  • uv build — wheel and sdist built successfully

@david-whimsical
david-whimsical merged commit 5a74b35 into main Sep 2, 2026
3 checks passed
@david-whimsical
david-whimsical deleted the david/whim-8082-fix-wlens-caching-problem branch September 2, 2026 19:33
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