Skip to content

chore(deps): update ocb (manifest) dependencies - autoclosed #439

chore(deps): update ocb (manifest) dependencies - autoclosed

chore(deps): update ocb (manifest) dependencies - autoclosed #439

Workflow file for this run

name: Collector Tests
on:
workflow_dispatch:
schedule:
# Run every day at 3:15 AM.
- cron: '15 3 * * *'
pull_request:
branches: ["**"]
paths:
- cmd/otelcol-ebpf-profiler/manifest.yaml
- .github/workflows/collector-tests.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: read
issues: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up environment
uses: ./.github/workflows/env
- name: Set up Go Stable
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: stable
- name: Cache coredump modules
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: tools/coredump/modulecache
key: coredumps-collector-${{ hashFiles('tools/coredump/testdata/*/*.json') }}
restore-keys: |
coredumps-collector
coredumps-
- name: Clone Collector
run: |
collector_path=/tmp/opentelemetry-collector
git clone --depth=1 https://github.com/open-telemetry/opentelemetry-collector.git $collector_path
- 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
run: make test-junit
- name: Generate Issue
if: failure()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install go.opentelemetry.io/build-tools/issuegenerator@v0.28.1
issuegenerator -path /tmp/testresults
otelcol-ebpf-profiler:
strategy:
matrix:
include:
- { runner: ubuntu-24.04, use-upstream: true }
- { runner: ubuntu-24.04, use-upstream: false }
- { runner: ubuntu-24.04-arm, use-upstream: true }
- { runner: ubuntu-24.04-arm, use-upstream: false }
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout Repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Go Stable
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: stable
- name: Clone Collector
if: ${{ matrix.use-upstream }}
run: |
collector_path=/tmp/opentelemetry-collector
git clone --depth=1 https://github.com/open-telemetry/opentelemetry-collector.git $collector_path
- name: Setup replace statements
if: ${{ matrix.use-upstream }}
run: |
COLLECTOR_PATH=/tmp/opentelemetry-collector make otel-from-tree
- name: Build otelcol-ebpf-profiler
run: |
make otelcol-ebpf-profiler
- name: Generate Issue
if: failure()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go install go.opentelemetry.io/build-tools/issuegenerator@v0.28.1
issuegenerator -path /tmp/testresults