-
Notifications
You must be signed in to change notification settings - Fork 422
Add and use new artifact/workflow functionality for CI scripts. #4861
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
529c760
Add and use new artifact/workflow functionality for CI scripts.
alliepiper 4050fe2
Merge remote-tracking branch 'origin/main' into ci_artifacts
alliepiper 4522659
Merge remote-tracking branch 'origin/main' into ci_artifacts
alliepiper 7caf7f0
TEMP Test full python matrix.
alliepiper c8763e4
Update new python test script to pull wheel artifact.
alliepiper 9e6616b
Fix python test scripts to build wheels locally.
alliepiper 3bf248e
More matrix updates.
alliepiper ead2e0d
Update devcontainers.
alliepiper 6494d3d
Clear override. Final precommit testing.
alliepiper File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| { | ||
| "shutdownAction": "stopContainer", | ||
| "image": "rapidsai/devcontainers:25.08-cpp-gcc13-cuda12.5", | ||
| "hostRequirements": { | ||
| "gpu": "optional" | ||
| }, | ||
| "initializeCommand": [ | ||
| "/bin/bash", | ||
| "-c", | ||
| "mkdir -m 0755 -p ${localWorkspaceFolder}/.{aws,cache,config}; mkdir -m 0755 -p ${localWorkspaceFolder}/{build,wheelhouse}; if test -z ${localEnv:WSLENV}; then docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/build --opt o=bind cccl-build; docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/wheelhouse --opt o=bind cccl-wheelhouse; else docker volume create cccl-build; docker volume create cccl-wheelhouse; fi;" | ||
| ], | ||
| "containerEnv": { | ||
| "SCCACHE_REGION": "us-east-2", | ||
| "SCCACHE_BUCKET": "rapids-sccache-devs", | ||
| "AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs", | ||
| "HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history", | ||
| "DEVCONTAINER_NAME": "cuda12.5-gcc13", | ||
| "CCCL_CUDA_VERSION": "12.5", | ||
| "CCCL_HOST_COMPILER": "gcc", | ||
| "CCCL_HOST_COMPILER_VERSION": "13", | ||
| "CCCL_BUILD_INFIX": "cuda12.5-gcc13", | ||
| "CCCL_CUDA_EXTENDED": "false", | ||
| "HOST_WORKSPACE": "${localWorkspaceFolder}" | ||
| }, | ||
| "workspaceFolder": "/home/coder/${localWorkspaceFolderBasename}", | ||
| "workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/${localWorkspaceFolderBasename},type=bind,consistency=consistent", | ||
| "mounts": [ | ||
| "source=${localWorkspaceFolder}/.aws,target=/home/coder/.aws,type=bind,consistency=consistent", | ||
| "source=${localWorkspaceFolder}/.cache,target=/home/coder/.cache,type=bind,consistency=consistent", | ||
| "source=${localWorkspaceFolder}/.config,target=/home/coder/.config,type=bind,consistency=consistent", | ||
| "source=cccl-build,target=/home/coder/cccl/build", | ||
| "source=cccl-wheelhouse,target=/home/coder/cccl/wheelhouse" | ||
| ], | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "llvm-vs-code-extensions.vscode-clangd", | ||
| "seaube.clangformat", | ||
| "nvidia.nsight-vscode-edition", | ||
| "ms-vscode.cmake-tools" | ||
| ], | ||
| "settings": { | ||
| "editor.defaultFormatter": "seaube.clangformat", | ||
| "editor.formatOnSave": true, | ||
| "clang-format.executable": "/usr/bin/clang-format", | ||
| "clangd.arguments": [ | ||
| "--header-insertion=never", | ||
| "--compile-commands-dir=${workspaceFolder}" | ||
| ], | ||
| "files.eol": "\n", | ||
| "files.trimTrailingWhitespace": true | ||
| } | ||
| } | ||
| }, | ||
| "name": "cuda12.5-gcc13" | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| { | ||
| "shutdownAction": "stopContainer", | ||
| "image": "rapidsai/devcontainers:25.08-cpp-gcc13-cuda12.6", | ||
| "hostRequirements": { | ||
| "gpu": "optional" | ||
| }, | ||
| "initializeCommand": [ | ||
| "/bin/bash", | ||
| "-c", | ||
| "mkdir -m 0755 -p ${localWorkspaceFolder}/.{aws,cache,config}; mkdir -m 0755 -p ${localWorkspaceFolder}/{build,wheelhouse}; if test -z ${localEnv:WSLENV}; then docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/build --opt o=bind cccl-build; docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/wheelhouse --opt o=bind cccl-wheelhouse; else docker volume create cccl-build; docker volume create cccl-wheelhouse; fi;" | ||
| ], | ||
| "containerEnv": { | ||
| "SCCACHE_REGION": "us-east-2", | ||
| "SCCACHE_BUCKET": "rapids-sccache-devs", | ||
| "AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs", | ||
| "HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history", | ||
| "DEVCONTAINER_NAME": "cuda12.6-gcc13", | ||
| "CCCL_CUDA_VERSION": "12.6", | ||
| "CCCL_HOST_COMPILER": "gcc", | ||
| "CCCL_HOST_COMPILER_VERSION": "13", | ||
| "CCCL_BUILD_INFIX": "cuda12.6-gcc13", | ||
| "CCCL_CUDA_EXTENDED": "false", | ||
| "HOST_WORKSPACE": "${localWorkspaceFolder}" | ||
| }, | ||
| "workspaceFolder": "/home/coder/${localWorkspaceFolderBasename}", | ||
| "workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/${localWorkspaceFolderBasename},type=bind,consistency=consistent", | ||
| "mounts": [ | ||
| "source=${localWorkspaceFolder}/.aws,target=/home/coder/.aws,type=bind,consistency=consistent", | ||
| "source=${localWorkspaceFolder}/.cache,target=/home/coder/.cache,type=bind,consistency=consistent", | ||
| "source=${localWorkspaceFolder}/.config,target=/home/coder/.config,type=bind,consistency=consistent", | ||
| "source=cccl-build,target=/home/coder/cccl/build", | ||
| "source=cccl-wheelhouse,target=/home/coder/cccl/wheelhouse" | ||
| ], | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "llvm-vs-code-extensions.vscode-clangd", | ||
| "seaube.clangformat", | ||
| "nvidia.nsight-vscode-edition", | ||
| "ms-vscode.cmake-tools" | ||
| ], | ||
| "settings": { | ||
| "editor.defaultFormatter": "seaube.clangformat", | ||
| "editor.formatOnSave": true, | ||
| "clang-format.executable": "/usr/bin/clang-format", | ||
| "clangd.arguments": [ | ||
| "--header-insertion=never", | ||
| "--compile-commands-dir=${workspaceFolder}" | ||
| ], | ||
| "files.eol": "\n", | ||
| "files.trimTrailingWhitespace": true | ||
| } | ||
| } | ||
| }, | ||
| "name": "cuda12.6-gcc13" | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| { | ||
| "shutdownAction": "stopContainer", | ||
| "image": "rapidsai/devcontainers:25.08-cpp-gcc13-cuda12.8", | ||
| "hostRequirements": { | ||
| "gpu": "optional" | ||
| }, | ||
| "initializeCommand": [ | ||
| "/bin/bash", | ||
| "-c", | ||
| "mkdir -m 0755 -p ${localWorkspaceFolder}/.{aws,cache,config}; mkdir -m 0755 -p ${localWorkspaceFolder}/{build,wheelhouse}; if test -z ${localEnv:WSLENV}; then docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/build --opt o=bind cccl-build; docker volume create --driver local --opt type=none --opt device=${localWorkspaceFolder}/wheelhouse --opt o=bind cccl-wheelhouse; else docker volume create cccl-build; docker volume create cccl-wheelhouse; fi;" | ||
| ], | ||
| "containerEnv": { | ||
| "SCCACHE_REGION": "us-east-2", | ||
| "SCCACHE_BUCKET": "rapids-sccache-devs", | ||
| "AWS_ROLE_ARN": "arn:aws:iam::279114543810:role/nv-gha-token-sccache-devs", | ||
| "HISTFILE": "${containerWorkspaceFolder}/.cache/._bash_history", | ||
| "DEVCONTAINER_NAME": "cuda12.8-gcc13", | ||
| "CCCL_CUDA_VERSION": "12.8", | ||
| "CCCL_HOST_COMPILER": "gcc", | ||
| "CCCL_HOST_COMPILER_VERSION": "13", | ||
| "CCCL_BUILD_INFIX": "cuda12.8-gcc13", | ||
| "CCCL_CUDA_EXTENDED": "false", | ||
| "HOST_WORKSPACE": "${localWorkspaceFolder}" | ||
| }, | ||
| "workspaceFolder": "/home/coder/${localWorkspaceFolderBasename}", | ||
| "workspaceMount": "source=${localWorkspaceFolder},target=/home/coder/${localWorkspaceFolderBasename},type=bind,consistency=consistent", | ||
| "mounts": [ | ||
| "source=${localWorkspaceFolder}/.aws,target=/home/coder/.aws,type=bind,consistency=consistent", | ||
| "source=${localWorkspaceFolder}/.cache,target=/home/coder/.cache,type=bind,consistency=consistent", | ||
| "source=${localWorkspaceFolder}/.config,target=/home/coder/.config,type=bind,consistency=consistent", | ||
| "source=cccl-build,target=/home/coder/cccl/build", | ||
| "source=cccl-wheelhouse,target=/home/coder/cccl/wheelhouse" | ||
| ], | ||
| "customizations": { | ||
| "vscode": { | ||
| "extensions": [ | ||
| "llvm-vs-code-extensions.vscode-clangd", | ||
| "seaube.clangformat", | ||
| "nvidia.nsight-vscode-edition", | ||
| "ms-vscode.cmake-tools" | ||
| ], | ||
| "settings": { | ||
| "editor.defaultFormatter": "seaube.clangformat", | ||
| "editor.formatOnSave": true, | ||
| "clang-format.executable": "/usr/bin/clang-format", | ||
| "clangd.arguments": [ | ||
| "--header-insertion=never", | ||
| "--compile-commands-dir=${workspaceFolder}" | ||
| ], | ||
| "files.eol": "\n", | ||
| "files.trimTrailingWhitespace": true | ||
| } | ||
| } | ||
| }, | ||
| "name": "cuda12.8-gcc13" | ||
| } |
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,132 @@ | ||
| name: "Upload Artifacts" | ||
| description: "Upload an arbitrary (but limited) number of artifacts." | ||
|
|
||
| inputs: | ||
| artifacts: | ||
| description: "JSCN array objects produced via ci/util/artifacts/upload/print_matrix.sh. Each object must include 'name', 'path', 'retention_days', and 'compression_level'." | ||
| required: true | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Parse artifact array | ||
| id: parse | ||
| shell: bash --noprofile --norc -euo pipefail {0} | ||
| run: | | ||
| # Save artifacts json for parsing: | ||
| jq -r '.' <<< '${{ inputs.artifacts }}' > artifacts.json | ||
|
|
||
| echo "::group::List of artifacts to upload" | ||
| cat artifacts.json | ||
| echo "::endgroup::" | ||
|
|
||
| max_artifacts=10 | ||
|
|
||
| count=$(jq '. | length' artifacts.json) | ||
| if [ "$count" -gt "$max_artifacts" ]; then | ||
| echo "Error: Too many artifacts to upload. Maximum is $max_artifacts, got $count." | ||
| echo "Update the action to support more artifacts if needed." | ||
| exit 1 | ||
| fi | ||
|
|
||
| for i in $(seq 0 $((count - 1))); do | ||
| name=$(jq -r ".[$i].name" artifacts.json) | ||
| path=$(jq -r ".[$i].path" artifacts.json) | ||
| retention_days=$(jq -r ".[$i].retention_days" artifacts.json) | ||
| compression_level=$(jq -r ".[$i].compression_level" artifacts.json) | ||
|
|
||
| echo "enabled$i=true" >> "${GITHUB_OUTPUT}" | ||
| echo "name$i=$name" >> "${GITHUB_OUTPUT}" | ||
| echo "path$i=$path" >> "${GITHUB_OUTPUT}" | ||
| echo "retention_days$i=$retention_days" >> "${GITHUB_OUTPUT}" | ||
| echo "compression_level$i=$compression_level" >> "${GITHUB_OUTPUT}" | ||
| done | ||
|
|
||
| for i in $(seq $((count)) $((max_artifacts - 1))); do | ||
| echo "enabled$i=false" >> "${GITHUB_OUTPUT}" | ||
| echo "name$i=" >> "${GITHUB_OUTPUT}" | ||
| echo "path$i=" >> "${GITHUB_OUTPUT}" | ||
| echo "retention_days$i=" >> "${GITHUB_OUTPUT}" | ||
| echo "compression_level$i=" >> "${GITHUB_OUTPUT}" | ||
| done | ||
|
|
||
| - name: Upload artifact 0 | ||
| if: ${{ steps.parse.outputs.enabled0 == 'true' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.parse.outputs.name0 }} | ||
| path: ${{ steps.parse.outputs.path0 }} | ||
| retention-days: ${{ steps.parse.outputs.retention_days0 }} | ||
| compression-level: ${{ steps.parse.outputs.compression_level0 }} | ||
| - name: Upload artifact 1 | ||
| if: ${{ steps.parse.outputs.enabled1 == 'true' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.parse.outputs.name1 }} | ||
| path: ${{ steps.parse.outputs.path1 }} | ||
| retention-days: ${{ steps.parse.outputs.retention_days1 }} | ||
| compression-level: ${{ steps.parse.outputs.compression_level1 }} | ||
| - name: Upload artifact 2 | ||
| if: ${{ steps.parse.outputs.enabled2 == 'true' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.parse.outputs.name2 }} | ||
| path: ${{ steps.parse.outputs.path2 }} | ||
| retention-days: ${{ steps.parse.outputs.retention_days2 }} | ||
| compression-level: ${{ steps.parse.outputs.compression_level2 }} | ||
| - name: Upload artifact 3 | ||
| if: ${{ steps.parse.outputs.enabled3 == 'true' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.parse.outputs.name3 }} | ||
| path: ${{ steps.parse.outputs.path3 }} | ||
| retention-days: ${{ steps.parse.outputs.retention_days3 }} | ||
| compression-level: ${{ steps.parse.outputs.compression_level3 }} | ||
| - name: Upload artifact 4 | ||
| if: ${{ steps.parse.outputs.enabled4 == 'true' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.parse.outputs.name4 }} | ||
| path: ${{ steps.parse.outputs.path4 }} | ||
| retention-days: ${{ steps.parse.outputs.retention_days4 }} | ||
| compression-level: ${{ steps.parse.outputs.compression_level4 }} | ||
| - name: Upload artifact 5 | ||
| if: ${{ steps.parse.outputs.enabled5 == 'true' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.parse.outputs.name5 }} | ||
| path: ${{ steps.parse.outputs.path5 }} | ||
| retention-days: ${{ steps.parse.outputs.retention_days5 }} | ||
| compression-level: ${{ steps.parse.outputs.compression_level5 }} | ||
| - name: Upload artifact 6 | ||
| if: ${{ steps.parse.outputs.enabled6 == 'true' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.parse.outputs.name6 }} | ||
| path: ${{ steps.parse.outputs.path6 }} | ||
| retention-days: ${{ steps.parse.outputs.retention_days6 }} | ||
| compression-level: ${{ steps.parse.outputs.compression_level6 }} | ||
| - name: Upload artifact 7 | ||
| if: ${{ steps.parse.outputs.enabled7 == 'true' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.parse.outputs.name7 }} | ||
| path: ${{ steps.parse.outputs.path7 }} | ||
| retention-days: ${{ steps.parse.outputs.retention_days7 }} | ||
| compression-level: ${{ steps.parse.outputs.compression_level7 }} | ||
| - name: Upload artifact 8 | ||
| if: ${{ steps.parse.outputs.enabled8 == 'true' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.parse.outputs.name8 }} | ||
| path: ${{ steps.parse.outputs.path8 }} | ||
| retention-days: ${{ steps.parse.outputs.retention_days8 }} | ||
| compression-level: ${{ steps.parse.outputs.compression_level8 }} | ||
| - name: Upload artifact 9 | ||
| if: ${{ steps.parse.outputs.enabled9 == 'true' }} | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ steps.parse.outputs.name9 }} | ||
| path: ${{ steps.parse.outputs.path9 }} | ||
| retention-days: ${{ steps.parse.outputs.retention_days9 }} | ||
| compression-level: ${{ steps.parse.outputs.compression_level9 }} |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
This change just moves CTK info from the CI group name -> CI job name to support producers/consumers on different CTK versions. This is to allow Python to build wheels on 12.9 and test on older 12.x.