[Bug]: SubagentRunIdChainTest times out intermittently on windows-latest (the 10s .block() deadline has only a ~1.5x margin)
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Read agentscope-harness/src/test/java/io/agentscope/harness/agent/SubagentRunIdChainTest.java, focusing on the .block(TIMEOUT) call in runParentCall and the 10-second TIMEOUT constant. Run SubagentRunIdChainTest on Windows and compare its runtime with the reported CI failures. Done when the intermittent timeout is addressed and the test passes reliably on windows-latest.
Written by the indexing model from the issue text.
Description
What happens
SubagentRunIdChainTest.subagentInheritsAutoGeneratedParentRunId intermittently fails on the build (windows-latest) job:
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 12.27 s <<< FAILURE! -- in io.agentscope.harness.agent.SubagentRunIdChainTest
[ERROR] io.agentscope.harness.agent.SubagentRunIdChainTest.subagentInheritsAutoGeneratedParentRunId -- Time elapsed: 10.45 s <<< ERROR!
[ERROR] SubagentRunIdChainTest.subagentInheritsAutoGeneratedParentRunId:191->runParentCall:177 » IllegalState Timeout on blocking read for 10000000000 NANOSECONDS
The failing line is .block(TIMEOUT) in runParentCall (SubagentRunIdChainTest.java:177), with
private static final Duration TIMEOUT = Duration.ofSeconds(10);
Observed runs:
- https://github.com/agentscope-ai/agentscope-java/actions/runs/38111350618 (push to
main,f799d128) - https://github.com/agentscope-ai/agentscope-java/actions/runs/38128099122 (this also turned PR #3504 red;
build (ubuntu-latest)passed on the same commit)
Why I think the deadline is the problem, not a hang
I checked out origin/main (707400eb9) and ran the class locally (JDK 17, Windows, idle machine):
SubagentRunIdChainTest Tests run: 2, Failures: 0, Time elapsed: 7.120 s
subagentInheritsExplicitlySuppliedChainRunId 6.477 s
subagentInheritsAutoGeneratedParentRunId 0.594 s
So normal runs of this class already reach 6.5 s against a 10 s ceiling — a 1.5x margin, with a first-test warm-up cost that varies run to run (in the failing CI run the sibling test took 1.823 s, i.e. the two tests swap which one is slow). Nothing in the test is stub-free: the model is a mock, so there is no network or model latency to blame.
I did not prove whether the extra time is JVM warm-up, thread-pool contention with other harness tests in the same JVM, or plain Windows-runner load — only that the constant leaves almost no headroom for any of them. If you would rather hunt the cost down than widen the margin, the measurement above is the starting point; I am not claiming the timeout is the root cause of the slowness, only that it is too close to the observed runtime.
Precedent in this repo
ChatSessionsTest hit the same class of problem and was fixed by widening the deadline with a comment, rather than by re-running:
// Two durable turns with streamed output can exceed 15 seconds on Windows runners.
var done = await(sessions, ..., Duration.ofSeconds(60));
agentscope-harness/src/test/java/io/agentscope/harness/agent/SubagentRunIdChainTest.java has no open PR touching it, and no existing issue mentions it.
- Dominant language
- Java
- Stars
- 6.1k
- Forks
- 1.5k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 145
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from agentscope-ai/agentscope-java
-
[Bug]: JevCodeReviewTest 在 Windows CI 上不稳定:2 秒预算在慢 runner 上超时Possibly taken @breezeFur claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agentscope-ai/agentscope-java#3807 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug]: ActionObservations.emitSafely swallows event-delivery exception (no message, no stack trace)Possibly taken @amyaxy claimed this 20 days ago. Openbug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
agentscope-ai/agentscope-java#3475 ·
Maintainers usually reply within 1 day
-
[Bug]:Redis 模式下 glob 和 ls 操作被本地索引误导,无法正确发现 Redis 中实际存储的记忆文件。May be free again A pull request for this issue was closed without being merged. Openarea/harness bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agentscope-ai/agentscope-java#3197 · 4 comments ·
Maintainers usually reply within 1 day
-
MemoryConsolidator 在 MEMORY.md 缺失或为空时,已有水位导致旧账本不参与重建Possibly taken @wzq-xzwj claimed this 51 days ago. Openarea/harness
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
agentscope-ai/agentscope-java#3090 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug]:HarnessAgent memory timezone errorPossibly taken @Coder-xiaosuo claimed this 49 days ago. Openarea/harness bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
agentscope-ai/agentscope-java#3088 · 3 comments ·
Maintainers usually reply within 1 day
All issues in agentscope-ai/agentscope-java
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
build
Difficulty 1/5 Under an hour Newbie friendliness 85/100
MetricsHub/metricshub-community#1472 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
IdentityArrayObjectSet iterator remove may throw ArrayIndexOutOfBoundsExceptionPossibly taken @jiteshkhatri11 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
javapathfinder/jpf-core#660 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day