From fdf42299e9fb0c01daff6bd958f4196eabfde6ad Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 15 Nov 2026 03:01:42 +0800 Subject: [PATCH] lessons: a -run of new tests is not a run of the package d50ae6fcb ran only its two new tests in internal/usage, and 93762f968 recorded a run from before it. The pair was run together at 93762f968 on mote: go test ./internal/usage ./internal/usageapi ok. --- LESSONS.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/LESSONS.md b/LESSONS.md index 1e66a90e5..14ab8ce49 100644 --- a/LESSONS.md +++ b/LESSONS.md @@ -1494,6 +1494,13 @@ each one. earlier issues for the same test (#5946, #6359, #6516, #6202) stayed open after their fixes. Close an issue in the commit that fixes it (`Fixes #N`). + - A `-run` of the new tests is not a run of the package. d50ae6fcb + changed three files in internal/usage and ran only its two new + tests. 93762f968, the next commit, changed the same package, and + its record is from a run at 442964d70, before d50ae6fcb. Their + 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. - **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