Skip to content
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

[CI] Automatically bump Rapids version in containers #9234

Merged
merged 4 commits into from
Jun 2, 2023
Merged
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
62 changes: 0 additions & 62 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,85 +9,23 @@ updates:
directory: "/jvm-packages"
schedule:
interval: "daily"
ignore:
# Pin Scala version to 2.12.x
- dependency-name: "org.scala-lang:scala-compiler"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-reflect"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-library"
versions: [">= 2.13.0"]
- package-ecosystem: "maven"
directory: "/jvm-packages/xgboost4j"
schedule:
interval: "daily"
ignore:
# Pin Scala version to 2.12.x
- dependency-name: "org.scala-lang:scala-compiler"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-reflect"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-library"
versions: [">= 2.13.0"]
- package-ecosystem: "maven"
directory: "/jvm-packages/xgboost4j-gpu"
schedule:
interval: "daily"
ignore:
# Pin Scala version to 2.12.x
- dependency-name: "org.scala-lang:scala-compiler"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-reflect"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-library"
versions: [">= 2.13.0"]
- package-ecosystem: "maven"
directory: "/jvm-packages/xgboost4j-example"
schedule:
interval: "daily"
ignore:
# Pin Scala version to 2.12.x
- dependency-name: "org.scala-lang:scala-compiler"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-reflect"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-library"
versions: [">= 2.13.0"]
- package-ecosystem: "maven"
directory: "/jvm-packages/xgboost4j-spark"
schedule:
interval: "daily"
ignore:
# Pin Scala version to 2.12.x
- dependency-name: "org.scala-lang:scala-compiler"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-reflect"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-library"
versions: [">= 2.13.0"]
# Pin Spark version to 3.0.x
- dependency-name: "org.apache.spark:spark-core_2.12"
versions: [">= 3.1.0"]
- dependency-name: "org.apache.spark:spark-sql_2.12"
versions: [">= 3.1.0"]
- dependency-name: "org.apache.spark:spark-mllib_2.12"
versions: [">= 3.1.0"]
- package-ecosystem: "maven"
directory: "/jvm-packages/xgboost4j-spark-gpu"
schedule:
interval: "daily"
ignore:
# Pin Scala version to 2.12.x
- dependency-name: "org.scala-lang:scala-compiler"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-reflect"
versions: [">= 2.13.0"]
- dependency-name: "org.scala-lang:scala-library"
versions: [">= 2.13.0"]
# Pin Spark version to 3.0.x
- dependency-name: "org.apache.spark:spark-core_2.12"
versions: [">= 3.1.0"]
- dependency-name: "org.apache.spark:spark-sql_2.12"
versions: [">= 3.1.0"]
- dependency-name: "org.apache.spark:spark-mllib_2.12"
versions: [">= 3.1.0"]
37 changes: 37 additions & 0 deletions .github/workflows/update_rapids.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: update-rapids

on:
schedule:
- cron: "0 7 * * *" # Run once daily

permissions:
contents: read # to fetch code (actions/checkout)

defaults:
run:
shell: bash -l {0}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # To use GitHub CLI

jobs:
update-rapids:
name: Check latest RAPIDS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Check latest RAPIDS and update conftest.sh
run: |
bash tests/buildkite/update-rapids.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
add-paths: tests/buildkite
branch: create-pull-request/update-rapids
base: master
if: github.ref == 'refs/heads/master'
2 changes: 1 addition & 1 deletion tests/buildkite/conftest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set -x

CUDA_VERSION=11.8.0
NCCL_VERSION=2.16.5-1
RAPIDS_VERSION=23.02
RAPIDS_VERSION=23.04
SPARK_VERSION=3.4.0
JDK_VERSION=8

Expand Down
10 changes: 10 additions & 0 deletions tests/buildkite/update-rapids.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

set -euo pipefail

LATEST_RAPIDS_VERSION=$(gh api repos/rapidsai/cuml/releases/latest --jq '.name' | sed -e 's/^v\([[:digit:]]\+\.[[:digit:]]\+\).*/\1/')
echo "LATEST_RAPIDS_VERSION = $LATEST_RAPIDS_VERSION"

PARENT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )

sed -i "s/^RAPIDS_VERSION=[[:digit:]]\+\.[[:digit:]]\+/RAPIDS_VERSION=${LATEST_RAPIDS_VERSION}/" $PARENT_PATH/conftest.sh