fix: executor 显式加载 runner job hooks 配置 #49

Merged
panxiao81 merged 1 commits from fix/load-runner-config into main 2026-09-21 17:54:28 +00:00
Owner

根因

Go executor 运行官方 runner 时只传了 daemon --once,没有 --config /etc/gitea-runner/config.yaml,导致 job_started hook 完全未加载。Pod smoke 因此虽然已有 /var/lib/docker emptyDir,但 Docker daemon 未启动。

修复

  • executor 显式传递 daemon --config <path> --once
  • 默认配置为 /etc/gitea-runner/config.yaml
  • 支持 GITEA_RUNNER_CONFIG_FILE 覆盖
  • 增加参数单测

验证

  • go test ./... 全部通过
  • Pod smoke run 742 已提供根因证据
## 根因 Go executor 运行官方 runner 时只传了 `daemon --once`,没有 `--config /etc/gitea-runner/config.yaml`,导致 `job_started` hook 完全未加载。Pod smoke 因此虽然已有 `/var/lib/docker` emptyDir,但 Docker daemon 未启动。 ## 修复 - executor 显式传递 `daemon --config <path> --once` - 默认配置为 `/etc/gitea-runner/config.yaml` - 支持 `GITEA_RUNNER_CONFIG_FILE` 覆盖 - 增加参数单测 ## 验证 - `go test ./...` 全部通过 - Pod smoke run 742 已提供根因证据
panxiao81 added 1 commit 2026-09-21 17:51:19 +00:00
fix(runner): load job hooks configuration
test / python (pull_request) Successful in 51s
test / shell (pull_request) Successful in 40s
test / go (pull_request) Successful in 3m1s
537c620051
panxiao81 merged commit 713d9a922a into main 2026-09-21 17:54:28 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: panxiao81/gitea-dynamic-runner#49