-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enables telemetry during cuspatial CI runs. This is done by parsing GitHub Actions run log metadata and should have no impact on build or test times. xref rapidsai/build-infra#139 Authors: - Mike Sarahan (https://github.com/msarahan) - James Lamb (https://github.com/jameslamb) Approvers: - James Lamb (https://github.com/jameslamb) URL: #1535
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,16 +28,29 @@ jobs: | |
- wheel-build-cuproj | ||
- wheel-tests-cuproj | ||
- devcontainer | ||
- telemetry-setup | ||
secrets: inherit | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
if: always() | ||
with: | ||
needs: ${{ toJSON(needs) }} | ||
telemetry-setup: | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
env: | ||
OTEL_SERVICE_NAME: "pr-cuspatial" | ||
steps: | ||
- name: Telemetry setup | ||
# This gate is here and not at the job level because we need the job to not be skipped, | ||
# since other jobs depend on it. | ||
if: ${{ vars.TELEMETRY_ENABLED == 'true' }} | ||
uses: rapidsai/shared-actions/telemetry-dispatch-stash-base-env-vars@main | ||
check-nightly-ci: | ||
# Switch to ubuntu-latest once it defaults to a version of Ubuntu that | ||
# provides at least Python 3.11 (see | ||
# https://docs.python.org/3/library/datetime.html#datetime.date.fromisoformat) | ||
runs-on: ubuntu-24.04 | ||
needs: telemetry-setup | ||
env: | ||
RAPIDS_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
|
@@ -47,6 +60,7 @@ jobs: | |
repo: cuspatial | ||
changed-files: | ||
secrets: inherit | ||
needs: telemetry-setup | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
with: | ||
files_yaml: | | ||
|
@@ -77,9 +91,11 @@ jobs: | |
- '!notebooks/**' | ||
checks: | ||
secrets: inherit | ||
needs: telemetry-setup | ||
uses: rapidsai/shared-workflows/.github/workflows/[email protected] | ||
with: | ||
enable_check_generated_files: false | ||
ignored_pr_jobs: telemetry-summarize | ||
conda-cpp-build: | ||
needs: checks | ||
secrets: inherit | ||
|
@@ -184,3 +200,12 @@ jobs: | |
sccache -z; | ||
build-all -DBUILD_TESTS=ON -DBUILD_BENCHMARKS=ON --verbose; | ||
sccache -s; | ||
telemetry-summarize: | ||
# This job must use a self-hosted runner to record telemetry traces. | ||
runs-on: linux-amd64-cpu4 | ||
needs: pr-builder | ||
if: ${{ vars.TELEMETRY_ENABLED == 'true' && !cancelled() }} | ||
continue-on-error: true | ||
steps: | ||
- name: Telemetry summarize | ||
uses: rapidsai/shared-actions/telemetry-dispatch-summarize@main |