You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(dbt): honour on_low_score="fail" in FreshDataDbtTransform; unique audit files for same-alias models (#391)
on_low_score="fail" was ignored by FreshDataDbtTransform (#343):
- run() only raised TrustGateError when fail_on_low_score=True, so with
on_low_score="fail" a failing gate returned should_fail=True and the
pipeline carried on. run() now raises when result.should_fail or when
fail_on_low_score is set and the gate did not pass. The audit file is
still written before raising.
- run() takes a keyword-only raise_on_fail=True. gate_manifest calls
run(raise_on_fail=False), so a failing model under on_low_score="fail" is
recorded as failed and the run continues. The summary shape and the
skipped/all_passed semantics are unchanged.
Same-alias models overwrote each other's audit file (#344):
- FreshDataDbtTransform gains audit_name, used as the audit file stem
(<audit_name>_audit.json) instead of the table name. It is checked with
_validate_audit_table_name when the transform is configured.
- When output_dir is set, gate_manifest counts aliases across the models it
gates (case-insensitively, since audit files may land on a
case-insensitive filesystem). Models whose alias is shared are written to
<schema>.<alias>_audit.json, or to <unique_id>_audit.json when the schema
is missing or that name is still not unique. Other models keep
<alias>_audit.json. An unsafe schema is rejected by the validator and
recorded as that model's error.
Closes#343Closes#344
0 commit comments