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
One measured starting point on current main (25698366): WaitAsyncResultsToolTest.timeoutClampedToMax really waits for 120 seconds. During a local JDK 17 mvn -B -T1 -pl agentscope-harness -am clean verify, its Surefire testcase time was 120.014 s, while the complete Harness module took 4:10. A thread dump during the run showed the test thread in WaitAsyncResultsTool.doWaitForResults → Thread.sleep, not dependency resolution or a deadlock. This does not establish the cause of the entire 20-minute CI run, but it is a reproducible contributor to this module's time.
The fixture calls waitForResults(600, ctx()) with an empty inbox. Although its comment says we cannot wait 120 s in a unit test, the real clamped wait is what it executes. Also, nullTimeoutUsesDefault calls waitForResults(1, ctx()), so it does not currently test the null/default path.
I would start with a narrow timeout-test slice: keep the real wait loop and its guardrails, provide package-local clock/sleep control for deterministic tests, and cover 600 → 120, null → 60, the short caller budget and empty-wait accounting using virtual elapsed time. Keep a small real-time cancellation/deadline smoke test; do not lower production timeouts or just skip these assertions. The ongoing async-completion work in #2797 touches this class too, so I would coordinate/rebase that slice rather than mix it into a different feature.
I would not enable broad test parallelism as the first step: Harness has a global MemoryBackgroundTasks tracker drained by an auto-registered after-each extension, and shared-resource concurrency fixtures already exercise deliberate races. Those need an isolation audit before changing the execution policy. The local module verification passed; no CI speedup or patch is claimed yet.
Hi, I'd like to help with this (help-wanted). To scope it concretely before writing code, I'll profile the current CI test execution (module-level times from recent run logs) and propose the highest-leverage, low-risk wins first — e.g. parallel surefire where modules are independent, splitting the long-pole module's suite, trimming redundant coverage re-runs — as an incremental PR series rather than one big build change. Initial analysis comment coming shortly, then PRs.
Activity
CryoThrust commentedon Oct 13, 2026
One measured starting point on current
main(25698366):WaitAsyncResultsToolTest.timeoutClampedToMaxreally waits for 120 seconds. During a local JDK 17mvn -B -T1 -pl agentscope-harness -am clean verify, its Surefire testcase time was 120.014 s, while the complete Harness module took 4:10. A thread dump during the run showed the test thread inWaitAsyncResultsTool.doWaitForResults→Thread.sleep, not dependency resolution or a deadlock. This does not establish the cause of the entire 20-minute CI run, but it is a reproducible contributor to this module's time.The fixture calls
waitForResults(600, ctx())with an empty inbox. Although its comment says we cannot wait 120 s in a unit test, the real clamped wait is what it executes. Also,nullTimeoutUsesDefaultcallswaitForResults(1, ctx()), so it does not currently test the null/default path.I would start with a narrow timeout-test slice: keep the real wait loop and its guardrails, provide package-local clock/sleep control for deterministic tests, and cover 600 → 120, null → 60, the short caller budget and empty-wait accounting using virtual elapsed time. Keep a small real-time cancellation/deadline smoke test; do not lower production timeouts or just skip these assertions. The ongoing async-completion work in #2797 touches this class too, so I would coordinate/rebase that slice rather than mix it into a different feature.
I would not enable broad test parallelism as the first step: Harness has a global
MemoryBackgroundTaskstracker drained by an auto-registered after-each extension, and shared-resource concurrency fixtures already exercise deliberate races. Those need an isolation audit before changing the execution policy. The local module verification passed; no CI speedup or patch is claimed yet.ci(harness): make async wait timeout tests deterministic (#3529)
xzxiaoshan commentedon Oct 14, 2026
#3526 #3539
jujn commentedon Oct 14, 2026
其实也可以大规模简化下测试,目前来看至少可以删掉 1/3 的非必要测试
xzxiaoshan commentedon Oct 14, 2026
add #3553 #3543
aiyili commentedon Oct 28, 2026
Hi, I'd like to help with this (help-wanted). To scope it concretely before writing code, I'll profile the current CI test execution (module-level times from recent run logs) and propose the highest-leverage, low-risk wins first — e.g. parallel surefire where modules are independent, splitting the long-pole module's suite, trimming redundant coverage re-runs — as an incremental PR series rather than one big build change. Initial analysis comment coming shortly, then PRs.