Skip to content

Commit 9f9db2b

Browse files
committed
Various fixes
1 parent cb8f63f commit 9f9db2b

File tree

8 files changed

+160
-13
lines changed

8 files changed

+160
-13
lines changed

.github/dependabot.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "maven"
9+
directory: "/jvm-packages"
10+
schedule:
11+
interval: "monthly"
12+
- package-ecosystem: "maven"
13+
directory: "/jvm-packages/xgboost4j"
14+
schedule:
15+
interval: "monthly"
16+
- package-ecosystem: "maven"
17+
directory: "/jvm-packages/xgboost4j-gpu"
18+
schedule:
19+
interval: "monthly"
20+
- package-ecosystem: "maven"
21+
directory: "/jvm-packages/xgboost4j-example"
22+
schedule:
23+
interval: "monthly"
24+
- package-ecosystem: "maven"
25+
directory: "/jvm-packages/xgboost4j-spark"
26+
schedule:
27+
interval: "monthly"
28+
- package-ecosystem: "maven"
29+
directory: "/jvm-packages/xgboost4j-spark-gpu"
30+
schedule:
31+
interval: "monthly"
32+
- package-ecosystem: "github-actions"
33+
directory: /
34+
schedule:
35+
interval: "monthly"

.github/lock.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Configuration for lock-threads - https://github.com/dessant/lock-threads
2+
3+
# Number of days of inactivity before a closed issue or pull request is locked
4+
daysUntilLock: 90
5+
6+
# Issues and pull requests with these labels will not be locked. Set to `[]` to disable
7+
exemptLabels:
8+
- feature-request
9+
10+
# Label to add before locking, such as `outdated`. Set to `false` to disable
11+
lockLabel: false
12+
13+
# Comment to post before locking. Set to `false` to disable
14+
lockComment: false
15+
16+
# Assign `resolved` as the reason for locking. Set to `false` to disable
17+
setLockReason: true
18+
19+
# Limit to only `issues` or `pulls`
20+
# only: issues
21+
22+
# Optionally, specify configuration settings just for `issues` or `pulls`
23+
# issues:
24+
# exemptLabels:
25+
# - help-wanted
26+
# lockLabel: outdated
27+
28+
# pulls:
29+
# daysUntilLock: 30
30+
31+
# Repository to extend settings from
32+
# _extends: repo

.github/workflows/freebsd.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: FreeBSD
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read # to fetch code (actions/checkout)
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 20
16+
name: A job to run test in FreeBSD
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
submodules: 'true'
21+
- name: Test in FreeBSD
22+
id: test
23+
uses: vmactions/freebsd-vm@v1
24+
with:
25+
usesh: true
26+
prepare: |
27+
pkg install -y cmake git ninja googletest
28+
29+
run: |
30+
mkdir build
31+
cd build
32+
cmake .. -GNinja -DGOOGLE_TEST=ON
33+
ninja -v
34+
./testxgboost

.github/workflows/r_nold.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Run expensive R tests with the help of rhub. Only triggered by a pull request review
2+
# See discussion at https://github.com/dmlc/xgboost/pull/6378
3+
4+
name: XGBoost-R-noLD
5+
6+
on:
7+
pull_request_review_comment:
8+
types: [created]
9+
10+
permissions:
11+
contents: read # to fetch code (actions/checkout)
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
test-R-noLD:
19+
if: github.event.comment.body == '/gha run r-nold-test' && contains('OWNER,MEMBER,COLLABORATOR', github.event.comment.author_association)
20+
timeout-minutes: 120
21+
runs-on: ubuntu-latest
22+
container:
23+
image: rhub/debian-gcc-devel-nold
24+
steps:
25+
- name: Install git and system packages
26+
shell: bash
27+
run: |
28+
apt update && apt install libcurl4-openssl-dev libssl-dev libssh2-1-dev libgit2-dev libglpk-dev libxml2-dev libharfbuzz-dev libfribidi-dev git -y
29+
30+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
31+
with:
32+
submodules: 'true'
33+
34+
- name: Install dependencies
35+
shell: bash -l {0}
36+
run: |
37+
/tmp/R-devel/bin/Rscript -e "source('./R-package/tests/helper_scripts/install_deps.R')"
38+
39+
- name: Run R tests
40+
shell: bash
41+
run: |
42+
cd R-package && \
43+
/tmp/R-devel/bin/R CMD INSTALL . && \
44+
/tmp/R-devel/bin/R -q -e "library(testthat); setwd('tests'); source('testthat.R')"

.github/workflows/sycl_tests.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on: [push, pull_request]
55
permissions:
66
contents: read # to fetch code (actions/checkout)
77

8+
defaults:
9+
run:
10+
shell: bash -l {0}
11+
812
concurrency:
913
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1014
cancel-in-progress: true
@@ -37,20 +41,16 @@ jobs:
3741
conda info
3842
conda list
3943
- name: Build and install XGBoost
40-
shell: bash -l {0}
4144
run: |
4245
mkdir build
4346
cd build
44-
cmake .. -DGOOGLE_TEST=ON -DUSE_DMLC_GTEST=ON -DPLUGIN_SYCL=ON -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
45-
make -j$(nproc)
46-
- name: Run gtest binary for SYCL
47-
run: |
48-
cd build
49-
./testxgboost --gtest_filter=Sycl*
50-
- name: Run gtest binary for non SYCL
47+
cmake .. -DGOOGLE_TEST=ON -DUSE_DMLC_GTEST=ON -DPLUGIN_SYCL=ON -DCMAKE_CXX_COMPILER=g++ \
48+
-DCMAKE_C_COMPILER=gcc -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -GNinja
49+
ninja
50+
- name: Run gtest
5151
run: |
5252
cd build
53-
./testxgboost --gtest_filter=-Sycl*
53+
./testxgboost
5454
5555
python-sycl-tests-on-ubuntu:
5656
name: Test XGBoost Python package with SYCL on ${{ matrix.os }}
@@ -82,8 +82,9 @@ jobs:
8282
run: |
8383
mkdir build
8484
cd build
85-
cmake .. -DPLUGIN_SYCL=ON -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc -DCMAKE_PREFIX_PATH=$CONDA_PREFIX
86-
make -j$(nproc)
85+
cmake .. -DPLUGIN_SYCL=ON -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc \
86+
-DCMAKE_PREFIX_PATH=$CONDA_PREFIX -GNinja
87+
ninja
8788
- name: Install Python package
8889
run: |
8990
cd python-package

ops/conda_env/linux_sycl_test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dependencies:
1818
- pytest-timeout
1919
- pytest-cov
2020
- dask
21+
- ninja
2122
- dpcpp_linux-64
2223
- onedpl-devel
2324
- intel-openmp

ops/docker/dockerfile/Dockerfile.gpu_build_rockylinux8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ RUN set -ex; \
7676

7777
# Default entry-point to use if running locally
7878
# It will preserve attributes of created files
79-
COPY entrypoint.sh /scripts/
79+
COPY docker/entrypoint.sh /scripts/
8080

8181
WORKDIR /workspace
8282
ENTRYPOINT ["/scripts/entrypoint.sh"]

ops/pipeline/build-jvm-doc-impl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ mvn --no-transfer-progress javadoc:javadoc -Pdocs
2727

2828
# Package JVM docs in a tarball
2929
mkdir -p tmp/scaladocs
30-
cp -rv xgboost4j/target/site/apidocs/ ./tmp/javadocs/
30+
cp -rv xgboost4j/target/reports/apidocs/ ./tmp/javadocs/
3131
cp -rv xgboost4j/target/site/scaladocs/ ./tmp/scaladocs/xgboost4j/
3232
cp -rv xgboost4j-spark/target/site/scaladocs/ ./tmp/scaladocs/xgboost4j-spark/
3333
cp -rv xgboost4j-spark-gpu/target/site/scaladocs/ ./tmp/scaladocs/xgboost4j-spark-gpu/

0 commit comments

Comments
 (0)