Skip to content

fix(copaw): restore static alias fallback in k8s#960

Open
wang-zhengxin wants to merge 2 commits into
agentscope-ai:mainfrom
wang-zhengxin:fix/fix-copaw-k8s-alias
Open

fix(copaw): restore static alias fallback in k8s#960
wang-zhengxin wants to merge 2 commits into
agentscope-ai:mainfrom
wang-zhengxin:fix/fix-copaw-k8s-alias

Conversation

@wang-zhengxin

Copy link
Copy Markdown

Summary

Fixes #957.

CoPaw workers running in self-hosted k8s deployments can have HICLAW_RUNTIME=k8s without an injected MC_HOST_hiclaw. In that case the worker still needs to configure the MinIO mc alias from the static credentials provided by the controller. This change only skips static alias setup when MC_HOST_hiclaw is already present, preserving the cloud STS path while restoring local k8s startup mirroring.

Validation

env UV_CACHE_DIR=/private/tmp/agentteams-uv-cache PYTHONPATH=src uv run --no-project --with pytest --with anyio pytest tests/test_sync.py tests/test_worker_sync.py -q

Result: 18 passed.

@github-actions

Copy link
Copy Markdown
Contributor

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

Commit: 4e4d409
Workflow run: #1384

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=copaw / wk=hermes)

Commit: 4e4d409
Workflow run: #1384

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

📊 CI Metrics Report

Summary

Metric Current Baseline Change
LLM Calls 71 81 -10 ↓ -12.3%
Input Tokens 2050438 2803871 -753433 ↓ -26.9%
Output Tokens 13090 16791 -3701 ↓ -22.0%
Total Tokens 2063528 2820662 -757134 ↓ -26.8%

By Role

Role Metric Current Baseline Change
🧠 Manager LLM Calls 59 68 -9 ↓ -13.2%
Input Tokens 1768303 2502214 -733911 ↓ -29.3%
Output Tokens 10815 13725 -2910 ↓ -21.2%
Total Tokens 1779118 2515939 -736821 ↓ -29.3%
🔧 Workers LLM Calls 12 13 -1 ↓ -7.7%
Input Tokens 282135 301657 -19522 ↓ -6.5%
Output Tokens 2275 3066 -791 ↓ -25.8%
Total Tokens 284410 304723 -20313 ↓ -6.7%

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% 114588 0 472 0 -243562 ↓ -67.9% ✅ improved
03-assign-task 15 5 +5 ↑ +33.3% 348228 114026 1963 892 -8547 ↓ -1.8% ⚠️ regressed
04-human-intervene 13 0 0 — 0% 358048 0 1995 0 -72955 ↓ -16.8% — unchanged
05-heartbeat 7 0 0 — 0% 231102 0 1675 0 -42475 ↓ -15.4% — unchanged
06-multi-worker 20 7 -7 ↓ -20.6% 716337 168109 4710 1383 -389595 ↓ -30.4% ✅ improved

Trends

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


Generated by HiClaw CI on 2026-06-27 14:07:00 UTC


📦 Download 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.

在k8s环境下hiclaw-controller:v1.1.1部署hiclaw-copaw-worker:v1.1.2启动失败

1 participant