You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
core: load-graph test covers BUILD packages of core tool label_flag defaults #10117
The #10085 load-graph test covers .bzl loads from core and config/BUILD.bazel. Core shard aspects also depend on tool targets through //config:tool_* label_flags. Analysis loads the BUILD file of each flag's default package. If that BUILD file loads a language rule set, every consumer fetches that rule set, even when the language goes unused.
Where
config/BUILD.bazel (label_flag build_setting_default values for tools used by core-family shards)
quality/families/core.bzl and the core-family files that quality/families/core_probe.bzl loads (TOOLS[*]["attr"] defaults)
Extend the test: for every tool in a core-family TOOLS table, resolve the //config:tool_* default to its package and add that package's BUILD.bazel to the roots.
Move each tool target that fails into a package whose BUILD file loads no language rule set. A prebuilt in @dx_tools already passes; a rules_py or rules_rust build does not.
Found while planning #10085: core-family aspect files also point straight at rules_py tools, with no //config:tool_* flag in between. Analysis loads quality/tools/python/BUILD.bazel, which loads @rules_py at line 1, so a Go-only consumer still fetches rules_py after #10085.
Investigated, no change made. Aspect attr defaults (including label_flag defaults such as //config:tool_ruff) are resolved when the aspect is instantiated, so repointing these attrs at a flag still loads quality/tools/python/BUILD.bazel and @rules_py. Splitting the package does not help either, since docstrfmt (core.bzl) is still a rules_py py_binary. Needs a design decision from #10085: either the data/toolchain mechanism for registering quality tools, or prebuilt hermetic builds (sha256-pinned archives in @dx_tools) of the 9 python tools so the default labels need no rules_py load. The test from the first Fix bullet does not exist on main yet.
Audit of origin/main: unchanged. quality/tools/python still exists and the core family aspect files still default to it; blocked on the design decision in the earlier comment.
Activity
TrapsterDK commentedon Nov 9, 2026
Found while planning #10085: core-family aspect files also point straight at rules_py tools, with no
//config:tool_*flag in between. Analysis loadsquality/tools/python/BUILD.bazel, which loads@rules_pyat line 1, so a Go-only consumer still fetches rules_py after #10085.Where
Fix
attr.label(default = "//pkg:...")values in reachable.bzlfiles intopkg/BUILD.bazel.TrapsterDK commentedon Nov 9, 2026
Investigated, no change made. Aspect attr defaults (including label_flag defaults such as //config:tool_ruff) are resolved when the aspect is instantiated, so repointing these attrs at a flag still loads quality/tools/python/BUILD.bazel and @rules_py. Splitting the package does not help either, since docstrfmt (core.bzl) is still a rules_py py_binary. Needs a design decision from #10085: either the data/toolchain mechanism for registering quality tools, or prebuilt hermetic builds (sha256-pinned archives in @dx_tools) of the 9 python tools so the default labels need no rules_py load. The test from the first Fix bullet does not exist on main yet.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd
TrapsterDK commentedon Nov 10, 2026
Audit of origin/main: unchanged. quality/tools/python still exists and the core family aspect files still default to it; blocked on the design decision in the earlier comment.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd
TrapsterDK commentedon Nov 10, 2026
Decision: Python core tools go prebuilt via @dx_prebuilt (#10544, #10545). This PR adds the test and a shrink-only pending list.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd
core: load-graph test follows core tool defaults into their BUILD pac…