NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

Move WSL provisioning programs out of workflow YAML

Open cv opened this issue 4 months ago • 1 comments

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.

cv avatar Jul 15 '26 17:07 cv

i am on it @cv

souvikDevloper avatar Jul 16 '26 01:07 souvikDevloper