agent: a new agent named nowhere in the Library fails internal/agent's tests
TestEveryAgentInLibrary (internal/library) went red on main for a new agent four times:399010befand68cb92e8e(11-10),7e8214d60(11-12), andeffdd1bebtoday after00b2c11a6(Open Code Review). A change that adds an agent runs internal/agent, and the guard is in another package, so each was found after the push. TestEveryAgentNamedForTheLibrary reads internal/library's targets.go and every_agent_test.go (library imports agent, so it reads the files) and fails when an agent on this machine's list is in neither a targetOf case nor noLibrary. The library test still checks a target has something in it. Same shape as internal/gui's TestEveryRouteIsNamedForTheCLI. LESSONS.md: the route/setting guard lesson now covers agents, seen a third day. code-standards criterion 3 names both twins. Run (mote, ateffdd1beb+ this change): - go test -count=1 -timeout 45m ./internal/agent ./internal/library: ok - broken by hand (open-code-review's noLibrary line removed): red, "open-code-review (Open Code Review) isn't named in internal/library"; restored - win-run and wsl-run, -run TestEveryAgentNamedForTheLibrary: ok - gofmt -l: clean Not run: the full ./... suite (test-only change in one package).
This commit is contained in:
@@ -74,6 +74,10 @@ listed as not run, never left out.
|
||||
test that pinned the old text. On 10-13 four commits ran chosen
|
||||
packages and turned main red this way: 6fa3109ea (494609866),
|
||||
43d8a5633 (24146c031), 5617281f5 and cdb7b5ff7 (c6de0d2a5).
|
||||
A guard that keeps being missed gets a twin in the package the change
|
||||
runs: internal/gui's TestEveryRouteIsNamedForTheCLI for a new route,
|
||||
internal/agent's TestEveryAgentNamedForTheLibrary for a new agent
|
||||
(red on main four times before it, last at 00b2c11a6, 11-17).
|
||||
4. **GUI tests in both engines.** A change to `internal/gui/assets` runs the
|
||||
Playwright tests it touches in Chromium and WebKit (`make test-ui`, or
|
||||
`BROWSER=webkit node --test …`). The suite must also pass in Chinese,
|
||||
|
||||
Reference in New Issue
Block a user