Skip to content

Commit a2d19b1

Browse files
committed
add telemetry
1 parent 82a7a1b commit a2d19b1

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/pr.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,28 @@ jobs:
1717
- conda-python-tests
1818
- wheel-build
1919
- wheel-tests
20+
- telemetry-setup
2021
secrets: inherit
2122
uses: rapidsai/shared-workflows/.github/workflows/pr-builder.yaml@nvks-runners
23+
with:
24+
needs: ${{ toJSON(needs) }}
25+
telemetry-setup:
26+
runs-on: ubuntu-latest
27+
continue-on-error: true
28+
env:
29+
OTEL_SERVICE_NAME: "pr-ucx-py"
30+
steps:
31+
- name: Telemetry setup
32+
# This gate is here and not at the job level because we need the job to not be skipped,
33+
# since other jobs depend on it.
34+
if: ${{ vars.TELEMETRY_ENABLED == 'true' }}
35+
uses: rapidsai/shared-actions/telemetry-dispatch-stash-base-env-vars@main
2236
checks:
2337
secrets: inherit
38+
needs: telemetry-setup
2439
uses: rapidsai/shared-workflows/.github/workflows/checks.yaml@nvks-runners
40+
with:
41+
ignored_pr_jobs: telemetry-summarize
2542
conda-python-build:
2643
needs: checks
2744
secrets: inherit
@@ -50,3 +67,12 @@ jobs:
5067
build_type: pull-request
5168
script: ci/test_wheel.sh
5269
container-options: "--cap-add CAP_SYS_PTRACE --shm-size=8g --ulimit=nofile=1000000:1000000"
70+
telemetry-summarize:
71+
# This job must use a self-hosted runner to record telemetry traces.
72+
runs-on: linux-amd64-cpu4
73+
needs: pr-builder
74+
if: ${{ vars.TELEMETRY_ENABLED == 'true' && !cancelled() }}
75+
continue-on-error: true
76+
steps:
77+
- name: Telemetry summarize
78+
uses: rapidsai/shared-actions/telemetry-dispatch-summarize@main

0 commit comments

Comments
 (0)