ccao-data / data-architecture

Codebase for CCAO data infrastructure construction and management
https://ccao-data.github.io/data-architecture/
5 stars 3 forks source link

Update metadata in failing dbt tests for clearer workbook output #281

Closed jeancochrane closed 6 months ago

jeancochrane commented 6 months ago

This PR updates all dbt tests that are currently failing to add the following metadata that is used to populate the workbook in .github/scripts/format_dbt_test_failures.py:

Test these changes by running tests and generating a workbook -- run these commands in the dbt subdirectory:

dbt test --store-failures
python3 ../.github/scripts/format_dbt_test_failures.py

The workbook will be output to your working directory.

jeancochrane commented 6 months ago

This should be ready for another look @dfsnow! Let me know if I missed any of your comments from last round.

jeancochrane commented 6 months ago

Agreed @dfsnow! I opened https://github.com/ccao-data/data-architecture/issues/288 to encompass those edits since this PR is already so huge. I'll merge this one in and then get started on #288 shortly.