From cb781fd9bea06f36e647895aaf664779fa711d0e Mon Sep 17 00:00:00 2001 From: Nicholas Chammas Date: Fri, 4 Sep 2026 09:51:19 -0400 Subject: [PATCH] print skip flags from Ruby build script --- .github/workflows/build_and_test.yml | 6 ------ docs/_plugins/build_api_docs.rb | 12 ++++++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index e28aaa6ca48fe..579ff330f2f52 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -1152,12 +1152,6 @@ jobs: if [ `./dev/is-changed.py -m $pyspark_modules` = false ]; then export SKIP_PYTHONDOC=1; fi if [ `./dev/is-changed.py -m sparkr` = false ]; then export SKIP_RDOC=1; fi fi - # Print the values of environment variables `SKIP_ERRORDOC`, `SKIP_SCALADOC`, `SKIP_PYTHONDOC`, `SKIP_RDOC` and `SKIP_SQLDOC` - echo "SKIP_ERRORDOC: $SKIP_ERRORDOC" - echo "SKIP_SCALADOC: $SKIP_SCALADOC" - echo "SKIP_PYTHONDOC: $SKIP_PYTHONDOC" - echo "SKIP_RDOC: $SKIP_RDOC" - echo "SKIP_SQLDOC: $SKIP_SQLDOC" cd docs bundle exec jekyll build - name: Tar documentation diff --git a/docs/_plugins/build_api_docs.rb b/docs/_plugins/build_api_docs.rb index 4b6251b804237..fab5cc8f1b338 100644 --- a/docs/_plugins/build_api_docs.rb +++ b/docs/_plugins/build_api_docs.rb @@ -33,6 +33,16 @@ def print_header(text) puts banner_bar end +def print_skip_flags + print_header "Skip flags enabled" + skip_flags = ENV.select { |name, value| name.start_with?('SKIP_') && value == '1' }.sort + if skip_flags.empty? + puts "None" + else + skip_flags.each { |name, value| puts "#{name}" } + end +end + def build_spark_if_necessary # If spark has already been compiled on the host, skip here. if ENV['SPARK_DOCS_IS_BUILT_ON_HOST'] == '1' @@ -356,6 +366,8 @@ def build_error_docs || raise("Error doc generation failed") end +print_skip_flags + if not (ENV['SKIP_ERRORDOC'] == '1') build_error_docs end