This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new b4f4d9b7a7d4 [SPARK-49655][BUILD] Link `python3` to `python3.9` in
`spark-rm` Docker image
b4f4d9b7a7d4 is described below
commit b4f4d9b7a7d470158af39d75824bcc501e3506da
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Sun Sep 15 18:17:34 2024 -0700
[SPARK-49655][BUILD] Link `python3` to `python3.9` in `spark-rm` Docker
image
### What changes were proposed in this pull request?
This PR aims to link `python3` to `python3.9` in `spark-rm` docker image.
### Why are the changes needed?
We already link `python` to `python3.9`.
https://github.com/apache/spark/blob/931ab065df3952487028316ebd49c2895d947bf2/dev/create-release/spark-rm/Dockerfile#L139
We need to link `python3` to `python3.9` to fix Spark Documentation
generation failure in release script.
```
$ dev/create-release/do-release-docker.sh -d /run/user/1000/spark -s docs
...
= Building documentation...
Command: /opt/spark-rm/release-build.sh docs
Log file: docs.log
Command FAILED. Check full logs for details.
from
/opt/spark-rm/output/spark/docs/.local_ruby_bundle/ruby/3.0.0/gems/jekyll-4.3.3/lib/jekyll/command.rb:91:in
`process_with_graceful_fail'
```
The root cause is `mkdocs` module import error during
`error-conditions.html` generation.
### Does this PR introduce _any_ user-facing change?
No. This is a release-script.
### How was this patch tested?
Manual review.
After this PR, `error docs` generation succeeds.
```
************************
* Building error docs. *
************************
Generated: docs/_generated/error-conditions.html
```
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #48117 from dongjoon-hyun/SPARK-49655.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
dev/create-release/spark-rm/Dockerfile | 1 +
1 file changed, 1 insertion(+)
diff --git a/dev/create-release/spark-rm/Dockerfile
b/dev/create-release/spark-rm/Dockerfile
index e7f558b523d0..3cba72d042ed 100644
--- a/dev/create-release/spark-rm/Dockerfile
+++ b/dev/create-release/spark-rm/Dockerfile
@@ -137,6 +137,7 @@ RUN python3.9 -m pip list
RUN gem install --no-document "bundler:2.4.22"
RUN ln -s "$(which python3.9)" "/usr/local/bin/python"
+RUN ln -s "$(which python3.9)" "/usr/local/bin/python3"
WORKDIR /opt/spark-rm/output
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]