[Bug]: SubagentRunIdChainTest times out intermittently on windows-latest (the 10s .block() deadline has only a ~1.5x margin)
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
agentscope-harness/src/test/java/io/agentscope/harness/agent/SubagentRunIdChainTest.java を読み、runParentCall 内の .block(TIMEOUT) 呼び出しと 10 秒の TIMEOUT 定数に注目してください。Windows で SubagentRunIdChainTest を実行し、その実行時間を報告された CI 失敗と比較します。断続的なタイムアウトが対処され、テストが windows-latest で確実に通過したら完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Java
- スター
- 6.1k
- フォーク
- 1.5k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 145
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
agentscope-ai/agentscope-java のほかの issue
-
[Bug]: JevCodeReviewTest 在 Windows CI 上不稳定:2 秒预算在慢 runner 上超时対応中かも @breezeFur が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
agentscope-ai/agentscope-java#3807 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: ActionObservations.emitSafely swallows event-delivery exception (no message, no stack trace)対応中かも @amyaxy が 20 日前に担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
agentscope-ai/agentscope-java#3475 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]:Redis 模式下 glob 和 ls 操作被本地索引误导,无法正确发现 Redis 中实际存储的记忆文件。再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンarea/harness bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
agentscope-ai/agentscope-java#3197 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
MemoryConsolidator 在 MEMORY.md 缺失或为空时,已有水位导致旧账本不参与重建対応中かも @wzq-xzwj が 50 日前に担当しました。 オープンarea/harness
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
agentscope-ai/agentscope-java#3090 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]:HarnessAgent memory timezone error対応中かも @Coder-xiaosuo が 49 日前に担当しました。 オープンarea/harness bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
agentscope-ai/agentscope-java#3088 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
agentscope-ai/agentscope-java の issue をすべて見る
似ている issue
-
status: waiting-for-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
spring-projects/spring-framework#37614 ·
メンテナーはふだん 1 日以内に返信
-
azure-spring azure-spring-aad Client
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Azure/azure-sdk-for-java#51046 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
helm-knative-apply.sh fails with Helm 4対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea: triage theme: undefined
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
jhipster/generator-jhipster#35895 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
oracle/graalvm-reachability-metadata#11659 ·
メンテナーはふだん 1 日以内に返信