Skip to content

CI has no Windows runner: windows-only tests are compiled but never run #971

Closed

Description

@scttfrdmn

spawn ships a Windows spored (sys_windows.go: CPU, network, disk and kernel-clock readings), but CI runs only on Linux. Windows-only tests, such as TestSysKernelClocks_ReadsBothInterruptTimes (PR #970, #962), are compiled and vetted, at best via #941's GOOS gate, and never executed. Bugs that only show at runtime (wrong WMI/perf-counter names, PowerShell output parsing, API availability) go unnoticed; #919 and #937 both found Windows variants by reading the code, not by running it.

Suggested: add a windows-latest job that runs go test ./pkg/agent/... ./cmd/spored/... (unit tests only; no AWS), and make it a required check, or at least report it. Gate that the job exists and that it runs at least one Windows-only test, so it can't pass vacuously.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions