Skip to content

Keep the freshness walks and the probe gate test steady under load (N115) - #202

Merged
nevermemo merged 2 commits into
mainfrom
test/n115-freshness-load
Oct 22, 2026
Merged

nevermemo merged 2 commits into
mainfrom
test/n115-freshness-load

Conversation

@nevermemo

Copy link
Copy Markdown
Owner

N115: three Freshness cases (graph.scip) and probe_map::cargo_gets_only_the_budget_the_gate_wait_left failed under load. Test-only; no product change.

  • Freshness walks: World::run passes limits with a 10-minute walk deadline (WALK_DEADLINE_MS). The config keeps the 60 s that validate accepts. The old log showed ripgrep expansions near 10 s eating the 60 s budget. assert_no_timeout stays, and with the deadline mutated to 40 ms it fires in all three named cases.
  • Probe gate test: no wall-clock margin. It waits until the probe is parked on the gate (sleep counter), holds 1 s, and asserts cargo's timeout ≤ budget − measured hold. Mutating left.min(..) to timeout.min(..) makes it fail.

Local: probe_map 22 passed; --suite Freshness 15/15 twice; fmt and clippy clean. Narrow slice: CI test (windows-latest) is its Full gate (d520). The fix was not reproduced under controlled load; it rests on the log and the code.

🤖 Generated with Claude Code

nevermemo and others added 2 commits October 22, 2026 15:23
…115)

The freshness cases lift the deadline of their own walks to ten minutes
(on the limits passed to the call; the config keeps the 60 s `validate`
accepts), so a loaded machine cannot cut a map into an empty answer. A
map that still runs out of time fails `assert_no_timeout`.

`cargo_gets_only_the_budget_the_gate_wait_left` waits on the gate's
sleep counter and asserts cargo's timeout against the measured hold,
with no wall-clock margin. Mutating `left.min(..)` to `timeout.min(..)`
makes it fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nevermemo
nevermemo merged commit b95e7b3 into main Oct 22, 2026
8 checks passed
@nevermemo
nevermemo deleted the test/n115-freshness-load branch October 23, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant