Skip to content

powershell, msix: move to families/powershell and families/msix #6511

Closed as not planned

Description

@TrapsterDK

Goal: move powershell, msix to their own modules under families/, so consumers that don't use them stop resolving and fetching their deps.

Plan (agent): size M, sonnet
Family: Two modules in one PR (both need the same Windows evidence run). msix loads one powershell label: fix it under the shared rules below. powershell: extension, @dx_powershell_toolchains//:all (MODULE.bazel:510), repo rule, 2 aspects, //gazelle/powershell. msix: extension and toolchain. python loads 1 msix label and msix loads 2 //cc labels: fix them here.

Shared rules for every move:

  • Follow the checklist from android: moves to families/android #6053 (android).
  • The root MODULE.bazel depends on each family module with dev_dependency = True plus local_path_override. A non-dev dep would put the family back in every consumer's graph.
  • A family module depends only on core (rules_dx) and upstream rule sets, never on another family module.
  • Before moving, grep core and every other family for labels into the moving dirs. Fix each one in the same PR: move the test to the owning family, or move a shared helper into core.
  • Update the family's entry in modules/families.json, plus docs and examples, in the same PR. Labels change. No forwarding stubs and no migration (owner decision on modules: languages a consumer does not use are not fetched or registered #6032).
  • Keep shard names and # floor: lines unchanged (move a # floor: line with its dep).

Tests: tools/dx test //modules:all //tools/testing/hermetic:msix //tools/testing/hermetic:msix_consumer_sign_test, the family module's own tests as the #6053 checklist says, then tools/dx test --affected.
Host: windows (both families are Windows-first)
Upstream: none

Do after #6510
Part of #6054

Blocked on: #6510

Activity

  1. added
    needs-host
    P2
    blocked
    model:sonnet
    on Nov 4, 2026
  2. TrapsterDK commented on Nov 5, 2026

    @TrapsterDK
    CollaboratorAuthor

    Still blocked: the issue says to do this after #6510, and #6510 (generation to families/generation) is open. Only families/android exists on main. Keeping the blocked label; will pick this up once #6510 lands.

  3. github-actions commented on Nov 5, 2026

    @github-actions
    Contributor

    This issue has the blocked label but no Blocked on: line in its body. Add one naming the blocking issue (#N), a pull request URL, or the owner action. See CONTRIBUTING.md.

  4. TrapsterDK commented on Nov 6, 2026

    @TrapsterDK
    CollaboratorAuthor

    Rule for this move: the same PR moves the family's register_toolchains from root MODULE.bazel to families/<family>/MODULE.bazel, drops the hub repos from core's use_repo, and moves the patterns to the family entry in modules/families.json (see #8203 for beam). Otherwise consumers still fetch the toolchains and a second PR is needed. Assisted by Claude.

  5. removed
    needs-host
    blocked
    on Nov 9, 2026
  6. TrapsterDK commented on Nov 9, 2026

    @TrapsterDK
    CollaboratorAuthor

    PR #9390 merged (msix and powershell fixtures moved to families/msix and families/powershell). Windows evidence run 42582425753 (sign_test, install_untrusted_test, pack_test) passed on windows_x86_64. Issue stays open: the powershell rules, toolchain hub and register_toolchains, Gallery repo rule, aspects and //gazelle/powershell still live in core because core's own quality tools (PSScriptAnalyzer, docs extractors) run on pwsh and core cannot depend on a family. Moving them needs those tools to stop depending on pwsh in core, which needs an owner design decision.

  7. TrapsterDK commented on Nov 9, 2026

    @TrapsterDK
    CollaboratorAuthor

    Superseded by #10084: one module, no family modules.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_01Xut2hwESun1HL2eSVd1d5B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2model:sonnet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions