Repository navigation
Conversation
apilaskowski
requested review from
rafal-hawrylak
and removed request for
kolina
November 25, 2026 15:17
Add --tags-intersection to run and --output-tags-intersection to compile, so --tags selects only actions that carry every listed tag. Union matching stays the default. Actions given with --actions are still added, and dependency expansion applies to the combined selection. The flags reject missing or empty tags. Closes dataform-co#1466.
dmargol1
force-pushed
the
feat/tags-intersection
branch
from
November 28, 2026 02:24
c768b56 to
634b0f7
Compare
This branch has not been deployed
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.
Closes #1466.
dataform run --tags A,Bselects actions taggedAorB. This adds--tags-intersection, which selects only actions that carry every listed tag. Union matching stays the default.compilegets the matching--output-tags-intersectionoption, so a selection can be checked before running it.This continues #1467 and #1968. Thanks to @AnOtterGithubUser and @zsomborkincses. The flag name follows the suggestion in the review of #1968.
Only tag matching changes. The rest of selection works as before:
--actions(or--output-actions) are still added to the tag matches.--include-depsand--include-dependentsexpand that combined selection. Expanded actions don't need the tags.--tags A,), is an error. Union mode is unchanged: it still accepts empty entries.--tagsdoes today.RunConfiggets a new field,tags_intersection = 12. The managed service's InvocationConfig has no equivalent option, and this PR doesn't change that.Testing
tests/api/prune.spec.tscovers:"")--actionscombined with the intersection--include-depsand--include-dependentsexpanding from the intersectionWith only the
prune.tschange reverted, 6 of the 8 tests fail. The other 2 guard the unchanged union default and single-tag behavior.cli/index_compile_test.tsandcli/index_project_test.tscover the flags forcompileandrun, including rejecting missing or empty tags. These checks happen while parsing arguments, so they don't need BigQuery.cli/index_run_e2e_test.tsadds arun --build-only --jsonintegration test (no tables created). I ran it, along with the existing golden-path test, against my own project../scripts/run_testsand./scripts/lintpass.cli/README.mdwas regenerated withbazel run //cli:update_readme.🤖 Generated with Claude Code