Add new vetdis co-op excode to exemption views, and configure CI to run unit tests#1053
Merged
jeancochrane merged 4 commits intoJun 29, 2026
Merged
Conversation
exe_vet_dis_ge70 excode to exemption views
jeancochrane
commented
Jun 22, 2026
| # selected can run because it has an argument that references a model | ||
| # that _is_ selected. | ||
| indirect_selection: cautious | ||
| - method: resource_type |
Member
Author
There was a problem hiding this comment.
Newer versions of yamllint were complaining about the indentation in this file, so I fixed it.
Comment on lines
+26
to
+30
| - union: | ||
| - method: resource_type | ||
| value: test | ||
| - method: resource_type | ||
| value: unit_test |
Member
Author
There was a problem hiding this comment.
This is one of two functional changes to this file: Adding unit tests to the list of resource types that the selector will catch.
Comment on lines
+42
to
+46
| - union: | ||
| - method: resource_type | ||
| value: test | ||
| - method: resource_type | ||
| value: unit_test |
Member
Author
There was a problem hiding this comment.
This is the second of two functional changes to this file, same as above.
wrridgeway
approved these changes
Jun 23, 2026
wrridgeway
left a comment
Member
There was a problem hiding this comment.
Thanks, this looks great. I had no idea we were missing unit tests 🤦
Comment on lines
+30
to
+32
| WHEN | ||
| det.excode IN ('DV3', 'C-DV3', 'DV3-M', 'DV-3') | ||
| THEN 'exe_vet_dis_ge70' |
Member
There was a problem hiding this comment.
We've already seen this code for other levels of this exemption, so I don't think we need to confirm with valuations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR fixes two small issues I noticed this morning:
default.vw_pin_exe_long.exemption_typehas started failing due to the presence of a valid exemption with excodeC-DV3, indicating the co-op version ofexe_vet_dis_ge70. This excode wasn't in the reference file our stakeholder sent over to us, but it seems legit, so I'm adding it as an acceptable excode to thedefault.vw_pin_exe_longview definition, which should resolve the failing test. If you'd prefer I confirm this with our stakeholder before proceeding, I'm happy to do that, too.build-and-test-dbtCI workflow is not running unit tests, due to resource selection logic that only selects resources with the typetestand notunit_test. This is visible when you run a specific unit test defined ondefault.vw_pin_exe_long: In Ensure views are consistent with active PINs iniasworld.pardat#1042 we edited that view to add a dependency oniasworld.pardat, but did not add the corresponding table definition to thedefault_vw_pin_exe_long_ranks_and_selects_properly_among_duplicatesunit test, causing the test to fail. This test should have failed on CI, but per the workflow logs, it did not run.Here is a command showing that
default_vw_pin_exe_long_ranks_and_selects_properly_among_duplicatesfails on the main branch:I also folded in one other change for a small issue that was annoying me: We now lint YAML files using a pre-commit hook, rather than super-linter. This makes it a lot easier to debug YAML linting failures, which I was running into while fixing our selector logic.
Testing
Testing the fix for issue 1 above (missing co-op excode) is easy, since you can confirm that the version of
build-and-test-dbtthat ran as part of this PR is passing below (logs here).Testing the fix for issue 2 (unit tests not running on CI) is harder, because we have no automated tests for it. To do so, I checked to confirm that the
default_vw_pin_exe_long_ranks_and_selects_properly_among_duplicatestest did not run as part of thebuild-and-test-dbtworkflow that ran when #1042 got merged, which introduced the error that breaks that unit test; I then confirmed that this test is now running as part of thebuild-and-test-dbtworkflow runs on this PR (logs here).I also ran some local QC on the selector itself to confirm that the changes I made to the selectors that CI uses are correct, in that they are now returning unit tests, and unit tests are the only new tests they are returning:
Click to expand local QC commands