Skip to content

ci: run the kit's tests on Windows, where its !linux tests build - #46

Merged
bketelsen merged 3 commits into
mainfrom
irulan/kit-windows-ci
Nov 4, 2026
Merged

bketelsen merged 3 commits into
mainfrom
irulan/kit-windows-ci

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

What this changes

The kit has 3 test files with //go:build !linux: kit/kittest/kittest_other_test.go, kit/lodgeapp/unsupported_test.go and kit/rpctest/rpctest_other_test.go. CI runs only on ubuntu-24.04, so these tests never compiled or ran anywhere: checks that could not fail. frostmail runs the kit on Windows, so that off-Linux path is real code. Found by the T776a sweep for checks that cannot fail.

  • .github/workflows/ci.yml: a new job kit-windows, "The kit off Linux (go test on Windows)", on windows-2025: go test ./... in kit/, with the same SHA-pinned actions, permissions: contents: read and persist-credentials: false as the other jobs (shape copied from frostmail's "Windows (go test)").
  • internal/workflowcheck: TestOffLinuxTestsRunInCI finds the kit's test files that build for Windows and not for Linux (go/build/constraint), fails if there are none (it cannot pass on empty input), and fails unless a job on a windows* runner (scalar or list) runs an unfiltered go test [flags] ./... in kit (the step's, the job's or the workflow's working directory, or cd kit && …). Off-Linux files are found with go/build's MatchFile for linux and windows, so file-name suffixes and release tags count. Only flags that keep every test running are allowed (-v, -race, -failfast, -json, -cover, -count/-p/-parallel ≥ 1, -timeout); -run, -skip, -short, -list, -count=0, -c and others make the step not count. Table tests cover each case, and a temp-dir test covers the file matching.
  • AGENTS.md: one line about the job.

How we know it works

  • Revert test: with the old ci.yml restored (git stash), go test -run TestOffLinuxTestsRunInCI ./internal/workflowcheck/ fails: off-Linux kit tests [.../kittest_other_test.go .../unsupported_test.go .../rpctest_other_test.go] never run in CI. With this change it passes.
  • cd kit && GOOS=windows go vet ./... passes; make verify passes locally.
  • The new job's own run on this PR is the proof that the kit's tests pass on Windows.

What it must not break

  • Required-check names: no existing job changes its name: (lesson: the ruleset matches names exactly). The new job is not required; Brian decides whether to require "The kit off Linux (go test on Windows)".
  • TestWorkflowsFollowADR0021 (SHA pins, permissions, persist-credentials) passes with the new job.

Coder: github-copilot/mai-code-2-flash; review fixes by Irulan.

Cross-review

Reviewer openai/gpt-6.1-sol; coder github-copilot/mai-code-2-flash, with the last fix by Irulan (Claude). 1 review + 2 re-reviews:

  • Review at 6bc9f03: Not ready. B1 (any step text with go test counted), B2 (file-name suffixes and release tags ignored), B3 (runner lists and default directories). Accepted and fixed.
  • Re-review 1 at 7d3b463: B2 resolved; B-R1 (-list, -count=0 still counted). Accepted and fixed.
  • Re-review 2 at c6fc603: Ready, Blocking: none. Non-blocking limit left: runner expressions (a matrix runs-on) are not supported; the current job does not use one.

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 4, 2026
@bketelsen
bketelsen merged commit bd6fa7b into main Nov 4, 2026
8 checks passed
@bketelsen
bketelsen deleted the irulan/kit-windows-ci branch November 4, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants