Bird
0
0

Given this GitHub Actions snippet in a dbt PR workflow:

medium📝 Predict Output Q4 of 15
dbt - Governance and Collaboration
Given this GitHub Actions snippet in a dbt PR workflow:
steps:
  - run: dbt deps
  - run: dbt seed --select my_seed
  - run: dbt run --models state:modified
  - run: dbt test --models state:modified

What will happen if a test fails?
AThe workflow ignores the failure and runs dbt docs
BThe workflow stops and the PR check fails
CThe workflow continues and merges the PR
DThe workflow retries the test automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand GitHub Actions default behavior on failure

    By default, if a command fails, the workflow stops and marks failure.
  2. Step 2: Apply this to dbt test failure

    If dbt test fails, the step fails, stopping the workflow and failing the PR check.
  3. Final Answer:

    The workflow stops and the PR check fails -> Option B
  4. Quick Check:

    Test failure = workflow stops [OK]
Quick Trick: Failed tests stop PR workflows [OK]
Common Mistakes:
MISTAKES
  • Assuming workflow continues after failure
  • Thinking tests auto-retry
  • Believing failure is ignored

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More dbt Quizzes