Repository navigation
test(pending): the contract tests' omp stand-ins load no integration, so herdr keeps their state reports - #3644
Conversation
… so herdr keeps their state reports Since #3624 every omp stand-in reported a herdr:omp session, after which herdr drops the manual state report state("idle") makes about half the time (7 of 15 on the isolated herdr; 0 of 15 without it): the queued message never saw its turn end. The stand-ins now start with --no-extensions, so no send waits for a report and none is made. The omp-start tests keep theirs.
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Merge passMerged head
One reviewer: test-only PR (one contract test file). Test-only PR ( It fixes the contract-test flake that reddened PR runs since #3624 (#3517, #3639, #3551, #3645: "delivers queued /model as /switch to omp" at about 8.7 s, with a neighbour failing after it). Cause, as the author measured on the isolated herdr: once a stand-in omp has reported a Checked by the merge pass on this head: the whole file six times through the check harness ( #3646 (lane ci-loop) fixes the same flake another way in the same function; it will conflict with this and is its lane's to rebase or close. |
Change
Since #3624,
server/pending-input.contract.test.tsfails often on PR runs (#3517, #3639, #3551 each needed a rerun). The failure is an omp case of "delivers queued $text as $expected to $agent" at about 8.6 to 8.9 s ("queued command was not recorded", then "pending frame timeout" instate("idle")), and once, the hookless-process test after it.The cause is the test setup #3624 added, not the queue's wait for a starting omp. For every omp stand-in, setup reported a
herdr:ompsession (so a send would not wait for an omp that loads the integration on a PC where it is installed). After that report, herdr drops the manualpane.report_agentstate report thatstate("idle")makes about half the time. The pane staysworking, the queue never sees its turn end, and the queued message is never typed.Measured on the isolated test herdr (a stand-in reported
working, the session report or not, thenidle; the status read for a second after):workingafteridleherdr:ompsession reportFix: setup's omp stand-ins (other than the two omp-start tests', which load the integration with
-e) start with--no-extensions. The bridge sees an omp that loads no integration, also on a PC where it is installed, so no send waits for a report, and no session is reported. The omp-start tests report their state before their session, and are unchanged.The hookless-process test that failed after the omp case did not fail in any run here once the omp case passed. Not proven beyond that.
Test-only change.
Validation
dd21d2155test file):bun run check run bun test --timeout 30000 ./server/pending-input.contract.test.ts -t "connection-owned pending input", 6 runs: 2 failed, each with an omp case at about 8.6 to 9 s and one Pending messages: a session replaced inside the same pane is not noticed when the agent reports no native session #540 neighbour.server/pending-input.contract.test.ts: 125 pass, 0 fail.bun run check fast: passed (unit 15,982 pass, 0 fail; typecheck and build ok).