44 schedule :
55 # Run every day at 3:15 AM.
66 - cron : ' 15 3 * * *'
7+ pull_request :
8+ branches : ["**"]
9+ paths :
10+ - cmd/otelcol-ebpf-profiler/manifest.yaml
711
812concurrency :
913 group : ${{ github.workflow }}-${{ github.ref_name }}
@@ -18,13 +22,15 @@ jobs:
1822 runs-on : ubuntu-latest
1923 steps :
2024 - name : Checkout Repo
21- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 .0.0
25+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 .0.2
2226 - name : Set up environment
2327 uses : ./.github/workflows/env
28+ - name : Set up Go Stable
29+ uses : actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
2430 with :
25- skip_rust : true
31+ go-version : stable
2632 - name : Cache coredump modules
27- uses : actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
33+ uses : actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
2834 with :
2935 path : tools/coredump/modulecache
3036 key : coredumps-collector-${{ hashFiles('tools/coredump/testdata/*/*.json') }}
@@ -39,12 +45,52 @@ jobs:
3945 run : |
4046 COLLECTOR_PATH=/tmp/opentelemetry-collector ./support/local-collector.sh
4147 go mod tidy
48+ - name : Install dependencies
49+ run : |
50+ sudo apt-get update -y
51+ sudo apt-get install -y debootstrap systemtap-sdt-dev
4252 - name : Tests
4353 run : make test-junit
4454 - name : Generate Issue
4555 if : failure()
4656 env :
4757 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4858 run : |
49- go install go.opentelemetry.io/build-tools/issuegenerator@latest
59+ go install go.opentelemetry.io/build-tools/issuegenerator@v0.28.1
60+ issuegenerator -path /tmp/testresults
61+
62+ otelcol-ebpf-profiler :
63+ strategy :
64+ matrix :
65+ include :
66+ - { runner: ubuntu-24.04, use-upstream: true }
67+ - { runner: ubuntu-24.04, use-upstream: false }
68+ - { runner: ubuntu-24.04-arm, use-upstream: true }
69+ - { runner: ubuntu-24.04-arm, use-upstream: false }
70+ runs-on : ${{ matrix.runner }}
71+ steps :
72+ - name : Checkout Repo
73+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
74+ - name : Set up Go Stable
75+ uses : actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
76+ with :
77+ go-version : stable
78+ - name : Clone Collector
79+ if : ${{ matrix.use-upstream }}
80+ run : |
81+ collector_path=/tmp/opentelemetry-collector
82+ git clone --depth=1 https://github.com/open-telemetry/opentelemetry-collector.git $collector_path
83+ - name : Setup replace statements
84+ if : ${{ matrix.use-upstream }}
85+ run : |
86+ COLLECTOR_PATH=/tmp/opentelemetry-collector make otel-from-tree
87+ - name : Build otelcol-ebpf-profiler
88+ run : |
89+ make otelcol-ebpf-profiler
90+ - name : Generate Issue
91+ if : failure()
92+ env :
93+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
94+ run : |
95+ go install go.opentelemetry.io/build-tools/issuegenerator@v0.28.1
5096 issuegenerator -path /tmp/testresults
0 commit comments