test: make 14-git-collab worker setup deterministic#1007
Open
RerankerGuo wants to merge 2 commits into
Open
Conversation
Contributor
📊 CI Metrics ReportSummary
By Role
Per-Test Breakdown
Trends✅ 2 test(s) improved (fewer LLM calls) Generated by HiClaw CI on 2026-07-09 06:34:28 UTC |
Pre-create the 3 workers (alice, bob, charlie) via hiclaw apply worker and the shared project via create-project.sh + immediate meta.json activation + MinIO sync, before sending the 4-phase task to Manager. Manager now focuses on phase coordination only — the worker + project setup steps that previously stalled on Manager's tool-guard approval prompt (jq | mv | cat on meta.json) are now in the test runner and never enter the LLM control loop. Mirrors the fix in agentscope-ai#985 for test-06-multi-worker.sh (bob creation flake). Both fixes isolate LLM-driven coordination from infrastructure setup so the test measures coordination quality, not LLM timing. Fixes the SHARD_B copaw/hermes test-14 failure seen on agentscope-ai#984 (run 28926397804, job 85816940745), where Manager hung for 30 minutes on a tool-guard approval prompt while trying to update meta.json status. Refs: agentscope-ai#984
v1 over-prescribed by pre-creating the project room and instructing Manager not to call create-project.sh. That broke Manager's natural workflow — it lost its entry point for the rest of the coordination and ended up writing ad-hoc Matrix HTTP scripts (run 28948704338). copaw/hermes made Manager do 136 LLM calls + alice 54 calls + bob/charlie 0 (phases 2-4 never started). v2 only pre-creates the 3 workers (the actual flake source on SHARD_A). Manager still walks through create-project.sh + YOLO Step 1d (meta.json active transition) + 4-phase coordination as the workflow intends — this test measures that flow, not LLM timing on worker creation. Refs: agentscope-ai#984
2425c83 to
8626775
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
alice,bob, andcharliewithhiclaw apply workerbefore the first LLM interaction.AGENTTEAMS_DEFAULT_WORKER_RUNTIMEafter the AgentTeams contract rename.Root cause
Test 14 previously depended on the Manager LLM to provision three workers before it could exercise git collaboration. Provisioning latency and tool-guard prompts consumed the integration-test deadline before the phase workflow began.
Verification
bash -n tests/test-14-git-collab.shFiles
tests/test-14-git-collab.shchangelog/current.mdRefs: #984