This is an automated email from the ASF dual-hosted git repository.
ruifengz 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 45879b772f1d [SPARK-55313][PYTHON][FOLLOW-UP] Only add condabin to
PATH for pip tests
45879b772f1d is described below
commit 45879b772f1dd829a27b4383df610c83be8645e1
Author: Tian Gao <[email protected]>
AuthorDate: Thu Feb 5 10:59:25 2026 +0800
[SPARK-55313][PYTHON][FOLLOW-UP] Only add condabin to PATH for pip tests
### What changes were proposed in this pull request?
Instead of adding `$CONDA/bin` to `PATH`, we add `$CONDA/condabin` which
only contains `conda`, not the installed `python`.
### Why are the changes needed?
If we add `$CONDA/bin`, it's basically equivalent to activate conda
environment. `python3.12`, the default python conda installs, will be in that
directory and shadowing our local python out - so we still don't have access to
`coverage`.
https://github.com/apache/spark/actions/runs/21667536859/job/62466955323
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
CI.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #54149 from gaogaotiantian/fix-conda-again.
Authored-by: Tian Gao <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
---
.github/workflows/build_and_test.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/build_and_test.yml
b/.github/workflows/build_and_test.yml
index 0d17919a0b54..eeb092b17de5 100644
--- a/.github/workflows/build_and_test.yml
+++ b/.github/workflows/build_and_test.yml
@@ -645,7 +645,7 @@ jobs:
shell: 'script -q -e -c "bash {0}"'
run: |
if [[ "$MODULES_TO_TEST" == *"pyspark-errors"* ]]; then
- export PATH=$CONDA/bin:$PATH
+ export PATH=$CONDA/condabin:$PATH
export SKIP_PACKAGING=false
echo "Python Packaging Tests Enabled!"
fi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]