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

Improve temporary directory handling in cuML #5527

Merged
merged 3 commits into from
Jul 31, 2023

Conversation

jakirkham
Copy link
Member

Rely on pytest or tempfile to create temporary directories instead of hard-coding paths to /tmp. This will be more robust across runs and deployments.

@jakirkham jakirkham requested a review from a team as a code owner July 26, 2023 20:50
@github-actions github-actions bot added the Cython / Python Cython or Python issue label Jul 26, 2023
@jakirkham jakirkham added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jul 26, 2023
@jakirkham
Copy link
Member Author

CI failures should be addressed by PR ( #5529 )

@jakirkham
Copy link
Member Author

jakirkham commented Jul 28, 2023

Merging in latest branch-23.08 to include recent fixes

@jakirkham
Copy link
Member Author

Looks like it is passing! 🎉

@jakirkham
Copy link
Member Author

cc @dantegd

@dantegd
Copy link
Member

dantegd commented Jul 31, 2023

/merge

@rapids-bot rapids-bot bot merged commit 72b2925 into rapidsai:branch-23.08 Jul 31, 2023
49 checks passed
@jakirkham jakirkham deleted the fix_tmp_pth branch July 31, 2023 18:09
Comment on lines +29 to +30
self._execute(["rm", "-rf", self.tmp_dir.name])
self._execute(["mkdir", "-p", self.tmp_dir.name])
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One additional improvement would be to call the Python builtin functions for these. Submitted PR ( #5537 ) doing just that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants