diff --git a/.github/workflows/collector-tests.yml b/.github/workflows/collector-tests.yml index 74aaa8e69..6f58a9912 100644 --- a/.github/workflows/collector-tests.yml +++ b/.github/workflows/collector-tests.yml @@ -8,6 +8,7 @@ on: branches: ["**"] paths: - cmd/otelcol-ebpf-profiler/manifest.yaml + - .github/workflows/collector-tests.yml concurrency: group: ${{ github.workflow }}-${{ github.ref_name }} @@ -44,6 +45,14 @@ jobs: - name: Setup replace statement run: | COLLECTOR_PATH=/tmp/opentelemetry-collector ./support/local-collector.sh + # Add replace directives to internal/tools for genproto and ebpf-profiler + go mod edit -modfile=internal/tools/go.mod -replace='google.golang.org/genproto@v0.0.0-20220519153652-3a47de7e79bd=google.golang.org/genproto@v0.0.0-20260226221140-a57be14db171' + go mod edit -modfile=internal/tools/go.mod -replace='google.golang.org/genproto/googleapis/rpc@v0.0.0-20220519153652-3a47de7e79bd=google.golang.org/genproto/googleapis/rpc@v0.0.0-20260226221140-a57be14db171' + go mod edit -modfile=internal/tools/go.mod -replace="go.opentelemetry.io/ebpf-profiler=$(pwd)" + go mod tidy + go mod tidy -modfile=internal/tools/go.mod + # Manual run of go generate and go mod tidy to have a clean start for make test-junit + go generate ./... go mod tidy go mod tidy -modfile=internal/tools/go.mod - name: Tests