Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-39621][PYTHON][TESTS] Make run-tests.py robust by avoiding rmtree on MacOS #37010

Closed
wants to merge 1 commit into from
Closed

Conversation

dongjoon-hyun
Copy link
Member

@dongjoon-hyun dongjoon-hyun commented Jun 27, 2022

What changes were proposed in this pull request?

This PR aims to make run-tests.py robust by avoiding rmtree on MacOS.

Why are the changes needed?

There exists a race condition in Python and it causes flakiness in MacOS

Does this PR introduce any user-facing change?

No.

How was this patch tested?

After passing CIs, this should be tested on MacOS.

@dongjoon-hyun dongjoon-hyun marked this pull request as ready for review June 27, 2022 17:59
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-39621][PYTHON][TESTS] Make run-tests.py robust by avoiding rmtree usage [SPARK-39621][PYTHON][TESTS] Make run-tests.py robust by avoiding rmtree on MacOS Jun 27, 2022
@dongjoon-hyun dongjoon-hyun changed the title [SPARK-39621][PYTHON][TESTS] Make run-tests.py robust by avoiding rmtree on MacOS [SPARK-39621][PYTHON][TESTS] Make run-tests.py robust by avoiding rmtree on MacOS Jun 27, 2022
@dongjoon-hyun
Copy link
Member Author

Hi, @huaxingao . Could you review this Python Test PR when you have some time, please?

@huaxingao
Copy link
Contributor

LGTM.

@dongjoon-hyun
Copy link
Member Author

Thank you so much, @huaxingao !

@dongjoon-hyun
Copy link
Member Author

dongjoon-hyun commented Jun 27, 2022

All tests passed. Merged to master/3.3/3.2/3.1.

dongjoon-hyun added a commit that referenced this pull request Jun 27, 2022
…rmtree` on MacOS

### What changes were proposed in this pull request?

This PR aims to make `run-tests.py` robust by avoiding `rmtree` on MacOS.

### Why are the changes needed?

There exists a race condition in Python and it causes flakiness in MacOS
- https://bugs.python.org/issue29699
- python/cpython#73885

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

After passing CIs, this should be tested on MacOS.

Closes #37010 from dongjoon-hyun/SPARK-39621.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 432945d)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun added a commit that referenced this pull request Jun 27, 2022
…rmtree` on MacOS

This PR aims to make `run-tests.py` robust by avoiding `rmtree` on MacOS.

There exists a race condition in Python and it causes flakiness in MacOS
- https://bugs.python.org/issue29699
- python/cpython#73885

No.

After passing CIs, this should be tested on MacOS.

Closes #37010 from dongjoon-hyun/SPARK-39621.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 432945d)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun added a commit that referenced this pull request Jun 27, 2022
…rmtree` on MacOS

This PR aims to make `run-tests.py` robust by avoiding `rmtree` on MacOS.

There exists a race condition in Python and it causes flakiness in MacOS
- https://bugs.python.org/issue29699
- python/cpython#73885

No.

After passing CIs, this should be tested on MacOS.

Closes #37010 from dongjoon-hyun/SPARK-39621.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 432945d)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun dongjoon-hyun deleted the SPARK-39621 branch June 27, 2022 19:55
sunchao pushed a commit to sunchao/spark that referenced this pull request Jun 2, 2023
…rmtree` on MacOS

This PR aims to make `run-tests.py` robust by avoiding `rmtree` on MacOS.

There exists a race condition in Python and it causes flakiness in MacOS
- https://bugs.python.org/issue29699
- python/cpython#73885

No.

After passing CIs, this should be tested on MacOS.

Closes apache#37010 from dongjoon-hyun/SPARK-39621.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 432945d)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants