From b119f87771b71d98f2552434e8d8f9725d129abb Mon Sep 17 00:00:00 2001 From: yetone Date: Thu, 29 Oct 2026 00:20:20 +0800 Subject: [PATCH] LESSONS: a change to when a value appears re-reads every wait on it (3dd59428e) --- LESSONS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/LESSONS.md b/LESSONS.md index da4825976..cdfe42d53 100644 --- a/LESSONS.md +++ b/LESSONS.md @@ -260,6 +260,12 @@ writes it.** - Before adding a list or status route, find who writes each field it reads and under which lock. Run its test under -race with a delay injected into the writer. +- The fix moved when the pid shows, and the test waiting on it wasn't + re-read: TestClaudeRunsNamesEachProcess took a listing, then read the + fake's hang.pid, and could end on a list made before the tree was set + (PID 0), red on CI at 5bfd76cd8. 3dd59428e waits for a run listed + with that pid; red 3 of 3 with a sleep injected in the listing before. + A change to when a value appears re-reads every wait on it. - Seen 1× (2026-10-28). **A bit or enum value has one owner.**