This is an automated email from the ASF dual-hosted git repository.

snuyanzin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new b6e38800e72 [hotfix][ci] Run python doc checks in parallel
b6e38800e72 is described below

commit b6e38800e7209ff5c30344ae095b246dfb78ce4f
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Fri Oct 30 07:51:33 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

Reply via email to