Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/agent-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Agent CI

on:
pull_request:
paths:
- "agent/**"
- ".github/workflows/agent-ci.yml"
push:
branches:
- main
paths:
- "agent/**"
- ".github/workflows/agent-ci.yml"

permissions:
contents: read

concurrency:
group: agent-ci-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: agent

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Go
uses: actions/setup-go@v6
with:
go-version-file: agent/go.mod
cache-dependency-path: agent/go.sum

- name: Test
run: go test ./...

- name: Vet
run: go vet ./...

- name: Install staticcheck
run: GOBIN=$PWD/.bin go install honnef.co/go/tools/cmd/staticcheck@latest

- name: Staticcheck
run: ./.bin/staticcheck ./...
4 changes: 0 additions & 4 deletions .github/workflows/agent-tip-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ jobs:
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64

steps:
- name: Checkout
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ jobs:
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64

steps:
- name: Checkout
Expand Down
136 changes: 0 additions & 136 deletions agent/MACOS.md

This file was deleted.

4 changes: 0 additions & 4 deletions agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,3 @@ sudo journalctl -u techulus-agent -f
```bash
podman ps -a --format "table {{.Names}}\t{{.State}}\t{{.Labels}}"
```

## macOS

See [MACOS.md](./MACOS.md) for macOS-specific setup and troubleshooting.
11 changes: 0 additions & 11 deletions agent/internal/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@ const (
StateProcessing
)

func (s AgentState) String() string {
switch s {
case StateIdle:
return "IDLE"
case StateProcessing:
return "PROCESSING"
default:
return "UNKNOWN"
}
}

type Config struct {
ServerID string `json:"serverId"`
SubnetID int `json:"subnetId"`
Expand Down
3 changes: 1 addition & 2 deletions agent/internal/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ func (b *Builder) clone(ctx context.Context, config *Config, buildDir string) er
b.sendLog(config, fmt.Sprintf("Checking out commit %s", truncateStr(config.CommitSha, 8)))

cmd = exec.CommandContext(ctx, "git", "-C", buildDir, "fetch", "origin", config.CommitSha, "--depth", "1")
output, err = b.runCommand(cmd, config)
if err != nil {
if _, err := b.runCommand(cmd, config); err != nil {
log.Printf("[build:%s] fetch specific sha failed (might be HEAD): %v", truncateStr(config.BuildID, 8), err)
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build linux

package container

import (
Expand Down
128 changes: 0 additions & 128 deletions agent/internal/container/logs_darwin.go

This file was deleted.

Loading
Loading