[SPARK-55392][PYTHON][INFRA] Upgrade Python 3.14 test image to Ubuntu 24.04#54175
Closed
zhengruifeng wants to merge 5 commits intoapache:masterfrom
Closed
[SPARK-55392][PYTHON][INFRA] Upgrade Python 3.14 test image to Ubuntu 24.04#54175zhengruifeng wants to merge 5 commits intoapache:masterfrom
zhengruifeng wants to merge 5 commits intoapache:masterfrom
Conversation
JIRA Issue Information=== Improvement SPARK-55392 === This comment was automatically generated by GitHub Actions |
9cfb10f to
9b670b6
Compare
dongjoon-hyun
approved these changes
Feb 6, 2026
| # Setup virtual environment | ||
| ENV VIRTUAL_ENV=/opt/spark-venv | ||
| RUN python3.14 -m venv --without-pip $VIRTUAL_ENV | ||
| ENV PATH="$VIRTUAL_ENV/bin:$PATH" |
Contributor
There was a problem hiding this comment.
This is a bit weird, why don't we activate virtual env normally? I think it does more than changing PATH. Why do we need the venv in the first place?
Contributor
Author
There was a problem hiding this comment.
this is a AI-recommended approach, and the source is https://pythonspeed.com/articles/activate-virtualenv-dockerfile/
FROM python:3.12-slim
RUN python3 -m venv /opt/venv
# This is wrong!
RUN . /opt/venv/bin/activate
# Install dependencies:
COPY requirements.txt .
RUN pip install -r requirements.txt
# Run the application:
COPY myapp.py .
CMD ["python", "myapp.py"]
it said the the normal way to activate venv only take effect in its RUN command, I didn't try it though
Contributor
Author
|
merged to master |
Yicong-Huang
pushed a commit
to Yicong-Huang/spark
that referenced
this pull request
Feb 8, 2026
… 24.04
### What changes were proposed in this pull request?
Upgrade Python 3.14 test image to Ubuntu 24.04
### Why are the changes needed?
to test with a newer OS version
### Does this PR introduce _any_ user-facing change?
no, infra-only
### How was this patch tested?
PR builder with
```
default: '{"PYSPARK_IMAGE_TO_TEST": "python-314", "PYTHON_TO_TEST": "python3.14"}'
```
https://github.com/zhengruifeng/spark/actions/runs/21749581852/job/62744447326
### Was this patch authored or co-authored using generative AI tooling?
No
Closes apache#54175 from zhengruifeng/ubuntu_24_py_14.
Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
rpnkv
pushed a commit
to rpnkv/spark
that referenced
this pull request
Feb 18, 2026
… 24.04
### What changes were proposed in this pull request?
Upgrade Python 3.14 test image to Ubuntu 24.04
### Why are the changes needed?
to test with a newer OS version
### Does this PR introduce _any_ user-facing change?
no, infra-only
### How was this patch tested?
PR builder with
```
default: '{"PYSPARK_IMAGE_TO_TEST": "python-314", "PYTHON_TO_TEST": "python3.14"}'
```
https://github.com/zhengruifeng/spark/actions/runs/21749581852/job/62744447326
### Was this patch authored or co-authored using generative AI tooling?
No
Closes apache#54175 from zhengruifeng/ubuntu_24_py_14.
Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Upgrade Python 3.14 test image to Ubuntu 24.04
Why are the changes needed?
to test with a newer OS version
Does this PR introduce any user-facing change?
no, infra-only
How was this patch tested?
PR builder with
https://github.com/zhengruifeng/spark/actions/runs/21749581852/job/62744447326
Was this patch authored or co-authored using generative AI tooling?
No