Skip to content

ci(test): test the packages that already pass on windows-latest - #351

Merged
runkids merged 2 commits into
runkids:mainfrom
star-nebula:ci/windows-green-only
Oct 3, 2026
Merged

runkids merged 2 commits into
runkids:mainfrom
star-nebula:ci/windows-green-only

Conversation

@star-nebula

Copy link
Copy Markdown
Contributor

Type

  • Small improvement (CI coverage — no product code and no test code changes)

Linked Issue

Part of #344

What

Adds a windows-test job to test.yaml that runs the 15 packages which already pass on
windows-latest. One file, +42 lines.

Why

Releases publish windows_amd64 and windows_arm64 archives and seven _windows.go files compile
only on Windows, but every job in this workflow runs on Linux or macOS, so a Windows-only regression
reaches users through release binaries with no signal in CI. Both Windows fixes I have landed so far
(#330, #335) were found by using the tool on Windows, not by a pipeline.

Why an allow-list rather than the whole suite

Adding ./cmd/skillshare/... ./internal/... today would land a permanently red check: #344 measures
14 of the 32 packages the unit-test pattern selects failing on windows-latest. This job starts from
the packages that are green today, so it is green on arrival, and every later fix grows the list
instead of having to unlock the job.

Deliberately out of scope here, all tracked in #344:

  • The 14 packages that fail there: cmd/skillshare, and internal/{audit,config,devcontainer,git,hooks,install,mcp,oplog,plugin,server,sync,theme,trash}. Four of them already have fixes in flight (fix(audit): skip absolute metadata keys on Windows too #345–test(doctor): assert target paths in the OS separator form #348); when one of those lands, its package should be added to this list.
  • -race: the detector needs a C toolchain on Windows, and the raced suite already runs on ubuntu and macOS.
  • ./tests/integration/...: never measured on this platform. In every run I made, the unit step fails before the integration step is reached, so I have no Windows result to report for it and I am not claiming one.

-count=1 is deliberate: a cached result must not be able to report a pass for a package that never ran.

Evidence

Both runs are windows-latest at upstream 7043ca3a, triggered from my fork.

  1. Green as shipped — run 37097102695, windows-test job 111129153165: 15 package rows, all ok, 0 FAIL, 0 (cached); 802 --- PASS: lines over 314 distinct top-level tests, 5 skipped; job wall time 86 s.
  2. The gate can fail — run 37097864138: one line changed, adding ./internal/audit (known red at this commit) to the list. The job went red on TestScanSkill_ContentIntegrity_PathTraversal — the same test fix(audit): skip absolute metadata keys on Windows too #345 turns green, so this also confirms fix(audit): skip absolute metadata keys on Windows too #345's regression test fails on a real runner, not just in my local cross-compiled run. A job nobody has watched fail is not evidence of coverage.

This PR's own checks will be the third sample of run 1.

Checklist

  • I've read CONTRIBUTING.md
  • Tests included and passing (make check) — not applicable to behaviour: this changes no Go code. The job itself is validated on a real windows-latest runner, in both directions, as above.
  • No unrelated changes in the diff (1 file, .github/workflows/test.yaml)
  • Scope is focused — one concern: give Windows a passing signal today instead of a red one

star-nebula and others added 2 commits October 3, 2026 12:36
Releases publish windows_amd64 and windows_arm64 archives, and `_windows.go`
files compile only on Windows, yet every job in this workflow runs on Linux or
macOS: a Windows-only regression reaches users at release time instead of at
review.

Start the coverage with the 15 packages that pass on windows-latest today, so
the job is green on arrival rather than a permanent red check. The 14 packages
that fail there are listed in runkids#344 with the failures behind them, and each fix
adds its package back to this list.

-race stays off because the race detector needs a C toolchain on Windows;
ubuntu and macOS already run the raced suite. -count=1 keeps a cached result
from reporting a pass for a package that never ran.
@runkids

runkids commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Thanks! Two follow-ups for a later PR:

@runkids
runkids merged commit 3c440ce into runkids:main Oct 3, 2026
8 checks passed
@star-nebula
star-nebula deleted the ci/windows-green-only branch October 3, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants