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

Add docs build job #1168

Merged
merged 58 commits into from
Feb 17, 2023
Merged
Show file tree
Hide file tree
Changes from 36 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
104997e
initial draft
AyodeAwe Jan 23, 2023
eb7a95a
Merge branch 'branch-23.02' into add_docs_build
AyodeAwe Jan 24, 2023
215b54e
update pr.yaml
AyodeAwe Jan 24, 2023
b25ddea
update dependencies.yaml
AyodeAwe Jan 24, 2023
8f52e85
update build.sh
AyodeAwe Jan 24, 2023
925001f
Merge branch 'add_docs_build' of github.com:AyodeAwe/raft into add_do…
AyodeAwe Jan 24, 2023
cb7ebcb
chmod
AyodeAwe Jan 24, 2023
ec94157
update deps
AyodeAwe Jan 25, 2023
dae6cf1
fix typo
AyodeAwe Jan 25, 2023
0154048
install correct packages
AyodeAwe Jan 25, 2023
7c3dd50
Merge branch 'branch-23.02' into add_docs_build
cjnolet Jan 25, 2023
f85bed5
Merge branch 'branch-23.02' into add_docs_build
cjnolet Jan 26, 2023
9d5f237
Merge branch 'branch-23.02' into add_docs_build
cjnolet Jan 26, 2023
366441c
fixes
AyodeAwe Jan 29, 2023
ceff188
Merge branch 'add_docs_build' of github.com:AyodeAwe/raft into add_do…
AyodeAwe Jan 29, 2023
9e82d96
run deps gen
AyodeAwe Jan 29, 2023
63ba747
Merge branch 'branch-23.02' into add_docs_build
cjnolet Jan 31, 2023
f4b1804
rm dup breathe
AyodeAwe Jan 31, 2023
4a59308
Merge branch 'add_docs_build' of github.com:AyodeAwe/raft into add_do…
AyodeAwe Jan 31, 2023
fc83081
update deps
AyodeAwe Jan 31, 2023
87eca7a
Fixing dependencies
cjnolet Feb 1, 2023
2828b36
Merge branch 'branch-23.02' into add_docs_build
cjnolet Feb 1, 2023
1127168
Updating deps
cjnolet Feb 1, 2023
9475404
Merge branch 'add_docs_build' of github.com:AyodeAwe/raft into add_do…
cjnolet Feb 1, 2023
74127aa
Yep
cjnolet Feb 1, 2023
448dc0a
Trying to use build.sh for docs
cjnolet Feb 1, 2023
e4b1a09
FIxing path
cjnolet Feb 1, 2023
5ddccc1
update build_docs.sh
AyodeAwe Feb 2, 2023
45fc62c
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 2, 2023
ebb5aba
fixes
AyodeAwe Feb 2, 2023
b2f7e15
Merge branch 'add_docs_build' of github.com:AyodeAwe/raft into add_do…
AyodeAwe Feb 2, 2023
26c9bf0
fixes
AyodeAwe Feb 3, 2023
abe121b
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 3, 2023
7def2ce
update deps
AyodeAwe Feb 3, 2023
04bae8f
Merge branch 'add_docs_build' of github.com:AyodeAwe/raft into add_do…
AyodeAwe Feb 3, 2023
b8542ae
Merge branch 'branch-23.04' into add_docs_build
cjnolet Feb 3, 2023
2a5ceab
rm CMake dependency for building Doxygen docs
ajschmidt8 Feb 7, 2023
46e59f0
update `build.sh` to reflect docs build changes
ajschmidt8 Feb 7, 2023
71ed614
rm unused Makefile option
ajschmidt8 Feb 7, 2023
f2630fa
rm `conf.py` `sys.path` insertions
ajschmidt8 Feb 7, 2023
7210072
update `conf.py` to point to Doxygen `_xml` location
ajschmidt8 Feb 7, 2023
75044b4
update `.gitignore` to ignore doc output paths
ajschmidt8 Feb 7, 2023
9b15d25
rm `cmake` and `ninja` from `docs` dependencies
ajschmidt8 Feb 7, 2023
9f18bbf
update `build_docs.sh`
ajschmidt8 Feb 7, 2023
1dfb44b
Merge branch-23.04 into add_docs_build
ajschmidt8 Feb 7, 2023
2927255
rm dead `.rst` doc files
ajschmidt8 Feb 7, 2023
06487e7
update `developer_guide.md` links
ajschmidt8 Feb 7, 2023
4a8852c
add `update-version.sh` entries for all docs files
ajschmidt8 Feb 7, 2023
eef92f8
Merge branch 'branch-23.04' into add_docs_build
AyodeAwe Feb 10, 2023
fe7e460
Merge branch 'branch-23.04' into add_docs_build
ajschmidt8 Feb 13, 2023
d38b246
updated shared workflows branch
ajschmidt8 Feb 13, 2023
21f1767
Merge remote-tracking branch 'upstream/branch-23.04' into add_docs_build
ajschmidt8 Feb 14, 2023
702396d
document missing arguments
ajschmidt8 Feb 15, 2023
5a128ed
fix `@file` directives
ajschmidt8 Feb 15, 2023
701eeee
rm extraneous header info
ajschmidt8 Feb 15, 2023
d3a20a6
fix typo
ajschmidt8 Feb 15, 2023
1ac2adf
Merge branch 'branch-23.04' into add_docs_build
cjnolet Feb 16, 2023
531e370
skip docs nightly
AyodeAwe Feb 17, 2023
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
11 changes: 11 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ jobs:
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
docs-build:
if: ${{ startsWith(github.ref, 'refs/heads/branch-') }}
needs: python-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@cuda-118
ajschmidt8 marked this conversation as resolved.
Show resolved Hide resolved
with:
build_type: branch
node_type: "gpu-latest-1"
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/build_docs.sh"
wheel-build-pylibraft:
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/wheels-manylinux-build.yml@cuda-118
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- conda-cpp-tests
- conda-python-build
- conda-python-tests
- docs-build
- wheel-build-pylibraft
- wheel-tests-pylibraft
- wheel-build-raft-dask
Expand Down Expand Up @@ -51,6 +52,16 @@ jobs:
uses: rapidsai/shared-action-workflows/.github/workflows/conda-python-tests.yaml@cuda-118
with:
build_type: pull-request
docs-build:
needs: conda-python-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/custom-job.yaml@cuda-118
ajschmidt8 marked this conversation as resolved.
Show resolved Hide resolved
with:
build_type: pull-request
node_type: "gpu-latest-1"
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/build_docs.sh"
wheel-build-pylibraft:
needs: checks
secrets: inherit
Expand Down
51 changes: 51 additions & 0 deletions ci/build_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/bin/bash
# Copyright (c) 2023, NVIDIA CORPORATION.

set -euo pipefail

rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh

rapids-dependency-file-generator \
--output conda \
--file_key docs \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml

rapids-dependency-file-generator \
--output requirements \
--file_key docs \
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee requirements.txt

rapids-mamba-retry env create --force -f env.yaml -n docs
conda activate docs
pip install -r requirements.txt

rapids-print-env

rapids-logger "Downloading artifacts from previous jobs"
CPP_CHANNEL=$(rapids-download-conda-from-s3 cpp)
PYTHON_CHANNEL=$(rapids-download-conda-from-s3 python)
VERSION_NUMBER=$(rapids-get-rapids-version-from-git)

rapids-mamba-retry install \
--channel "${CPP_CHANNEL}" \
--channel "${PYTHON_CHANNEL}" \
libraft-distance \
libraft-headers \
libraft-nn \
pylibraft \
raft-dask


# Build CPP docs
rapids-logger "Build CPP docs"
#pushd docs
#sphinx-build -b dirhtml source build -W
#popd
./build.sh docs -v -n


if [[ ${RAPIDS_BUILD_TYPE} == "branch" ]]; then
rapids-logger "Upload Docs to S3"
aws s3 sync --delete docs/build "s3://rapidsai-docs/raft/${VERSION_NUMBER}/build"
fi
7 changes: 7 additions & 0 deletions conda/environments/all_cuda-118_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ dependencies:
- doxygen>=1.8.20
- faiss-proc=*=cuda
- gcc_linux-64=9
- graphviz
- ipython
- libcublas-dev=11.11.3.6
- libcublas=11.11.3.6
- libcurand-dev=10.3.0.86
Expand All @@ -34,12 +36,17 @@ dependencies:
- libcusparse=11.7.5.86
- libfaiss>=1.7.1=cuda*
- ninja
- numpydoc
- pip
- pydata-sphinx-theme
- pytest
- pytest-cov
- recommonmark
- rmm=23.04
- scikit-build>=0.13.1
- scikit-learn
- scipy
- sphinx-copybutton
- sphinx-markdown-tables
- sysroot_linux-64==2.17
- ucx-proc=*=gpu
Expand Down
26 changes: 18 additions & 8 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ files:
- build
- cudatoolkit
- develop
- doc
- docs_build
- run
- test_python
test_cpp:
Expand All @@ -27,6 +27,12 @@ files:
includes:
- checks
- py_version
docs:
output: none
includes:
- cudatoolkit
- docs_build
- py_version
channels:
- rapidsai
- rapidsai-nightly
Expand Down Expand Up @@ -131,18 +137,22 @@ dependencies:
- *libcusolver114
- *libcusparse_dev114
- *libcusparse114
doc:
docs_build:
common:
- output_types: [conda, requirements]
packages:
- breathe
- output_types: [requirements]
packages:
- sphinx_markdown_tables
- output_types: [conda]
packages:
- breathe
- cmake>=3.23.1,!=3.25.0
- doxygen>=1.8.20
- graphviz
- ipython
- ninja
- numpydoc
- pydata-sphinx-theme
- sphinx-copybutton
- sphinx-markdown-tables
- recommonmark
- pip
py_version:
specific:
- output_types: conda
Expand Down