Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split out
test-iasworld-data
workflow fromtest-dbt-models
so that data integrity tests will fail properly #671Split out
test-iasworld-data
workflow fromtest-dbt-models
so that data integrity tests will fail properly #671Changes from 4 commits
cd123f6
59440f9
420d2c2
6225116
6cb2d36
92e6c96
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow should be nearly identical to the old implementation of
test-dbt-models
, but GitHub can't pick up on the diff because we're keepingtest-dbt-models
and adapting it for a slightly more specific purpose. I'll call out every change I made in comments below.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is slightly different, to reflect the new conditions in which this workflow runs compared to the old
test-dbt-models
workflow.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This block is different from the old implementation of
test-dbt-models
: Now that this workflow is dedicated to running iasWorld tests, we can fall back to the default behavior of the underlyingrun_iasworld_data_tests.py
script, which means we can avoid passing in the--select
or--selector
options unless the caller specifies one of them.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question (non-blocking): Why pass these in as env vars rather than just interpolating them directly into the bash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question! There's no functional reason, I just felt like it was clearer in this particular case. For
USER
,GIT_SHA
,GIT_REF
, andGIT_AUTHOR
, the script expects these environment variables to be set, so we need to convert the GitHub variables to env vars anyway. ForSELECT_OPTION
,CACHE_HIT
, andSKIP_ARTIFACTS_OPTION
, I felt like the GitHub variable references were a bit long/esoteric, and it feels easier to me to read them as env vars. Definitely a weak preference on my part, I'm open to changing any of these if you think a GitHub variable would be clearer.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This subject and body are now slightly different from the old implementation ("iasWorld tests" instead of "dbt tests") to make it clear that the message specifically relates to iasWorld tests.