Skip to content

Commit 1aacf2c

Browse files
authored
update telemetry and retarget 25.04 (#2569)
Enables telemetry as a final step in the top-level workflow. See draft docs at rapidsai/docs#568 for more info. Part of rapidsai/build-infra#139 Authors: - Mike Sarahan (https://github.com/msarahan) Approvers: - James Lamb (https://github.com/jameslamb) URL: #2569
1 parent 307e927 commit 1aacf2c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/pr.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,23 @@ jobs:
2727
- wheel-build-raft-dask
2828
- wheel-tests-raft-dask
2929
- devcontainer
30+
- telemetry-setup
3031
secrets: inherit
3132
uses: rapidsai/shared-workflows/.github/workflows/pr-builder.yaml@branch-25.04
3233
if: always()
3334
with:
3435
needs: ${{ toJSON(needs) }}
36+
telemetry-setup:
37+
runs-on: ubuntu-latest
38+
continue-on-error: true
39+
env:
40+
OTEL_SERVICE_NAME: "pr-raft"
41+
steps:
42+
- name: Telemetry setup
43+
# This gate is here and not at the job level because we need the job to not be skipped,
44+
# since other jobs depend on it.
45+
if: ${{ vars.TELEMETRY_ENABLED == 'true' }}
46+
uses: rapidsai/shared-actions/telemetry-dispatch-stash-base-env-vars@main
3547
check-nightly-ci:
3648
# Switch to ubuntu-latest once it defaults to a version of Ubuntu that
3749
# provides at least Python 3.11 (see
@@ -46,6 +58,7 @@ jobs:
4658
repo: raft
4759
changed-files:
4860
secrets: inherit
61+
needs: telemetry-setup
4962
uses: rapidsai/shared-workflows/.github/workflows/changed-files.yaml@branch-25.04
5063
with:
5164
files_yaml: |
@@ -70,9 +83,11 @@ jobs:
7083
- '!thirdparty/LICENSES/**'
7184
checks:
7285
secrets: inherit
86+
needs: telemetry-setup
7387
uses: rapidsai/shared-workflows/.github/workflows/checks.yaml@branch-25.04
7488
with:
7589
enable_check_generated_files: false
90+
ignored_pr_jobs: telemetry-summarize
7691
conda-cpp-build:
7792
needs: checks
7893
secrets: inherit
@@ -160,6 +175,7 @@ jobs:
160175
build_type: pull-request
161176
script: ci/test_wheel_raft_dask.sh
162177
devcontainer:
178+
needs: telemetry-setup
163179
secrets: inherit
164180
uses: rapidsai/shared-workflows/.github/workflows/build-in-devcontainer.yaml@branch-25.04
165181
with:
@@ -169,3 +185,12 @@ jobs:
169185
sccache -z;
170186
build-all -DBUILD_PRIMS_BENCH=ON --verbose;
171187
sccache -s;
188+
telemetry-summarize:
189+
# This job must use a self-hosted runner to record telemetry traces.
190+
runs-on: linux-amd64-cpu4
191+
needs: pr-builder
192+
if: ${{ vars.TELEMETRY_ENABLED == 'true' && !cancelled() }}
193+
continue-on-error: true
194+
steps:
195+
- name: Telemetry summarize
196+
uses: rapidsai/shared-actions/telemetry-dispatch-summarize@main

0 commit comments

Comments
 (0)