Skip to content
Draft
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
24 changes: 22 additions & 2 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,36 @@ steps:
- name: ":go::robot_face: Lint"
key: check-code-committed
command: .buildkite/steps/check-code-committed.sh
if_changed: "{go.mod,go.sum,**.go,.buildkite/steps/check-code-committed.sh}"
if_changed:
- go.{mod,sum}
- "**.go"
- .buildkite/steps/check-code-committed.sh
plugins:
- docker-compose#v4.14.0:
config: .buildkite/docker-compose.yml
cli-version: 2
mount-buildkite-agent: true
run: lint

- name: ":go::robot_face: Check protobuf generation"
key: check-protobuf-genreation
command: .buildkite/steps/check-protobuf-generation.sh
if_changed:
- api/proto/**
- .buildkite/steps/check-protobuf-generation.sh
plugins:
- docker-compose#v4.14.0:
config: .buildkite/docker-compose.yml
cli-version: 2
mount-buildkite-agent: true
run: lint

- group: ":go::scientist: Tests and Coverage"
if_changed: "{go.mod,go.sum,**.go,**/fixtures/**,.buildkite/steps/{tests,test-coverage-report}.sh}"
if_changed:
- go.{mod,sum}
- "**.go"
- "**/fixtures/**"
- .buildkite/steps/{tests,test-coverage-report}.sh
steps:
- name: ":linux: Linux AMD64 Tests"
key: test-linux-amd64
Expand Down
19 changes: 19 additions & 0 deletions .buildkite/steps/check-protobuf-generation.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env sh

set -euf

cd api/proto

echo --- :buf: Installing buf...
go install github.com/bufbuild/buf/cmd/buf@v1.61.0
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.10
go install connectrpc.com/connect/cmd/protoc-gen-connect-go@v1.19.1

echo --- :connectrpc: Checking protobuf file generation...
buf generate
if ! git diff --no-ext-diff --exit-code; then
echo ^^^ +++
echo "Generated protobuf files are out of sync with the source code"
echo "Please run \`buf generate\` in the internal/proto directory locally, and commit the result."
exit 1
fi
2 changes: 2 additions & 0 deletions agent/agent_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,6 @@ type AgentConfiguration struct {
TraceContextEncoding string
DisableWarningsFor []string
AllowMultipartArtifactUpload bool

PingMode string
}
Loading