Skip to content

cli: upgrade and check tests start from a consumer with the rules_dx patches (part of #15131) - #15141

Merged
TrapsterDK merged 1 commit into
mainfrom
user-patches-cli-tests
Nov 28, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
user-patches-cli-tests

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Follow-up to #15140. It fixes the 7 //cli/cli:dx_cli_test failures from #15120.

  • The upgrade and check fixtures are rules_dx consumers. dx upgrade --apply now writes third_party/rules_dx, and the check's generate phase reports it as pending when it is missing.
  • The tests that measure something else (pin moves, refresh-only writes, static launchers, the check report boundary) now write the patches first through dx_adopt::user_patches.
  • Two tests compare MODULE.bazel without the include line.
  • The hand-off test's fixture named an include file that did not exist, so the MODULE.bazel parse failed with "no rules_dx bazel_dep". It now writes the real files.

Local: tools/dx test //cli/cli:dx_cli_test //cli/adopt:dx_adopt_test //deploy/private/release/tests:release_consumer_lib_test -- --jobs=2 passes (1477 cli tests, 0 failed).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvdpJxYihWhnWtH8yv

…patches (part of #15131)

The upgrade and check fixtures are rules_dx consumers, so upgrade writes
third_party/rules_dx and the check generate phase expects it. The tests
write those patches first, and the hand-off test writes the include file
its MODULE.bazel names.
@TrapsterDK
TrapsterDK merged commit e57a089 into main Nov 28, 2026
6 of 7 checks passed
@TrapsterDK
TrapsterDK deleted the user-patches-cli-tests branch November 28, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant