Skip to content

feat(dbt): fast pre-compile validation for dbt projects in dirty mode (#122) - #133

Draft
tjirab wants to merge 2 commits into
mainfrom
feat/fast-precompile-dbt-validation
Draft

feat(dbt): fast pre-compile validation for dbt projects in dirty mode (#122)#133
tjirab wants to merge 2 commits into
mainfrom
feat/fast-precompile-dbt-validation

Conversation

@tjirab

@tjirab tjirab commented Aug 27, 2026

Copy link
Copy Markdown
Owner

🚀 What changed?

  • Added --dirty (-d) command line option to the lint command.
  • Implemented load_dbt_models_fallback in manifest.py to parse DBT project directory models and seeds on the fly if manifest.json is missing.
  • Added git untracked/dirty files detection in dirty mode using git status --porcelain -u.
  • Integrated overlay of dirty .sql, .yml, and .csv files over the compiled manifest.
  • Achieved 100% diff coverage with comprehensive mocks in unit tests.

🤔 Why is this change needed?

To enable fast pre-compile linting/validation of dbt models that are dirty or newly added, bypassing the slow dbt compile step when not needed.

🔗 Related Issues (Optional)

Closes #122

✅ Next Steps / Checklist (Optional)

  • All unit tests pass.
  • 100% diff coverage achieved.

@tjirab
tjirab marked this pull request as draft August 28, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Developer Loop: Fast Pre-Compile Validation for dbt Projects

1 participant