From 4aa64500f7f723f9e6de60430c80cc92364bfedb Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 15 Nov 2026 04:39:06 +0800 Subject: [PATCH] lessons: a new value in a looped-over list meets every test that loops it 6256d9956 added "account" to access.Periods and left TestKeyLimitReservationsStayInTheirWindow red in internal/gateway (#6706, fixed in 2f5e75515). --- LESSONS.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/LESSONS.md b/LESSONS.md index 14ab8ce49..5040a3414 100644 --- a/LESSONS.md +++ b/LESSONS.md @@ -1501,6 +1501,15 @@ each one. pushed pair first ran together in the review (go test ./internal/usage ./internal/usageapi at 93762f968: ok). Run the changed package whole, at the head being pushed. + - A new value in a list that tests loop over meets every one of + them. 6256d9956 added "account" to access.Periods and ran + internal/access, budget, provider, cli and gui, but not + internal/gateway, where TestKeyLimitReservationsStayInTheirWindow + runs every period and went red (#6706, 2f5e75515). Before + pushing, grep the tests for the list's name (`access.Periods`) + and run each package that has one. The review's own first run + of it was piped through tail and lost which package failed; the + rerun went to a log file. - **Done right on 10-17.** The retire stack (0f1666b38 to de671719a) diffed staticcheck's U1000 against its base for dead code, b98f906b1 was red on the old code for an own-account gap, and 8 subscriptions