Skip to content

test: make 14-git-collab worker setup deterministic#1007

Open
RerankerGuo wants to merge 2 commits into
agentscope-ai:mainfrom
RerankerGuo:fix/test-14-deterministic-setup
Open

test: make 14-git-collab worker setup deterministic#1007
RerankerGuo wants to merge 2 commits into
agentscope-ai:mainfrom
RerankerGuo:fix/test-14-deterministic-setup

Conversation

@RerankerGuo

@RerankerGuo RerankerGuo commented Jul 8, 2026

Copy link
Copy Markdown

Summary

  • Pre-create alice, bob, and charlie with hiclaw apply worker before the first LLM interaction.
  • Keep project-room creation in the normal Manager project-management workflow.
  • Read the default runtime from AGENTTEAMS_DEFAULT_WORKER_RUNTIME after the AgentTeams contract rename.
  • Shorten the task prompt to focus the Manager on the four collaboration phases.

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.sh
  • The test still requires the Manager to create the project room and coordinate every phase in order.

Files

  • tests/test-14-git-collab.sh
  • changelog/current.md

Refs: #984

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction-2 / mgr=copaw / wk=hermes)

Commit: 8626775
Workflow run: #1654

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction-2 / mgr=openclaw / wk=openclaw)

Commit: 8626775
Workflow run: #1654

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction / mgr=copaw / wk=copaw)

Commit: 8626775
Workflow run: #1654

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

📊 CI Metrics Report

Summary

Metric Current Baseline Change
LLM Calls 85 81 +4 ↑ +4.9%
Input Tokens 2473744 2803871 -330127 ↓ -11.8%
Output Tokens 14824 16791 -1967 ↓ -11.7%
Total Tokens 2488568 2820662 -332094 ↓ -11.8%

By Role

Role Metric Current Baseline Change
🧠 Manager LLM Calls 71 68 +3 ↑ +4.4%
Input Tokens 2131763 2502214 -370451 ↓ -14.8%
Output Tokens 12112 13725 -1613 ↓ -11.8%
Total Tokens 2143875 2515939 -372064 ↓ -14.8%
🔧 Workers LLM Calls 14 13 +1 ↑ +7.7%
Input Tokens 341981 301657 +40324 ↑ +13.4%
Output Tokens 2712 3066 -354 ↓ -11.5%
Total Tokens 344693 304723 +39970 ↑ +13.1%

Per-Test Breakdown

Test Mgr Calls Wkr Calls Δ Calls Mgr In Wkr In Mgr Out Wkr Out Δ Tokens Trend
02-create-worker 4 0 -8 ↓ -66.7% 102875 0 485 0 -255262 ↓ -71.2% ✅ improved
03-assign-task 10 7 +2 ↑ +13.3% 250804 168506 1446 1100 -51800 ↓ -10.9% ⚠️ regressed
04-human-intervene 17 0 +4 ↑ +30.8% 368149 0 2010 0 -62839 ↓ -14.5% ⚠️ regressed
05-heartbeat 6 0 -1 ↓ -14.3% 169175 0 1145 0 -104932 ↓ -38.1% ✅ improved
06-multi-worker 34 7 +7 ↑ +20.6% 1240760 173475 7026 1612 +142739 ↑ +11.2% ⚠️ regressed

Trends

2 test(s) improved (fewer LLM calls)
⚠️ 3 test(s) regressed (more LLM calls)


Generated by HiClaw CI on 2026-07-09 06:34:28 UTC


📦 Download debug logs & test artifacts

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction-2 / mgr=copaw / wk=copaw)

Commit: 8626775
Workflow run: #1654

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

RerankerGuo and others added 2 commits July 14, 2026 19:20
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
@RerankerGuo RerankerGuo force-pushed the fix/test-14-deterministic-setup branch from 2425c83 to 8626775 Compare July 14, 2026 11:21
@RerankerGuo RerankerGuo changed the title test: make 14-git-collab worker/project setup deterministic test: make 14-git-collab worker setup deterministic Jul 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction / mgr=copaw / wk=hermes)

Commit: 8626775
Workflow run: #1654

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (controller-cr-2 / mgr=copaw / wk=copaw)

Commit: 8626775
Workflow run: #1654

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (controller-cr / mgr=openclaw / wk=openclaw)

Commit: 8626775
Workflow run: #1654

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (controller-cr / mgr=copaw / wk=hermes)

Commit: 8626775
Workflow run: #1654

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (controller-cr / mgr=copaw / wk=copaw)

Commit: 8626775
Workflow run: #1654

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

@github-actions

Copy link
Copy Markdown
Contributor

❌ Integration Tests Failed (llm-interaction / mgr=openclaw / wk=openclaw)

Commit: 8626775
Workflow run: #1654

Test Results
No test output captured.
Debug Log (tail)
No debug logs available.

📦 Download full debug logs & test artifacts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant