2
0

2 Commits

Author SHA1 Message Date
fae83e8d2f Add CapabilitiesJson to FetchTaskRequest
All checks were successful
CI / build (push) Successful in 1s
Release / release (push) Successful in 2s
Allows runners to send capabilities including disk space with each FetchTask poll.
2026-01-11 05:43:56 +00:00
663a52eded ci: Disable Go cache to prevent hanging on Gitea runners
All checks were successful
CI / build (push) Successful in 6s
Release / release (push) Successful in 7s
The actions/setup-go@v5 cache feature tries to upload to GitHub's
cache infrastructure, which doesn't exist on self-hosted Gitea
runners. This causes jobs to hang indefinitely during the post step.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 05:30:00 -05:00
3 changed files with 11 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ jobs:
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.21'
cache: false
- name: Build - name: Build
run: go build ./... run: go build ./...

View File

@@ -14,6 +14,7 @@ jobs:
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: '1.21' go-version: '1.21'
cache: false
- name: Build - name: Build
run: go build ./... run: go build ./...

View File

@@ -392,7 +392,8 @@ type FetchTaskRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
TasksVersion int64 `protobuf:"varint,1,opt,name=tasks_version,json=tasksVersion,proto3" json:"tasks_version,omitempty"` // Runner use `tasks_version` to compare with Gitea and detemine whether new tasks may exist. TasksVersion int64 `protobuf:"varint,1,opt,name=tasks_version,json=tasksVersion,proto3" json:"tasks_version,omitempty"` // Runner use `tasks_version` to compare with Gitea and detemine whether new tasks may exist.
CapabilitiesJson string `protobuf:"bytes,2,opt,name=capabilities_json,json=capabilitiesJson,proto3" json:"capabilities_json,omitempty"` // JSON-encoded runner capabilities including disk space
} }
func (x *FetchTaskRequest) Reset() { func (x *FetchTaskRequest) Reset() {
@@ -434,6 +435,13 @@ func (x *FetchTaskRequest) GetTasksVersion() int64 {
return 0 return 0
} }
func (x *FetchTaskRequest) GetCapabilitiesJson() string {
if x != nil {
return x.CapabilitiesJson
}
return ""
}
type FetchTaskResponse struct { type FetchTaskResponse struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache