From 679a7e14657ed615746dcafecb4b84cce4a18091 Mon Sep 17 00:00:00 2001 From: itholic Date: Tue, 22 Feb 2022 16:41:16 +0900 Subject: [PATCH] [SPARK-38279][TESTS][3.2] Pin MarkupSafe to 2.0.1 fix linter failure This PR proposes to pin the Python package `markupsafe` to 2.0.1 to fix the CI failure as below. ``` ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/runner/work/_temp/setup-sam-43osIE/.venv/lib/python3.10/site-packages/markupsafe/__init__.py) ``` Since `markupsafe==2.1.0` has removed `soft_unicode`, `from markupsafe import soft_unicode` no longer working properly. See https://github.com/aws/aws-sam-cli/issues/3661 for more detail. To fix the CI failure on branch-3.2 No. The existing tests are should be passed Closes #35602 from itholic/SPARK-38279. Authored-by: itholic Signed-off-by: Hyukjin Kwon (cherry picked from commit 79099cf7baf6e094884b5f77e82a4915272f15c5) Signed-off-by: Hyukjin Kwon --- .github/workflows/build_and_test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index d4a31b6045c17..78f3773a40015 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -329,7 +329,9 @@ jobs: - name: Install dependencies for documentation generation run: | apt-get install -y libcurl4-openssl-dev pandoc - python3.6 -m pip install "sphinx<3.5.0" mkdocs numpy + # Pin the MarkupSafe to 2.0.1 to resolve the CI error. + # See also https://issues.apache.org/jira/browse/SPARK-38279. + python3.6 -m pip install "sphinx<3.5.0" mkdocs numpy 'markupsafe==2.0.1' apt-get update -y apt-get install -y ruby ruby-dev gem install jekyll jekyll-redirect-from rouge