Skip to content

Chore: Fix flaky test by unliking dbt msgpack for deterministic behaviour#5479

Merged
themisvaltinos merged 1 commit intomainfrom
themis/debugflaky
Oct 3, 2025
Merged

Chore: Fix flaky test by unliking dbt msgpack for deterministic behaviour#5479
themisvaltinos merged 1 commit intomainfrom
themis/debugflaky

Conversation

@themisvaltinos
Copy link
Contributor

This aims to fix the flaky test test_run_with_changes_and_full_refresh. This fails intermittently because when the test modifies model_b.sql, dbt's change detection mechanism doesn't always register the update due to the limited granularity of filesystem timestamps. So dbt may rely on a stale cached model definition, which doesn't include the updated schema with the new column c. The fix is to explicitly unlink the partial parse cache file after modifying the model, which forces dbt to perform a full parse and register the changes.

@themisvaltinos themisvaltinos merged commit 683133a into main Oct 3, 2025
36 checks passed
@themisvaltinos themisvaltinos deleted the themis/debugflaky branch October 3, 2025 14:47
@erindru
Copy link
Collaborator

erindru commented Oct 5, 2025

Oh man, nice work figuring this one out!

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.

3 participants