Repository navigation
Conversation
Dev plans listed models that are only backfilled for a preview under "Models needing backfill:" with a "(preview)" suffix, which reads as if they need a real backfill. List them in a separate "Models needing preview (data will NOT be reused in production):" section instead, using the explainer's wording, in both the terminal and Markdown consoles. Each section is printed only if it has entries. Previews are still identified by the deployability index, so which models count as previews doesn't change. Closes SQLMesh#5116 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Vamsi-klu <nrvamsi13@gmail.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Description
Closes #5116.
In dev plans, models that are backfilled only for a preview were listed under "Models needing backfill:" with a
(preview)suffix. That reads as if they need a real backfill, even when nothing will be reused in prod. Previews now get their own section, using the explainer's existing wording:Before, the same plan printed:
plan.deployability_index.is_deployable(snapshot). That's the same check that drove the(preview)suffix and the explainer's "preview" note, so which models count as previews doesn't change.MarkdownConsolegets the same split, so the two consoles stay consistent. The CI bot only summarizes prod plans, where every snapshot is deployable, so its PR comments don't change.Test Plan
test_plan_summary_separates_preview_backfills, parametrized overTerminalConsoleandMarkdownConsole. It uses a sushi dev plan with a forward-only change (preview) and a new model (backfill). It fails before the change and passes after.test_plan_summary_omits_empty_preview_sectionguards the backfill-only case.tests/core/test_console.py,tests/cli,tests/integrations/github/cicd,tests/core/test_plan.py,tests/core/test_context.pyandtests/core/integration: 626 passed and 2 failed.test_cli.py::test_dlt_pipelinefails the same way on cleanmain, andtest_cli.py::test_signalspassed when re-run alone. A separate run oftests/integrations/githubandtests/cli/test_cli.pygave 184 passed and 1 failed, the sametest_dlt_pipelinefailure, which I reproduced on cleanmain.ruff format --checkandruff checkare clean.mypyon the changed files reports no errors in them. Its only error is a[has-type]error insqlmesh/core/config/gateway.py:41, which this PR doesn't touch, and the same mypy command reports it on cleanmain.Checklist
make styleand fixed any issues (ruff, ruff-format and mypy on the changed files)make fast-test). I ran the affected suites listed above, not the fullmake fast-test.git commit -s) per the DCO🤖 Generated with Claude Code
Summary by CodeRabbit