Repository navigation
ci: run the kit's tests on Windows, where its !linux tests build - #46
Merged
Merged
Conversation
…f-Linux files by go/build (cross-review)
… workflow's default directory (cross-review)
bketelsen
approved these changes
Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
The kit has 3 test files with
//go:build !linux:kit/kittest/kittest_other_test.go,kit/lodgeapp/unsupported_test.goandkit/rpctest/rpctest_other_test.go. CI runs only onubuntu-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 jobkit-windows, "The kit off Linux (go test on Windows)", onwindows-2025:go test ./...inkit/, with the same SHA-pinned actions,permissions: contents: readandpersist-credentials: falseas the other jobs (shape copied from frostmail's "Windows (go test)").internal/workflowcheck:TestOffLinuxTestsRunInCIfinds 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 awindows*runner (scalar or list) runs an unfilteredgo test [flags] ./...inkit(the step's, the job's or the workflow's working directory, orcd kit && …). Off-Linux files are found withgo/build'sMatchFilefor 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,-cand 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
ci.ymlrestored (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 verifypasses locally.What it must not break
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; codergithub-copilot/mai-code-2-flash, with the last fix by Irulan (Claude). 1 review + 2 re-reviews:6bc9f03: Not ready. B1 (any step text withgo testcounted), B2 (file-name suffixes and release tags ignored), B3 (runner lists and default directories). Accepted and fixed.7d3b463: B2 resolved; B-R1 (-list,-count=0still counted). Accepted and fixed.c6fc603: Ready, Blocking: none. Non-blocking limit left: runner expressions (a matrixruns-on) are not supported; the current job does not use one.