Skip to content

Windows CI: tests that exercise Linux-only behaviour are skipped on Windows #1002

Open

Description

@scttfrdmn

Tracking issue for the individual tests the Windows CI job (#971) skips with runtime.GOOS == "windows". Each tests behaviour that only exists on a Linux spore or with POSIX permissions, so running it on a Windows host tests Git Bash/MSYS rather than spawn. None is believed to be a Windows product bug; real ones are filed separately (#997, #998, #999, #1000, #1001).

  • pkg/agent TestFlushTaskRecord*: the task-flush hook is the Linux bash task wrapper's (pkg/taskproto); its group/world-writable check reads POSIX mode bits, which Windows synthesises as 0666, so every fixture hook is refused.
  • pkg/arrayrec TestFilePermissions: asserts a 0600 mode; Windows has no POSIX mode bits (the profile ACL protects the file).
  • cmd TestBuildPoolWorkerCommand_ExitZeroStops: runs the generated pool-worker loop, which runs on a Linux instance, under bash with a stub on a :-separated PATH.
  • pkg/launcher TestBootstrapSetsHostnameFromName, TestFailedCommandLogNamesErrexit, TestSweepParamsSurviveAsLiterals: execute the Linux user-data bootstrap (/etc/hosts, SIGPIPE exit 141, /tmp paths) under bash.
  • pkg/sporedinstall install_test.go: executes the Linux shell installer (bash + openssl). The Windows installer is PowerShell and is covered by windows_test.go.
  • pkg/taskpool TestDirWorkspace_* and TestPool_EndToEnd_AgainstSubstrate: POSIX workspace modes, and tasks run with sh on the (Linux) worker.

If any of these code paths becomes reachable on a Windows spore, its test needs a Windows variant rather than a skip.

Activity

  1. scttfrdmn commented on Oct 15, 2026

    @scttfrdmn
    ContributorAuthor

    Also skipped: pkg/userdata TestMPICommandSignalsCompletion and TestMPIPeerReadinessFailureSignalsReachablePeers (via runRank0), which execute the Linux MPI user-data block (/tmp, /var/log paths) under bash.

  2. scttfrdmn commented on Oct 15, 2026

    @scttfrdmn
    ContributorAuthor

    Also: cmd TestAuditTrailIsKeptOffTheTerminalButNotLost's mode check (audit.log 0600) is skipped on Windows; the rest of the test runs.

  3. 4 remaining items

  4. added this to the Later milestone on Oct 19, 2026
  5. modified the milestones: Later, Post-1.0 on Nov 8, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions