fix/structured-runner-lifecycle-logs
main
log/slog
GOCACHE=/tmp/gitea-dynamic-runner-go-cache go test ./...
GOCACHE=/tmp/gitea-dynamic-runner-go-cache go vet ./...
git diff --check
No dependencies set.
The note is not visible to the blocked user.
背景\n\nVM assignment 被 ACK 后缺少可解释的生命周期日志,无法判断 backend 创建、身份绑定和 runner claim 的实际路径。\n\n## 变更\n\n- 使用
log/slogJSON handler 输出结构化日志\n- 记录 assignment 接收、容量、backend handoff、claim、ACK/NAK 事件\n- 记录 executor 查找、创建、身份目标等待和绑定事件\n- 错误日志统一附带 component/backend 字段\n- 不记录 API key、capability、任务 payload 或 SVID\n\n## 验证\n\n-GOCACHE=/tmp/gitea-dynamic-runner-go-cache go test ./...\n-GOCACHE=/tmp/gitea-dynamic-runner-go-cache go vet ./...\n-git diff --check