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 #3157

Merged
merged 45 commits into from
Feb 28, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
a1ebed9
initial docs build draft
AyodeAwe Jan 18, 2023
50b27ba
add dgl
AyodeAwe Jan 19, 2023
1c8e795
dgl
AyodeAwe Jan 20, 2023
eeb3e17
dgl fix
AyodeAwe Jan 23, 2023
bd9eb12
pin sphinx
AyodeAwe Jan 24, 2023
0531b18
Merge branch 'branch-23.02' into add-docs-build
AyodeAwe Jan 24, 2023
9083ec2
fix typos
AyodeAwe Jan 27, 2023
2b43932
Merge branch 'branch-23.02' of github.com:rapidsai/cugraph into add-d…
AyodeAwe Jan 27, 2023
fc28fce
update conda yaml
AyodeAwe Jan 27, 2023
be224af
Merge branch 'branch-23.02' of github.com:rapidsai/cugraph into add-d…
AyodeAwe Jan 27, 2023
4fe5a46
fix commit
AyodeAwe Jan 27, 2023
899f274
log install cmd
AyodeAwe Jan 28, 2023
c5d5e9b
Merge branch 'branch-23.02' into add-docs-build
AyodeAwe Jan 29, 2023
9c37bbb
add -W flag
AyodeAwe Jan 29, 2023
43fff75
Merge branch 'add-docs-build' of github.com:AyodeAwe/cugraph into add…
AyodeAwe Jan 29, 2023
9e332c9
cast html_theme_path to list
AyodeAwe Jan 30, 2023
820fbc4
Merge branch 'branch-23.04' into add-docs-build
AyodeAwe Feb 10, 2023
42b9b56
update shared workflows branch
ajschmidt8 Feb 13, 2023
ad6cc26
Merge branch 'branch-23.04' into add-docs-build
ajschmidt8 Feb 13, 2023
0d299a7
Merge branch 'branch-23.04' into add-docs-build
ajschmidt8 Feb 17, 2023
5bc74bd
prevent nightly docs runs
AyodeAwe Feb 17, 2023
c14be0d
update `.gitignore` to ignore doc build dirs
ajschmidt8 Feb 17, 2023
e04a25c
add `graphviz` to doc build deps
ajschmidt8 Feb 17, 2023
2031345
rm unnecessary `conf.py` header lines
ajschmidt8 Feb 17, 2023
a59089e
remove `conf.py` imports
ajschmidt8 Feb 17, 2023
a88b1a0
rm unnecessary `rtd` lines in `conf.py`
ajschmidt8 Feb 17, 2023
f1d70dd
fix some easy formatting warnings
ajschmidt8 Feb 17, 2023
f689804
fix "critical" build warnings
ajschmidt8 Feb 17, 2023
31bf955
apply `cugraph-dgl` patch from Vibhu
ajschmidt8 Feb 17, 2023
c93d31b
fix copyright header
ajschmidt8 Feb 17, 2023
ccc006a
rm dead doc import
ajschmidt8 Feb 18, 2023
d656d56
fix "critical" build warnings
ajschmidt8 Feb 18, 2023
0ef649b
rm `-W` from `sphinx-build` since too many warnings
ajschmidt8 Feb 18, 2023
445c1ee
unrelated CI fix for wheels
ajschmidt8 Feb 18, 2023
bb8b4c4
re-add erroneously removed final new lines
ajschmidt8 Feb 18, 2023
10c37b3
update dependency list name
ajschmidt8 Feb 18, 2023
2e5ac81
rm redundancies
AyodeAwe Feb 21, 2023
eecdc70
Merge branch 'branch-23.04' into add-docs-build
AyodeAwe Feb 22, 2023
baefd2b
ignore flake warning
AyodeAwe Feb 22, 2023
166f29c
Merge branch 'branch-23.04' into add-docs-build
AyodeAwe Feb 22, 2023
434b1ba
Revert "ignore flake warning"
AyodeAwe Feb 22, 2023
bbde5be
dgl.dataloading fix
AyodeAwe Feb 22, 2023
7aa61c8
less verbosity
AyodeAwe Feb 23, 2023
20a0eab
Merge branch 'branch-23.04' into add-docs-build
AyodeAwe Feb 27, 2023
9531f96
rm set cmds
AyodeAwe Feb 27, 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,3 +52,14 @@ 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"
11 changes: 11 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
- conda-notebook-tests
- conda-python-build
- conda-python-tests
- docs-build
secrets: inherit
uses: rapidsai/shared-action-workflows/.github/workflows/pr-builder.yaml@main
checks:
Expand Down Expand Up @@ -58,3 +59,13 @@ jobs:
arch: "amd64"
container_image: "rapidsai/ci:latest"
run_script: "ci/test_notebooks.sh"
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"
59 changes: 59 additions & 0 deletions ci/build_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/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-mamba-retry env create --force -f env.yaml -n test
conda activate test

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}" \
libcugraph \
pylibcugraph \
cugraph \
cugraph-pyg \
cugraph-service-server \
cugraph-service-client \
libcugraph_etl

# This command installs `cugraph-dgl` without its dependencies
# since this package can currently only run in `11.6` CTK environments
# due to the dependency version specifications in its conda recipe.
rapids-mamba-retry install "${PYTHON_CHANNEL}/linux-64/cugraph-dgl-*.tar.bz2"


# Build Doxygen docs
AyodeAwe marked this conversation as resolved.
Show resolved Hide resolved
rapids-logger "Build Doxygen docs"
pushd cpp/doxygen
doxygen Doxyfile
popd

# Build Python docs
AyodeAwe marked this conversation as resolved.
Show resolved Hide resolved
rapids-logger "Build Sphinx docs"
pushd docs/cugraph
sphinx-build -b dirhtml source _html
sphinx-build -b text source _text
popd


if [[ ${RAPIDS_BUILD_TYPE} == "branch" ]]; then
aws s3 sync --delete docs/cugraph/_html "s3://rapidsai-docs/cugraph/${VERSION_NUMBER}/html"
aws s3 sync --delete docs/cugraph/_text "s3://rapidsai-docs/cugraph/${VERSION_NUMBER}/txt"
aws s3 sync --delete cpp/doxygen/html "s3://rapidsai-docs/libcugraph/${VERSION_NUMBER}/html"
fi
9 changes: 0 additions & 9 deletions conda/environments/all_cuda-115_arch-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ dependencies:
- dask-cudf=23.02.*
- dask>=2022.12.0
- distributed>=2022.12.0
- doxygen
- gmock=1.10.0
- gtest=1.10.0
- ipython
Expand All @@ -28,35 +27,27 @@ dependencies:
- libraft-distance=23.02.*
- libraft-headers=23.02.*
- librmm=23.02.*
- nbsphinx
- nccl>=2.9.9
- networkx>=2.5.1
- ninja
- notebook>=0.5.0
- numpydoc
- nvcc_linux-64=11.5
- ogb
- openmpi
- pip
- pre-commit
- py
- pydata-sphinx-theme
- pylibraft=23.02.*
- pytest
- pytest-cov
- python-louvain
- raft-dask=23.02.*
- rapids-pytest-benchmark
- recommonmark
- requests
- rmm=23.02.*
- scikit-build>=0.13.1
- scikit-learn>=0.23.1
- scipy
- sphinx
- sphinx-copybutton
- sphinx-markdown-tables
- sphinxcontrib-websupport
- ucx-proc=*=gpu
- ucx-py=0.30.*
name: all_cuda-115_arch-x86_64
13 changes: 10 additions & 3 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ files:
- common_python_test
- cpp_build
- cudatoolkit
- doc
- python_build
- test_notebook
- test_python
Expand All @@ -20,6 +19,12 @@ files:
includes:
- checks
- py_version
docs:
output: none
includes:
- cudatoolkit
- py_version
- docs_build
test_cpp:
output: none
includes:
Expand Down Expand Up @@ -133,7 +138,7 @@ dependencies:
- scikit-build>=0.13.1
- ucx-proc=*=gpu
- ucx-py=0.30.*
doc:
docs_build:
common:
- output_types: [conda]
packages:
Expand All @@ -142,7 +147,9 @@ dependencies:
- numpydoc
- pydata-sphinx-theme
- recommonmark
- sphinx
- sphinx<6
- sphinx_rtd_theme
- ipython
- sphinxcontrib-websupport
- sphinx-markdown-tables
- sphinx-copybutton
Expand Down