From b50910fee5bafd5d0ba019270ad412a725431afb Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 11 Nov 2026 07:12:37 +0800 Subject: [PATCH] LESSONS: a new file's name is checked against the tree first (8fa91a852, 1c3056a2e) --- LESSONS.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/LESSONS.md b/LESSONS.md index 23a05ac79..aa63784f9 100644 --- a/LESSONS.md +++ b/LESSONS.md @@ -438,6 +438,16 @@ push.** "WIP", "TODO", "rewritten" or a template's placeholder. - Seen 1× (2026-11-11). +**A new file's name is checked against the tree before it is written.** +- 8fa91a852 (11-11) wrote its idle test to internal/agent/dsh_idle_test.go, + which already held 544b91ca8's streamIdleTimeoutMs tests, and they went + with it. 1c3056a2e put them back minutes later. ac2340d lost + three tests the same way. +- Before pushing, `git diff --stat` a "new" test file: it shows + insertions only. Deletions in a file you meant to create are someone + else's tests. +- Seen 1× (2026-11-11). + **A test that reads a dependency's source needs the dependency on disk.** - 884dbdb2's TestTrayMenuOpenFrameIsWails read Wails' source through `go list -m` Dir. CI's fresh module cache hasn't unpacked it, so main was