Repository navigation
Commit 5fb8f07
nix/tcl: a deeper Node, a Pair class and one wait helper
- homa::lc::waitFor ms interval condition replaces pause and the three
polling loops (start, serial, exit): it checks an expression in the
caller's scope, sleeps, and handles pending events, until it is true or
the deadline passes. No shared flag, so nested waits each keep their own
deadline.
- Node phase id name script does the shell check and then Table phase;
it replaces the need-then-phase pairs in dmesg, shutdown, the lifecycle
smoke and cycles phases, and the pair driver.
- Node takes its log directory, vm and timeouts as separate arguments,
which removes the dict merge at both call sites.
- bin/pair-lifecycle.tcl is a Pair class. traffic splits into Measure,
Snapshot and report trafficDetail (pure, table-tested); the netem and
OnBoth details come from node1 by name.
New tables: waitFor, waitForNested (wait.test), nodePhase (node.test),
trafficDetail (report.test). Phase lines and HOMA_* output are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent db3e193 commit 5fb8f07
8 files changed
Lines changed: 735 additions & 405 deletions
File tree
- nix/microvms/tcl
- bin
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
53 | 49 | | |
| 50 | + | |
54 | 51 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
75 | 70 | | |
76 | 71 | | |
77 | 72 | | |
| |||
80 | 75 | | |
81 | 76 | | |
82 | 77 | | |
| 78 | + | |
83 | 79 | | |
84 | 80 | | |
85 | 81 | | |
| |||
0 commit comments