You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address two CodeRabbit nits on PR NVIDIA#6320.
1. Test titles missing local issue reference (Major, quick win). Add
the required `(NVIDIA#3768)` suffix to the four new tests so they match
the repo's test-title-style contract.
2. Deadline-driven proof (Major, heavy lift). The prior timeout test
used fast-failing probes that only advanced the clock via the
sleep mock. Under that setup, a hidden `maxAttempts: recoveryPollCount`
would have produced the same probe/sleep counts as a pure deadline,
so the test could not tell them apart.
Redesign the timeout test to make probes ALSO advance the virtual
clock: NEMOCLAW_HEALTH_POLL_COUNT=10, NEMOCLAW_HEALTH_POLL_INTERVAL=1
with each probe consuming 1s of virtual time. Under the pure-deadline
implementation the loop runs ~5 iterations before the 10s budget is
exhausted (probes and sleeps consume 2s per iteration cumulatively).
Under a hidden attempt cap of 10 the loop would run exactly 10
iterations. The new assertion `probeCount < 10` therefore only
passes when the deadline (not an attempt cap) terminates the loop,
which is the invariant NVIDIA#3768 asks for.
Expose `advance(seconds)` on the makeVirtualClock helper so a mocked
subprocess-probe implementation can move time forward while keeping
the sleeper as the primary in-loop clock driver.
11/11 tests still pass. Biome and repo checks clean.
Signed-off-by: Charan Jagwani <cjagwani@nvidia.com>
0 commit comments