diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 21:21:59 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-21 00:59:00 -0300 |
| commit | f98c3dd97bdfdbab8898bd42f53e31bd323e9078 (patch) | |
| tree | 0789eb60164e47c8b347bfc8c3e1d1017c4e09cc | |
| parent | f8b3deb973fefeacf720d055b8e319425d7b846a (diff) | |
| download | pardes-f98c3dd97bdfdbab8898bd42f53e31bd323e9078.tar.gz pardes-f98c3dd97bdfdbab8898bd42f53e31bd323e9078.zip | |
soak: the witness's judgement streams to stderr: Witness.judge wrote through File.stderr().writer, which Zig 0.17 makes positional from offset 0, so with stderr a log file each judgement wrote over the run's first lines (every screen-state log began with the last seed's witness and lacked the run's header; scrB-3's reason for rc=1 was lost so, and the earlier round's scr-3 'no table' likely too); writerStreaming
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| -rw-r--r-- | test/replicas.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/replicas.zig b/test/replicas.zig index 2a486db8..a1da2f8d 100644 --- a/test/replicas.zig +++ b/test/replicas.zig @@ -1010,7 +1010,9 @@ const Witness = struct { pardes.syntax.held_trees = trees; } var out_buf: [1 << 14]u8 = undefined; - var stderr = std.Io.File.stderr().writer(s.l.peers.io, &out_buf); + // Streaming: a positional writer starts at offset 0, and over a log + // file each judgement wrote over the run's first lines. + var stderr = std.Io.File.stderr().writerStreaming(s.l.peers.io, &out_buf); const w = &stderr.interface; defer w.flush() catch {}; const tag = .{ s.r.seed, s.r.rtt_ms }; |
