You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "qianzhu18 (via GitHub)" <gi...@apache.org> on 2026/09/01 21:12:27 UTC
[I] test(runtime-host): wait helpers poll on fixed tick budgets and can flake under load [maka]
qianzhu18 opened a new issue, #4510:
URL: https://github.com/apache/maka/issues/4510
## Problem
Following the same failure class as #4383 (fixed for `packages/runtime` in #4387): several `packages/runtime-host` test helpers poll for an asynchronous condition with a fixed count of macrotask ticks instead of a wall-clock deadline. The tick count is not a time budget — under a loaded CI runner the underlying work (turn settlement over UDS connections, agent-graph wake-run persistence, peer mesh roster propagation, provider request capture persistence) can span more ticks than the loop allows, so the helper gives up before the condition is genuinely false and the test reports a failure that cannot be distinguished from a real regression.
## Inventory
Fixed-tick polling loops in `packages/runtime-host/src/__tests__`:
- `execution-model-composition.test.ts` — the graph-wake loop (400 ticks), `startTurn` (200), `waitForTerminal` (200), `waitForUsage` (100), `waitForCanonicalAttempts` (100), `waitForCaptureArtifacts` (100), `waitForAutomaticMemoryRequestsToSettle` (100)
- `plan-two-client-uds.test.ts` — `waitForTerminal` (100), polling `turn.query` over a real UDS connection
- `runtime-policy-coordinator.test.ts` — inline turn-settlement loop (100 × 20ms)
- `peer-mesh.test.ts` — roster propagation loop (20 × 10ms; a 200ms budget over real serve/join networking)
- `peer-native.test.ts` — `waitForRequestCount` (10 immediates)
The in-memory `setImmediate` helpers (`waitForPending` in `client-capability-admission-integration.test.ts`, `waitForGoalRun` in `goal-root-authority.test.ts`) are intentionally out of scope: they poll in-memory facades where a tick budget is effectively unbounded.
## Desired outcome
Convert the listed loops to the shared `waitFor` primitive from `@maka/core/test-only/async-primitives` with an explicit wall-clock deadline (5s) and a small poll interval, keeping each helper's failure message. Production behavior is unchanged; this is test-infrastructure only.
---
Automated disclosure: this issue was drafted by Claude at @qianzhu18's direction. @qianzhu18 remains the human contributor of record.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [I] test(runtime-host): wait helpers poll on fixed tick budgets and can flake under load [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han commented on issue #4510:
URL: https://github.com/apache/maka/issues/4510#issuecomment-5717640146
The inventory here was converted in #4566 (`0356d4959`): the listed helpers now use `waitFor` from `@maka/core/test-only/async-primitives` with explicit wall-clock deadlines, for example `packages/runtime-host/src/__tests__/execution-model-composition.test.ts:2398` and `:3152`, and `peer-mesh.test.ts:284`. No fixed-tick loops from the list remain on `main`. Closing as done; #4511 covers the same work and can be closed with it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [I] test(runtime-host): wait helpers poll on fixed tick budgets and can flake under load [maka]
Posted by "ggbdpq (via GitHub)" <gi...@apache.org>.
ggbdpq commented on issue #4510:
URL: https://github.com/apache/maka/issues/4510#issuecomment-5510675352
take
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [I] test(runtime-host): wait helpers poll on fixed tick budgets and can flake under load [maka]
Posted by "qianzhu18 (via GitHub)" <gi...@apache.org>.
qianzhu18 commented on issue #4510:
URL: https://github.com/apache/maka/issues/4510#issuecomment-5511001303
Heads-up: this is already implemented in #4511 (opened alongside this issue, covering the full inventory listed here). @ggbdpq sorry for the crossed wires — no remaining work on this one unless review surfaces gaps.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [I] test(runtime-host): wait helpers poll on fixed tick budgets and can flake under load [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han closed issue #4510: test(runtime-host): wait helpers poll on fixed tick budgets and can flake under load
URL: https://github.com/apache/maka/issues/4510
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org