Skip to content

Move WSL provisioning programs out of workflow YAML #6958

Description

@cv

Parent: #6952

Problem

platform-vitest-main.yaml and wsl-e2e.yaml contain 362 nonblank executable lines combined. Both embed PowerShell programs that install/initialize WSL, translate paths, create temporary LF-only shell scripts, provision Ubuntu/Node, copy the checkout to ext4, and invoke commands as root or a test user.

The workflows have different test goals, so the extraction must share concrete provisioning primitives without forcing their runtime behavior into one parameterized mega-workflow.

Work

  • Add a small trusted PowerShell helper/driver for WSL availability, Windows-to-WSL path conversion, LF-safe script transfer, ext4 checkout synchronization, and command execution as a named WSL user.
  • Keep the E2E-specific Docker probe/full-flow and the platform-Vitest root/non-root test commands separate.
  • Ensure the helper source is trusted before any root-capable WSL execution; do not execute a PR-controlled provisioning helper.

Acceptance criteria

  • Repeated provisioning programs leave both workflow YAML files.
  • Existing install retry/unregister behavior, Ubuntu dependency sets, Node 22 installation, ext4 semantics, ownership, safe-directory handling, and root/non-root identities remain covered.
  • wsl-e2e still skips full live E2E with an explicit reason when Docker is unavailable.
  • platform-vitest-main still runs its non-root full suite and root-only permission contracts separately.
  • Direct PowerShell tests or command-construction tests cover quoting, spaces, drive-letter conversion, LF encoding, and exit-code propagation.
  • Workflow-boundary tests prove the helper is loaded from a trusted revision.

Activity

  1. added theissue type on Jul 15, 2026
  2. added
    area: ci
    platform: wsl
    on Jul 15, 2026
  3. added
    area: architecture
    help wanted
    on Jul 15, 2026
  4. souvikDevloper commented on Jul 16, 2026

    @souvikDevloper
    Contributor

    i am on it @cv

  5. added 3 commits that reference this issue on Jul 28, 2026
    df3bcdc
    614268d
    c3ab052
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area: architecturearea: cihelp wantedplatform: wsl

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions