-
Notifications
You must be signed in to change notification settings - Fork 23
Improve compute sanitizer workflow #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,97 +1,48 @@ | ||
| name: compute-sanitizer-trigger | ||
| name: Trigger Compute Sanitizer | ||
|
|
||
| # Runs compute-sanitizer tools on all Velox cuDF (cuda_driver) tests. | ||
| # This workflow triggers compute-sanitizer runs for all Velox cuDF (cuda_driver) tests weekly. | ||
| # WARNING: This is resource intensive and runs many GPU jobs. | ||
| # For targeted testing, manually trigger compute-sanitizer-run.yaml with specific inputs. | ||
| # For targeted testing, manually trigger velox-compute-sanitizer-run.yaml with specific tool_name and test_names. | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 10 * * 6' # Weekly on Saturday at 10:00 UTC | ||
| - cron: "0 10 * * 6" # Weekly on Saturday at 10:00 UTC | ||
| workflow_dispatch: | ||
| inputs: | ||
| velox_image: | ||
| description: 'Velox GPU image to test (e.g. ghcr.io/rapidsai/velox-testing-images:velox-e0169a0-gpu-cuda13.1-20260318). Leave empty to use velox-latest-gpu-cuda12.9.' | ||
| description: "Velox GPU image to test (e.g. ghcr.io/rapidsai/velox-testing-images:velox-e0169a0-gpu-cuda13.1-20260318). Leave empty to use velox-latest-gpu-cuda13.1." | ||
| type: string | ||
| required: false | ||
| default: '' | ||
| default: "" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any difference between using single/double quotes in this yaml file? Or is this simply to maintain format consistency and use double quotes wherever possible? |
||
|
|
||
| permissions: {} | ||
|
|
||
| env: | ||
| REGISTRY: ghcr.io | ||
| IMAGE_NAME: ${{ github.repository }}-images | ||
|
|
||
| jobs: | ||
| discover-tests: | ||
| runs-on: linux-amd64-cpu4 | ||
| trigger-sanitizer: | ||
| name: Trigger ${{ matrix.tool_name }} | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: write | ||
| contents: read | ||
| packages: read | ||
| outputs: | ||
| tests: ${{ steps.find-tests.outputs.tests }} | ||
| velox_image: ${{ steps.resolve-image.outputs.velox_image }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| tool_name: | ||
| - memcheck | ||
| - racecheck | ||
| - synccheck | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably so. I will check that.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not familiar with workflow management with yaml in general. Claude flagged a minor issue. Not sure if it makes sense or not. Just fyi:
|
||
| with: | ||
| persist-credentials: false | ||
| - name: Log in to the Container registry | ||
| uses: ./.github/actions/container-registry-login | ||
| - name: Resolve image | ||
| id: resolve-image | ||
| - name: Trigger ${{ matrix.tool_name }} | ||
| env: | ||
| VELOX_IMAGE: ${{ inputs.velox_image }} | ||
| GH_TOKEN: ${{ github.token }} | ||
| TOOL_NAME: ${{ matrix.tool_name }} | ||
| VELOX_IMAGE: ${{ github.event.inputs.velox_image }} | ||
| run: | | ||
| args=(--ref "${GITHUB_REF_NAME}" -f tool_name="${TOOL_NAME}") | ||
| if [ -n "${VELOX_IMAGE}" ]; then | ||
| echo "velox_image=${VELOX_IMAGE}" >> "${GITHUB_OUTPUT}" | ||
| else | ||
| echo "velox_image=${REGISTRY}/${IMAGE_NAME}:velox-latest-gpu-cuda12.9" >> "${GITHUB_OUTPUT}" | ||
| args+=(-f velox_image="${VELOX_IMAGE}") | ||
| fi | ||
| - name: Discover test executables | ||
| id: find-tests | ||
| env: | ||
| IMAGE: ${{ steps.resolve-image.outputs.velox_image }} | ||
| run: | | ||
| source scripts/common.sh | ||
|
|
||
| docker_pull_with_retry "${IMAGE}" | ||
| docker run --rm \ | ||
| -v "${GITHUB_WORKSPACE}/ci/discover_velox_cudf_tests.sh:/tmp/discover.sh:ro" \ | ||
| -e GITHUB_OUTPUT=/tmp/gh_output \ | ||
| "${IMAGE}" bash -c "bash /tmp/discover.sh && cat /tmp/gh_output" >> "${GITHUB_OUTPUT}" | ||
|
|
||
| run-sanitizer-tests-memcheck: | ||
| name: compute-sanitizer memcheck | ||
| needs: discover-tests | ||
| permissions: | ||
| contents: read | ||
| packages: read | ||
| uses: ./.github/workflows/velox-compute-sanitizer-run.yaml | ||
| with: | ||
| tool_name: "memcheck" | ||
| test_names: ${{ needs.discover-tests.outputs.tests }} | ||
| velox_image: ${{ needs.discover-tests.outputs.velox_image }} | ||
|
|
||
| run-sanitizer-tests-racecheck: | ||
| name: compute-sanitizer racecheck | ||
| needs: discover-tests | ||
| permissions: | ||
| contents: read | ||
| packages: read | ||
| uses: ./.github/workflows/velox-compute-sanitizer-run.yaml | ||
| with: | ||
| tool_name: "racecheck" | ||
| test_names: ${{ needs.discover-tests.outputs.tests }} | ||
| velox_image: ${{ needs.discover-tests.outputs.velox_image }} | ||
|
|
||
| run-sanitizer-tests-synccheck: | ||
| name: compute-sanitizer synccheck | ||
| needs: discover-tests | ||
| permissions: | ||
| contents: read | ||
| packages: read | ||
| uses: ./.github/workflows/velox-compute-sanitizer-run.yaml | ||
| with: | ||
| tool_name: "synccheck" | ||
| test_names: ${{ needs.discover-tests.outputs.tests }} | ||
| velox_image: ${{ needs.discover-tests.outputs.velox_image }} | ||
| gh workflow run velox-compute-sanitizer-run.yaml "${args[@]}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIUC this job will now be green as long as the sub-jobs have been dispatched - regardless of whether they pass or not. Is this ok with how we intend to view/report these results?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, this succeeds if the trigger succeeds. I think that’s fine. We can’t spin-wait here because the actual runs take too long. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does
!cancelled()override the default behavior of "skip if dependent job failed"?My understanding of the intent here is that we want to run this even if
discover-sanitizer-testswas skipped (i.e. if tests to run were manually specified), but I don't think we want to run if it, or the resolve-image steps failed.Perhaps something like:
if: ${{ !cancelled() && (inputs.test_names != '' }}conveys the intend more explicitly?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will check into this.