Skip to content

Commit 41a7461

Browse files
ci: fix docs build [backport 2.21] (#13364)
Backport #12567 into 2.21 ## Checklist - [x] PR author has checked that all the criteria below are met - The PR description includes an overview of the change - The PR description articulates the motivation for the change - The change includes tests OR the PR description describes a testing strategy - The PR description notes risks associated with the change, if any - Newly-added code is easy to change - The change follows the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) - The change includes or references documentation updates if necessary - Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [x] Reviewer has checked that all the criteria below are met - Title is accurate - All changes are related to the pull request's stated goal - Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes - Testing strategy adequately addresses listed risks - Newly-added code is easy to change - Release note makes sense to a user of the library - If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment - Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting) Co-authored-by: Emmett Butler <[email protected]>
1 parent 83860ae commit 41a7461

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

scripts/docs/build.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
set -eux
33

44
# DEV: unless it's built with editable, following sphinx-build fails
5-
if [ -z ${CIRCLECI+x} ]; then
6-
CMAKE_BUILD_PARALLEL_LEVEL=$(nproc) pip install -v -e .
7-
fi
5+
CMAKE_BUILD_PARALLEL_LEVEL=12 CARGO_BUILD_JOBS=12 pip install -v -e .
86

97
if [[ "$(uname)" == "Darwin" ]]; then
108
export PYENCHANT_LIBRARY_PATH=/opt/homebrew/lib/libenchant-2.dylib

scripts/gen_gitlab_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def gen_build_docs() -> None:
113113
from needs_testrun import pr_matches_patterns
114114

115115
if pr_matches_patterns(
116-
{"docker*", "docs/*", "ddtrace/*", "scripts/docs", "releasenotes/*", "benchmarks/README.rst"}
116+
{"docker*", "docs/*", "ddtrace/*", "scripts/docs/*", "releasenotes/*", "benchmarks/README.rst"}
117117
):
118118
with TESTS_GEN.open("a") as f:
119119
print("build_docs:", file=f)

0 commit comments

Comments
 (0)