Skip to content

layout: msix to msix/defs.bzl and private/, delete families/msix (part of #10101) - #10300

Merged
TrapsterDK merged 2 commits into
mainfrom
layout-msix
Nov 10, 2026
Merged

TrapsterDK merged 2 commits into
mainfrom
layout-msix

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #10101. Moves msix only; android, apple and cuda remain.

  • families/msix to msix/: public defs.bzl, extensions.bzl, BUILD.bazel (toolchain_type, platforms), lang.json; implementation in msix/private/; tests and fixtures in msix/tests/.
  • Deleted the rules_dx_msix module, its modules/families.json entry, root MODULE.bazel dev dep and .bcr/families/msix. msix_tools and its toolchains are now registered non-dev; the license acceptance stays dev_dependency.
  • Updated labels in ci.yml (msix-install, touches a workflow so draft), hermetic msix consumer (also fixes dx_msix to msix_package), support matrix, docs, consumer_surface.txt, libs/families (also fixes //python:lang.json).
  • Regenerated: support matrix, rule names README.

Checked: //msix/private:metadata, modules:lang_json_test, libs/families, support_matrix tests, rule_names_test pass. Not run: nested-Bazel and *_consumer_test targets, Windows tests. Already failing on main and unrelated: modules:families_test (swift, elixir, php), consumer_deps_test, consumer_surface (fortran), module_srcs_test (rules_dx_fortran), cli build (DxError).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Review: changes requested

  1. tools/ci/starlark_docs_test.rs:21 and tools/ci/BUILD.bazel:770: msix no longer has Starlark docs coverage. Deleting families/msix removed its starlark_docs_test, but msix/private, msix/private/toolchains and msix/tests were not added to the root PACKAGES list or to the starlark_docs_test data, and the array length was not bumped. layout: julia, zig, fortran, d to <lang>/defs.bzl and private/, delete their families #10283 and layout: lua, perl, php, ruby to <lang>/defs.bzl and private/, delete their families #10295 made this change for their languages. Those corpus_starlark targets also lost their //:__pkg__ visibility (msix/tests/BUILD.bazel:589, msix/private/toolchains/BUILD.bazel:23), so they need visibility for //tools/ci. msix/README.md also no longer has a corpus_markdown target (compare appimage/BUILD.bazel).
  2. msix/tests/fixtures/msix-app/app/BUILD.bazel:1: # gazelle:resolve cc greet.h //tests/fixtures/msix-app/greet:greet still uses the old module-relative label. Running gazelle in the root module would rewrite deps to a package that no longer exists. It should be //msix/tests/fixtures/msix-app/greet:greet (appimage-app uses the same pattern). msix/tests/fixtures/msix-app/README.md:51 also still says //tests.

Checked and fine: the ci.yml change only updates the path filter and labels for msix-install (no new triggers, no secrets). msix_tools and //msix/private/toolchains:all are non-dev, and the license acceptance stays dev_dependency. Tests and fixtures moved with the code. No rules_dx_msix or families/msix labels remain, apart from a doc example in tools/testing/module_srcs_test.rs:191. bazel mod deps --lockfile_mode=error raises no msix lock drift. Its only error is the python sdist_cargo_vendor extension, which this PR doesn't touch.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Fixed: msix/private, msix/private/toolchains and msix/tests added to starlark_docs_test PACKAGES (length 94) and its data; corpus_starlark visibility for //tools/ci; msix/README.md corpus_markdown added; gazelle:resolve label and fixture README use //msix/tests paths; doc example in module_srcs_test.rs no longer names rules_dx_msix; rebased onto main with families.json, CLI docs, consumer surface and support matrix regenerated. starlark_docs_test still fails on lua/luarocks/lock.bzl:127 from main (#10325); msix, families and support_matrix tests pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Review: approve

Re-checked at 7d3af64 after the fixes. Both earlier items are resolved:

  • msix/private, msix/private/toolchains and msix/tests are in starlark_docs_test PACKAGES (94) and its data. Their corpus_starlark targets are visible to //tools/ci, and msix/README.md has a corpus_markdown with the fixture README as sibling.
  • The gazelle:resolve directive and the fixture README use the //msix/tests/... labels.

Also checked:

  • ci.yml only changes the msix-install path filter (^msix/), the test label and the summary text. There are no new triggers, the job keeps permissions: contents: read, and no secrets are added.
  • MODULE.bazel registers msix_tools, dx_msix_tools and //msix/private/toolchains:all as non-dev. The license acceptance stays dev_dependency. The extension is reproducible, so the root lock doesn't change.
  • msix/defs.bzl and msix/extensions.bzl re-export from private/ the same way lua does. There is no compat alias for rules_dx_msix.
  • No rules_dx_msix or families/msix references remain in the tree, and .bcr/families/msix is deleted.
  • In msix/tests, root_data_test still expects share/BUILD.bazel and share/README.md. That holds because data_path falls back to the basename for files from another package.

Not blocking: tools/ci/BUILD.bazel:1075. repos_bzl_test data does not include //msix/private:corpus_starlark, so msix/private/repos.bzl isn't covered. //appimage:corpus_starlark is in that list.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK
TrapsterDK marked this pull request as ready for review November 10, 2026 04:07
@TrapsterDK TrapsterDK added the needs-review Touches review paths; needs a second-session Review: comment label Nov 10, 2026
TrapsterDK and others added 2 commits November 10, 2026 05:23
…ocs follow the move (part of #10101)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd
@TrapsterDK
TrapsterDK merged commit cab30d6 into main Nov 10, 2026
1 check failed
@TrapsterDK
TrapsterDK deleted the layout-msix branch November 10, 2026 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Touches review paths; needs a second-session Review: comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant