Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/ci-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,18 @@ jobs:
echo "run_id=$RUN_ID" >> $GITHUB_OUTPUT
echo "head_sha=$HEAD_SHA" >> $GITHUB_OUTPUT

dispatch-woa:
name: Dispatch WoA integration
if: ${{ github.repository == 'NVIDIA/cuda-python' && github.ref == 'refs/heads/main' }}
needs: find-wheels
permissions:
actions: read
contents: read
secrets: inherit
uses: ./.github/workflows/woa-main-ci.yml
with:
public_run_id: ${{ needs.find-wheels.outputs.RUN_ID }}

# ── PyTorch interop tests ──

test-pytorch-linux:
Expand Down Expand Up @@ -350,6 +362,7 @@ jobs:
- documentation-links
- test-ci-tools-for-release
- find-wheels
- dispatch-woa
- test-pytorch-linux
- test-pytorch-linux-aarch64
- test-pytorch-windows
Expand Down Expand Up @@ -385,7 +398,8 @@ jobs:
if ${{ needs.documentation-links.result != 'success' ||
needs.test-ci-tools-for-release.result == 'cancelled' ||
needs.test-ci-tools-for-release.result == 'failure' ||
needs.find-wheels.result != 'success' }}; then
needs.find-wheels.result != 'success' ||
needs.dispatch-woa.result != 'success' }}; then
exit 1
fi
if ${{ needs.test-pytorch-linux.result == 'cancelled' ||
Expand Down
24 changes: 8 additions & 16 deletions .github/workflows/woa-main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ name: "WoA main CI"
run-name: "WoA main CI for ${{ inputs.public_run_id || 'latest successful public main CI run' }}"

on:
schedule:
# 03:17 UTC daily, offset from the other nightly workflows.
- cron: "17 3 * * *"
workflow_call:
inputs:
public_run_id:
description: Public CI run selected by the nightly find-wheels job
required: true
type: string
workflow_dispatch:
inputs:
public_run_id:
Expand All @@ -30,9 +33,8 @@ jobs:
permissions:
actions: read
contents: read
checks: read
outputs:
dispatch: ${{ steps.select.outputs.dispatch || 'false' }}
dispatch: ${{ steps.resolve.outputs.eligible || 'false' }}
correlation-id: ${{ steps.resolve.outputs.correlation_id }}
public-run-id: ${{ steps.resolve.outputs.public_run_id }}
public-sha: ${{ steps.resolve.outputs.public_sha }}
Expand All @@ -44,7 +46,6 @@ jobs:
persist-credentials: false
sparse-checkout: |
ci/tools/lookup-run-id
ci/tools/select-woa-batch
sparse-checkout-cone-mode: false

- name: Resolve exact public build
Expand Down Expand Up @@ -84,7 +85,7 @@ jobs:
repository: (.repository.full_name == "NVIDIA/cuda-python"),
workflow_id: (.workflow_id == 155304118),
workflow_path: (.path == ".github/workflows/ci.yml"),
event: (.event == "push"),
event: (.event == "push" or .event == "schedule" or .event == "workflow_dispatch"),
branch: (.head_branch == "main"),
status_and_conclusion: ((.status == "in_progress" and .conclusion == null) or
(.status == "completed" and .conclusion == "success")),
Expand Down Expand Up @@ -119,15 +120,6 @@ jobs:
echo "Resolved public run \`$PUBLIC_RUN_ID\` at commit \`$public_sha\`."
} >> "$GITHUB_STEP_SUMMARY"

- name: Select public batch
if: ${{ steps.resolve.outputs.eligible == 'true' }}
id: select
env:
GH_TOKEN: ${{ github.token }}
PUBLIC_RUN_ID: ${{ steps.resolve.outputs.public_run_id }}
PUBLIC_SHA: ${{ steps.resolve.outputs.public_sha }}
run: bash ./ci/tools/select-woa-batch

dispatch-private-validation:
needs: resolve-public-build
if: ${{ needs.resolve-public-build.outputs.dispatch == 'true' }}
Expand Down
Loading