Skip to content

[graft-intelligence] [graft] Daily intelligence: Windows jobs now run inside WSL (2026-11-10) #76595

Done

Description

@github-actions

Summary

  • The only meaningful code change in the window reworks how Windows-runner jobs are rendered: steps now execute inside a WSL2 Ubuntu distro instead of using bash on the Windows host.
  • The compiler now bootstraps WSL, Docker, and a pinned Node.js inside the runner, so more runtime setup is now emitted into lock files.
  • Graft had no graph (graft_check reported NO GRAPH; graft_map found none), so blast-radius analysis used grep and the commit diff instead. Treat the findings below as lower-confidence than graph-backed ones.
  • The activity file lists every repository file as added. This looks like a shallow-history artifact: it has one commit, and the GitHub API shows that commit touched only 8 files. The 24-hour changed-files list is therefore not reliable.

Changed Areas

  • pkg/workflow/windows_runner.go (about +552/-89): the core rewrite. renderStepForRunner now takes a job name and a new renderStepForRunnerWithEnvironment variant. WSL and Node bootstrap steps are generated. Job environment variable names are forwarded into WSL, with the WSLENV list compressed or encoded.
  • pkg/workflow/compiler_safe_outputs_steps.go: the shared PR checkout lint block is now rendered with the safe_outputs job name and the sorted job-level environment variable names, so the lint sees the same wrapped form that is emitted.
  • pkg/workflow/jobs.go: passes job.Name into rendering for windows-latest jobs, and moves from sort to slices.
  • .github/workflows/windows.lock.yml (about +924/-354): regenerated output showing the new bootstrap and wrapper steps.
  • Tests: jobs_test.go (+227), awf_installer_integration_test.go, and the two compiler lint tests were updated for the new signature.

Blast Radius and Hotspots

  • Grep shows renderStepForRunner and renderStepForRunnerWithEnvironment have only a few production callers: jobs.go (WriteJobsYAML) and compiler_safe_outputs_steps.go. The signature change is contained, but every windows-latest job passes through this path.
  • Ubuntu jobs and non-windows-latest runners take an early exit and are unchanged in the tests (ubuntuStep and the release job cases).
  • The bootstrap runs apt-get install inside the WSL distro and symlinks /tmp/gh-aw to $RUNNER_TEMP/gh-aw. It downloads Node.js from nodejs.org and verifies it with a SHA256 file fetched from the same host, and it starts dockerd. These add network, supply-chain, and runner-image assumptions to every Windows job.
  • The lint path now depends on the job environment set, so changes to buildJobLevelSafeOutputEnvVars or runtimeFeaturesEnvVarName can alter Windows output and lint results.
Details and uncertainty
  • No graph-based callers, skeletons, or hotspot rankings were available.
  • The commit patch was only partly reviewed (first ~150 lines of the three Go files), so the env-forwarding and encoding internals in windows_runner.go were not inspected.
  • The 8-file list came from the GitHub commit API. The local activity file could not be parsed per file because it is oversized (about 546 KB) and appears to represent a full-tree add.

Recommendations

  1. Build the Graft graph in the workflow (graft build --deep) so callers and hotspots can be reported, and so a shallow checkout does not mark the whole tree as added.
  2. Pin or independently verify the Node.js download in the WSL bootstrap (for example a pinned checksum). Also verify the Ubuntu distro and docker.io packages the bootstrap installs, since the unpinned apt-get install makes Windows runs non-reproducible.
  3. Add an integration or smoke test that exercises the WSL path on a real windows-latest runner, not only golden-string unit tests, and a regression test for WSLENV and environment-variable forwarding limits.

References

  • Window: last 24 full hours ending 2026-11-10 (UTC); the one commit was merged at 2026-11-10T11:09:23-08:00.
  • Workflow run ID: 42885142450

Generated by 🧠 Daily Graft Intelligence · copilot · routed: sonnet55 high · ~19 AIC · ⌖ ~1 AIC · ⊞ 3.6K · ◷

  • expires on Nov 12, 2026, 11:36 AM UTC-08:00

Activity

  1. added
    cookie
    on Nov 10, 2026
  2. github-actions commented on Nov 11, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~2 AIC · ⊞ 10K · ◷

  3. linked a pull request that will close this issueHarden Windows WSL runtime setup #76731on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

automated-analysiscookie

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions