Repository navigation
dx --affected: intersect with scopes, clear no-git error, --base and [affected] base - #13277
Merged
Merged
Conversation
TrapsterDK
force-pushed
the
dx-affected-13198
branch
from
November 17, 2026 22:57
0e7e7c1 to
14c9765
Compare
Collaborator
Author
|
Evidence 44195066839: macos_arm64 is green. The linux_x86_64 and windows_x86_64 failures are all in tests this PR does not touch (sync_fingerprint, dev_launcher, agents, init, link_check, update_consumer, workflow profile). Evidence 44196819972 fails with the same set on the unrelated branch dx-test-one-query, so I filed them as #13286. Locally on Linux, |
TrapsterDK
marked this pull request as ready for review
November 17, 2026 23:53
TrapsterDK
force-pushed
the
dx-affected-13198
branch
from
November 18, 2026 00:43
14c9765 to
3867b55
Compare
… and [affected] base (closes #13198) - build, test, coverage, lint, typecheck, format and check accept scopes with --affected and keep only the affected targets inside them. generate, security, license and deploy still reject the pair. - --affected and --since outside a git work tree now say so instead of "cannot find the default branch". - --base <ref> and dx.toml [affected] base pick the branch whose merge-base --affected diffs from; --base wins, then dx.toml, then detection. --base conflicts with --since and needs --affected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K
TrapsterDK
force-pushed
the
dx-affected-13198
branch
from
November 18, 2026 00:46
3867b55 to
5d19718
Compare
This was referenced Nov 18, 2026
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 #13198
build,test,coverage,lint,typecheck,formatandchecknow take scopes with--affectedand keep only the affected targets inside them (dx test --affected //svc/...).generate,security,licenseanddeploystill reject the pair, since their scopes are not plain Bazel patterns or a single label.--affected(and--since) say<dir> is not inside a git work treeinstead of "cannot find the default branch".--base <ref>and dx.toml[affected] basechoose the branch whose merge-base--affecteddiffs from.--basewins, then dx.toml, then the existing detection.--baseneeds--affectedand conflicts with--since. The schema was regenerated withbazel run //cli/dx_config:update_schema.Tests:
scopes_narrow_the_affected_plan,outside_git_says_so_instead_of_blaming_the_default_branch,base_comes_from_the_flag_then_dx_toml_then_detection(cli/cli),affected_takes_scopes_on_the_graph_commandsandbase_needs_affected_and_excludes_since(cli/plan).Local:
bazel test //cli/plan:dx_plan_test //cli/cli:dx_cli_test //cli/dx_config:dx_config_test //cli/cli:dx_man_testpassed (4/4).tools/dx check --affected --applypassed generate and format; its lint and typecheck phases stopped on an analysis failure in//qt/tests/fixtures/qt_rust/app:ledger_release(untouched), so clippy on the touched crates is left to CI. Nested-Bazel and*_consumer_testtargets were not run locally.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K