Repository navigation
ci: unit and race runs filter no test names - #126
Merged
Merged
Conversation
…uded; ADR-0035 back-links (cross-review)
… only go test at a command's start (cross-review)
…ver echo's text (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
make test,make ciand CI's race job rango test -run '^Test[^I]'(core ADR-0022) to skip integration tests namedTestI…. But-runalso selects fuzz targets and examples, so the filter silently skipped the seed corpora ofFuzzParseScope(api/scope_test.go) andFuzzSanitize(internal/render/sanitize_test.go), and would skip anyTestI…unit test orExample: checks that could never fail. Found by the T776a sweep. Core ADR-0038 (which supersedes ADR-0022) already limits the name filter to chairlift.Makefile(test,ci) and.github/workflows/ci.yml:61: no name filter. Every integration test already sits in a file with//go:build integration, so unit runs do not compile it. Integration targets keep their-tags integration -run ….internal/repocheck/testfilter_test.goreplacestestnames_test.go(the obsoleteTestIreservation).TestUnitRunsFilterNoTestNamesreads the Makefile (continuation lines joined) and every workflow's parsedrun:values, splits them into commands (outside quotes;#comments dropped), and fails on anygo testrun without theintegrationtag (the last-tagswins) that has-runor-skip. A run counts only at a command's start (afterVAR=valueand$(XVFB)-style wrappers), and only scripts that run are searched again ($(IN_NSL) '…',sh -lc '…'), soecho 'go test …'is text. It fails if it finds nogo testrun at all. Table tests cover the matcher (old lines, compound commands,$(GO) test, tag forms, comments, echo, wrappers) and the run counter.docs/README.md,docs/org-adrs.md,AGENTS.md,docs/tasks/EXECUTOR.md.TestFileRefusesReadableFilewrote its file with0o644throughos.WriteFile, which applies the umask. Under umask 077 the file was 0600 and the test failed locally (CI's umask 022 hid it). It now sets the mode withos.Chmod.How we know it works
Makefileandci.ymlrestored (git stash), the guard fails:go test -v -run '^Test[^I]' ./api/ ./internal/render/runs 0 fuzz targets;go test -v ./api/ ./internal/render/runsFuzzParseScopeandFuzzSanitizewith their seeds, and they pass.TestFileRefusesReadableFilefails on main under umask 077 (Get on a 0644 file = <nil>) and passes with the fix, under 077 and 022.make checkpasses (umask 077).What it must not break
Race detectorkeeps its name; only itsrun:line changes).make vault-it,sync-sim,m3-evidence,m4-evidence,porter-evidence, …) keep their tags and-runselectors.Coder:
github-copilot/mai-code-2-flash; the umask fix and review edits by Irulan.Cross-review
Reviewer
openai/gpt-6.1-sol; codergithub-copilot/mai-code-2-flash, with the matcher's later rewrites by Irulan (Claude). 1 review + 3 re-reviews (the full budget):fe297c0: Not ready. A1 (multi-line workflowrun: |blocks missed), A2 (commands not analysed separately;$(GO) test; tag forms), A3 (missing ADR-0035 back-links). All accepted and fixed.be64f67: A1, A3 resolved; A-R1 (an inline comment could exempt a run;echo go testcounted), A-R2 (-tags="a b"). Accepted and fixed.f3f83e9: A-R2 resolved; A-R3 (quoted echo text searched as a script). Accepted and fixed.ee9309c: Ready, Blocking: none. Limit noted by the reviewer: the matcher supports the stated command forms; it is not a complete shell interpreter.