Commit 98974c8
committed
osint: fix p1 synth_codebook temp-path race (codex P2 #624)
Both tests in p1_distance_identity run concurrently under the parallel harness
and each removes its codebook file after loading; the pid+len-only temp path
collided, so one test could truncate the other's load mid-read (intermittent
load_binary failure). Add a per-call AtomicU64 sequence to the filename so each
call gets a unique path. Deterministic content unchanged; 2 tests still green.
Addresses codex review comment on PR #624.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 20b5d0d commit 98974c8
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | | - | |
| 61 | + | |
57 | 62 | | |
| 63 | + | |
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
| |||
0 commit comments