Skip to content

Conversation

@LexxaRRioo
Copy link
Contributor

@LexxaRRioo LexxaRRioo commented Dec 5, 2025

Adds bool "run_tests_after_all_models" param to load_dbt_tasks().
False by default (current behavior).

Issue:

  • models are running with "dbt build"
  • if relationship checks are executed before the data is loaded to the foreign table, they fail

Solution:

  • first load all models with "dbt run", only then check with "dbt test"

Key changes:
   - New parameter: run_tests_after_all_models (default: False)
   - When True, models use 'dbt run' instead of 'dbt build' command
   - Generic tests run in a separate final task after all models complete
   - Generic and singular tests run independently in parallel (not chained)
   - Solves issue where relationship tests fail when dependent models
     haven't been built yet
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