Skip to content

qt: rule-set files stop naming //:module_srcs (part of #14384) - #14406

Merged
TrapsterDK merged 3 commits into
mainfrom
cloud/14384
Nov 21, 2026
Merged

TrapsterDK merged 3 commits into
mainfrom
cloud/14384

Conversation

@TrapsterDK

@TrapsterDK TrapsterDK commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Pull Request

Linked Issue

Part of #14384

Changes

  • qt/BUILD.bazel drops its module_srcs filegroup, which named //:module_srcs. The root module_srcs already lists //qt:extension_srcs. The qt_tasks and qt_rust hermetic consumers now read //:module_srcs, and module_srcs_test drops //qt:module_srcs from its data (the erlang entry already carries //:module_srcs).
  • tools/ci/rule_set_loads_allowlist.txt: the qt/BUILD.bazel foreign-label 1 line is deleted.

//cc:compiler stays named in qt for now. core_load_graph_test forbids core/ from naming a language label, so the constant can't go in //core:platform.bzl.

Verification

tools/dx check --apply --output=text on the touched files: no findings.

Tested: //tools/ci:rule_set_loads_test, //tools/testing:module_srcs_test and //qt/tests/... all pass. In //qt/tests/..., 34 tests pass and 33 are skipped as incompatible with a linux_x86_64 host. bazel build --nobuild //qt/... //tools/testing/hermetic:all passes.

Failing tests that this PR doesn't touch:

  • //core/quality/tests:core_load_graph_test: only core_loads_only_allowed_external_repos fails, on tools/docs/protobuf/defs.bzl.
  • //tools/api:api_test: the drift is apple testonly and the php from_source tag.
  • //tools/ci:workflow_pins_test: the reusable-release.yml digest is out of date.

The hermetic qt_tasks and qt_rust consumers run nested Bazel, which can't run in this container, so I didn't run them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hz5zFQvCAptgMs6qAD

… of #14384)

qt drops its module_srcs filegroup; the root module_srcs already lists
//qt:extension_srcs, and the qt hermetic consumers read //:module_srcs.
The cc compiler flag reaches qt as CC_COMPILER_FLAG from
//core:platform.bzl, an allowed load. Four qt foreign-label allowlist
lines go away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hz5zFQvCAptgMs6qAD
@TrapsterDK TrapsterDK added needs-review Touches review paths; needs a second-session Review: comment train Tested; land via merge train labels Nov 21, 2026 — with Claude

Copy link
Copy Markdown
Collaborator Author

The analysis check fails in //tools/ci:workflow_pins_test, and the cause is already on main. .github/workflows/reusable-release.yml on main hashes to a8963f…, which no longer matches tools/ci/starter_pin.sha256. #14337 changed that workflow last. This PR touches neither file. The fix belongs in a separate PR that updates tools/ci/starter_pin.sha256.


Generated by Claude Code

core_load_graph_test forbids core from naming a language label, so the
compiler flag stays named in qt until rules_qt has its own route. This
PR now only drops the qt module_srcs filegroup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hz5zFQvCAptgMs6qAD
@TrapsterDK TrapsterDK changed the title qt: rule-set files stop naming //:module_srcs and //cc:compiler (part of #14384) qt: rule-set files stop naming //:module_srcs (part of #14384) Nov 21, 2026
@TrapsterDK TrapsterDK removed the needs-review Touches review paths; needs a second-session Review: comment label Nov 21, 2026 — with Claude

Copy link
Copy Markdown
Collaborator Author

Shard 10 failed in core_load_graph_test because core/platform.bzl named //cc:compiler. 4bf9e0d drops that part, so the PR no longer touches core/. The other failure in that test, on tools/docs/protobuf/defs.bzl, is on main too.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Shard 26 on the old head (8310735) stopped before any test ran. The affected-test planner passed it an external label, which dx rejects: dx: invalid_scope: unsupported scope "@llvm//tests/stage0_features:stage0_features_test". That is a planner bug, not a change in this PR. The current head (4bf9e0d) no longer touches core/, so the affected set is much smaller.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Shard 15 on 4bf9e0d has 3 failures, all coming from main rather than this PR. I reproduced the first two locally:

  • //tools/testing:module_extension_srcs_test: lua/private/lua_LICENSE.txt (referenced by lua/private/BUILD.bazel) is missing from the lua module_srcs.
  • //tools/testing/nested:dx_nested_test: rules_flutter_pin_matches_the_root_module expects deterministic_web_compile.patch, which the root module doesn't list.
  • //tools/testing:language_skeleton_test: a known failure on main.

Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hzWDHEg9zNhhTJrJ7t
@TrapsterDK
TrapsterDK merged commit 9bf9fb1 into main Nov 21, 2026
3 of 4 checks passed
@TrapsterDK
TrapsterDK deleted the cloud/14384 branch November 21, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

train Tested; land via merge train

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants