This is an automated email from the ASF dual-hosted git repository.
snuyanzin pushed a commit to branch release-2.4
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-2.4 by this push:
new d5cc8cd8207 [hotfix][ci] Run python doc checks in parallel
d5cc8cd8207 is described below
commit d5cc8cd820798f4c642f48fb39ecf887b515bb79
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Tue Nov 3 23:26:16 2026 +0100
[hotfix][ci] Run python doc checks in parallel
---
flink-python/dev/lint-python.sh | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/flink-python/dev/lint-python.sh b/flink-python/dev/lint-python.sh
index 5b1cf8e8429..bb10e25759c 100755
--- a/flink-python/dev/lint-python.sh
+++ b/flink-python/dev/lint-python.sh
@@ -625,10 +625,19 @@ function sphinx_check() {
# the return value of a pipeline is the status of the last command to exit
# with a non-zero status or zero if no command exited with a non-zero
status
set -o pipefail
+ # generate autosummary stubs once, otherwise the parallel builds below
race writing them
+ (PYFLINK_GATEWAY_DISABLED=1 PYTHONPATH="$(realpath
../lib/py4j-*-src.zip):.." \
+ "$DOCS_ENV/bin/sphinx-autogen" -t _templates \
+ $(find reference -name '*.rst' -not -path '*/api/*')) 2>&1 | tee -a
$LOG_FILE
+ if [ $? -ne 0 ]; then
+ print_function "STAGE" "sphinx checks... [FAILED]"
+ exit 1;
+ fi
+
# disable the gateway, because otherwise it tries to find FLINK_HOME to
access Java classes.
# Not exported: the tox check runs after this one and needs the gateway.
(PYFLINK_GATEWAY_DISABLED=1 SPHINXBUILD="$SPHINX_PATH"
SPHINXINTL="$DOCS_ENV/bin/sphinx-intl" \
- SPHINXOPTS="-a -W" make html-zh) 2>&1 | tee -a $LOG_FILE
+ SPHINXOPTS="-a -W" make -j2 html-zh) 2>&1 | tee -a $LOG_FILE
SPHINXBUILD_STATUS=$?
if [ $SPHINXBUILD_STATUS -ne 0 ]; then