Skip to content
Merged
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
59 changes: 45 additions & 14 deletions .github/workflows/update-gpuci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,70 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Parse current axis YAML
uses: the-coding-turtle/[email protected]
with:
file: continuous_integration/gpuci/axis.yaml

- name: Get latest cuDF nightly version
id: latest_version
id: cudf_latest
uses: jacobtomlinson/[email protected]
with:
org: "rapidsai-nightly"
package: "cudf"
version_system: "CalVer"

- name: Strip git tags from versions
- name: Get latest cuML nightly version
id: cuml_latest
uses: jacobtomlinson/[email protected]
with:
org: "rapidsai-nightly"
package: "cuml"
version_system: "CalVer"

- name: Get latest UCX-Py nightly version
id: ucx_py_latest
uses: jacobtomlinson/[email protected]
with:
org: "rapidsai-nightly"
package: "ucx-py"
version_system: "CalVer"

- name: Get old RAPIDS / UCX-Py versions
env:
FULL_RAPIDS_VER: ${{ steps.latest_version.outputs.version }}
run: echo "RAPIDS_VER=${FULL_RAPIDS_VER::-10}" >> $GITHUB_ENV
FULL_CUDF_VER: ${{ steps.cudf_latest.outputs.version }}
FULL_CUML_VER: ${{ steps.cuml_latest.outputs.version }}
FULL_UCX_PY_VER: ${{ steps.ucx_py_latest.outputs.version }}
run: |
echo RAPIDS_VER=$RAPIDS_VER_0 >> $GITHUB_ENV
echo UCX_PY_VER=$(curl -sL https://version.gpuci.io/rapids/$RAPIDS_VER_0) >> $GITHUB_ENV
echo NEW_CUDF_VER=${FULL_CUDF_VER::-10} >> $GITHUB_ENV
echo NEW_CUML_VER=${FULL_CUML_VER::-10} >> $GITHUB_ENV
echo NEW_UCX_PY_VER=${FULL_UCX_PY_VER::-10} >> $GITHUB_ENV

- name: Find and Replace Release
uses: jacobtomlinson/gha-find-replace@0.1.4
- name: Update RAPIDS version
uses: jacobtomlinson/gha-find-replace@2
with:
include: 'continuous_integration\/gpuci\/axis\.yaml'
find: "RAPIDS_VER:\n- .*"
replace: |-
RAPIDS_VER:
- "${{ env.RAPIDS_VER }}"
find: "${{ env.RAPIDS_VER }}"
replace: "${{ env.NEW_CUDF_VER }}"
regex: false

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
# make sure ucx-py nightlies are available and that cuDF/cuML nightly versions match up
if: |
env.UCX_PY_VER != env.NEW_UCX_PY_VER &&
env.NEW_CUDF_VER == env.NEW_CUML_VER
with:
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
commit-message: "Update gpuCI `RAPIDS_VER` to `${{ env.RAPIDS_VER }}`"
title: "Update gpuCI `RAPIDS_VER` to `${{ env.RAPIDS_VER }}`"
commit-message: "Update gpuCI `RAPIDS_VER` to `${{ env.NEW_CUDF_VER }}`"
title: "Update gpuCI `RAPIDS_VER` to `${{ env.NEW_CUDF_VER }}`"
team-reviewers: "dask/gpu"
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: "upgrade-gpuci-rapids"
body: |
A new cuDF nightly version has been detected.
New cuDF and ucx-py nightly versions have been detected.

Updated `axis.yaml` to use `${{ env.RAPIDS_VER }}`.
Updated `axis.yaml` to use `${{ env.NEW_CUDF_VER }}`.