Remove wall-clock flakes from the peer evidence CI tests #165
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp#165
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Two wall-clock bounds in
tests/test_peer_evidence.pyfail CI under runner load. In both cases the PR did not touch the code under test.tests/test_peer_evidence.py:831asserts health p99 ≤ 500 ms during a concurrent evidence load. On the shared Woodpecker runner it measured 757.95 ms. That failed PR #164's validation (pipeline 22), although the PR changed docs only. The same commit's parent passed onmain(pipeline 21), so the failure depends on runner load.test_full_cap_pathological_bodies_finish_and_cancel_under_one_second[forward](tests/test_peer_evidence.py:423) asserts thatevidence.signatures_boundedfinishes a 512,000-byte pathological body in under 1 s. On the runner it took 1.055 s. That failed PR #168's validation (pipeline 27); PR #168 does not touchevidence.py. The next pipeline (28) passed, and the six parametrized cases passed 5 of 5 runs onvoyager, about 1.9 s per run of all six.Change
:831: keep the concurrent loop and its correctness assertions: valid responses, no non-200 health response, sample counts met. Remove the latency bound from the CI test. Latency budgets are measured on the host by the benchmark scripts, as ADR 0012 rule 14 and the #160 gate ruled forscripts/bench_feed.py.:423: this bound guards bounded work (#151), not latency, so do not remove it. A regression to super-linear work on a full-cap body takes far longer than a few seconds. Raise both one-second bounds in the test (the finish bound and the cancel bound) to a margin that runner load cannot reach, for example 5 s, and keep every other assertion. Do the same for every parametrized shape.Acceptance
test_peer_evidence.pyasserts no latency bound at:831.:423test keeps a finish bound and a cancel bound, each with a margin of at least 5× the host time.make checkpasses.Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Remove the latency bound from the peer evidence CI load testto Remove wall-clock flakes from the peer evidence CI tests⏸ SVD architect gate: dev/mail-mind-mcp#165 remove-wall-clock-flakes-from-the-peer-evidence-ci-tests
Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity
additive· dispatch effortlowRun:
20261103T214715Z-dff7e21dHeld because: CLEAN but 3 open risk(s) (2 verification · 1 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
uv run python3 -m pytest -q --durations=0 tests/test_peer_evidence.py -k pathologicaland confirm the slowest per-shape duration is <= 1 s (so 5 s >= 5x), and record it in the PR. [verification]make check(including the network audit step) could not run in the sandbox. Check: the dispatch agent runsmake checkon the host and the Woodpecker validation pipeline is green on the PR. [verification]Change: Change one file, tests/test_peer_evidence.py. (1) In test_i02_writer_evidence_and_health_load (:760-841), make the I02 test look like tests/test_peer_changes.py:517-547 test_i02_feed_and_health_smoke: change :840 to
assert report["non_200"] == 0, which drops the health p99 <= 500 ms term. Keep the loops, the correctness asserts (:797, :838-839), the RSS bound (:841) and theprint("I02 " + json.dumps(report))at :837. Rewrite the :761 docstring to say latency budgets are measured on the host (ADR 0012 rule 14), and give the host reproduction commanduv run python3 -m pytest -s tests/test_peer_evidence.py::test_i02_writer_evidence_and_health_load. (2) Add a module constant BOUNDED_WORK_SECONDS = 5 after ARGS (:31), with a comment saying it guards bounded work (#151), not latency. In the pathological-body test (:412-449), replace with that constant: the finish bound (:432), the cancel bound (:449), and future.result(timeout=1) at :448. :448 is required because the worker runs a full trim_quoted pass after release (evidence.py:77-79), so timeout=1 is the real cancel deadline. Also replace the entered.wait(1) and release.wait(1) synchronization waits (:443, :436). Keep every other assertion and all six shapes. Rename the test to test_full_cap_pathological_bodies_finish_and_cancel_bounded; it has no other in-repo references. The issue cites :831 and :423, but the code is now at :840 and :413/:432/:449 (line drift); target the tests by name.Files:
tests/test_peer_evidence.pyDecision: accept the 3 open risk(s) above and dispatch this spec (
svd:go), or park (svd:skip) / re-spec (svd:respec)?Your call (when this issue is held at the gate via
svd:hold):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-03-remove-wall-clock-flakes-from-the-peer-evidence-ci-tests.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-03-remove-wall-clock-flakes-from-the-peer-evidence-ci-tests.mdspec-verify-dispatch Half B for dev/mail-mind-mcp#165 remove-wall-clock-flakes-from-the-peer-evidence-ci-tests completed integration verify.
790c89673bcodex-svd ship --run-id 20261103T220218Z-43ed258b --confirm-merge)