Skip to content

Bug: Warmup Assertions - #563

Merged
mtcarlone merged 3 commits into
mainfrom
bug/warmup-assertions
Aug 3, 2026
Merged

Bug: Warmup Assertions#563
mtcarlone merged 3 commits into
mainfrom
bug/warmup-assertions

Conversation

@mtcarlone

Copy link
Copy Markdown
Contributor

Overview

Assertion tests need to be warmed. This PR does so for CI

The per-commit test schema starts empty and upload_results only fires in
on-run-end, after tests. A single dbt build therefore asserts against
empty marts, making assert_consumption_daily_has_smb,
assert_run_health_daily_has_invocations and assert_model_performance_valid
unpassable on a fresh schema.

Run a test-excluded build first to populate the source tables, then the
real build. Adds ~43s per Snowflake leg.
The build command was commented out in 151d13c, a broad tox refactor that
reordered every env; no reason was recorded and the neighbouring 1.3-1.8
envs kept theirs. release.yml already schedules a snowflake/1_9_0 slot, so
that slot has been running clean+deps and reporting green while validating
nothing.

We advertise 1.9 support via require-dbt-version, so it should be tested.
Verified green with no other changes needed: PASS=129 ERROR=0.
The test's comment claimed lineage_edges must be non-empty, but the only
branch keyed off models_with_deps, which is itself empty when the mart is
empty -- so it passed vacuously on a fresh schema. Add an explicit
empty_mart branch.

Verified it now fails (Got 1 result) on a single build against a fresh
schema, and passes with the warm-up in place.
@mtcarlone mtcarlone added this to the 2.11.0 milestone Aug 3, 2026
@mtcarlone
mtcarlone merged commit 0d80569 into main Aug 3, 2026
3 checks passed
@mtcarlone
mtcarlone deleted the bug/warmup-assertions branch August 3, 2026 22:03
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