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
3 changes: 0 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ concurrency:
cancel-in-progress: false

jobs:
agent_local_test:
uses: ./.github/workflows/test_agent_local.yaml

build_agent_image:
uses: ./.github/workflows/job_build_agent_image.yaml
secrets:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/job_detect_changes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
outputs:
api: ${{ steps.changes.outputs.api }}
clickhouse: ${{ steps.changes.outputs.clickhouse }}
agent: ${{ steps.changes.outputs.agent }}
go: ${{ steps.changes.outputs.go }}
steps:
- uses: actions/checkout@v4
Expand All @@ -41,8 +40,5 @@ jobs:
- 'pnpm-lock.yaml'
clickhouse:
- 'internal/clickhouse/**'
agent:
- 'apps/agent/**'
- 'go/**'
go:
- 'go/**'
24 changes: 0 additions & 24 deletions .github/workflows/job_test_agent_local.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ jobs:
needs: [detect_changes]
uses: ./.github/workflows/job_test_api_local.yaml

test_agent_local:
name: Test Agent Local
if: ((github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name != 'pull_request') && needs.detect_changes.result == 'success' && needs.detect_changes.outputs.agent == 'true'
needs: [detect_changes]
uses: ./.github/workflows/job_test_agent_local.yaml

test_go_api_local:
name: Test Go API Local
if: ((github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name != 'pull_request') && needs.detect_changes.result == 'success' && needs.detect_changes.outputs.go == 'true'
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/test_agent_local.yaml

This file was deleted.

21 changes: 17 additions & 4 deletions apps/agent/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
.PHONY: install fmt test build race lint generate

# Detect OS and set GOMAXPROCS accordingly
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
DETECTED_PROCS := $(shell nproc)
else ifeq ($(UNAME_S),Darwin)
DETECTED_PROCS := $(shell sysctl -n hw.ncpu)
else
DETECTED_PROCS := 4
endif

GOMAXPROCS_VAL := $(or $(GOMAXPROCS),$(DETECTED_PROCS))
PARALLEL_PROCS := $(shell if [ $(GOMAXPROCS_VAL) -gt 1 ]; then expr $(GOMAXPROCS_VAL) / 2; else echo 1; fi)

install:
go mod tidy
@go mod tidy

fmt: lint
go fmt ./...
@go fmt ./...

test:
go test -cover -json -failfast ./... | tparse -all -progress
TESTCONTAINERS_RYUK_DISABLED=true go test -json -count=1 -parallel=$(PARALLEL_PROCS) -failfast ./pkg/... ./services/... | tparse -all -progress -smallscreen

build:
go build -o unkey ./cmd/main.go
Expand All @@ -23,4 +36,4 @@ generate:
go get github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen
mkdir -p ./pkg/openapi
go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen --config=./pkg/openapi/config.yaml ./pkg/openapi/openapi.json
buf generate
buf generate
150 changes: 0 additions & 150 deletions apps/agent/integration/cluster/docker/ratelimits_test.go

This file was deleted.

Loading
Loading