Skip to content

Use random tmp names for index files in tests#837

Merged
rapids-bot[bot] merged 3 commits intorapidsai:branch-25.06from
achirkin:enh-tests-tmp-index-files
Apr 24, 2025
Merged

Use random tmp names for index files in tests#837
rapids-bot[bot] merged 3 commits intorapidsai:branch-25.06from
achirkin:enh-tests-tmp-index-files

Conversation

@achirkin
Copy link
Copy Markdown
Contributor

Replace all hard-coded index file names in tests with a randomly-generated unique paths in the system temporary folder and delete the files after use.

This is a slightly opinionated convenience PR to give the following benefits:

  • Temporary index files do not clutter the project folder
  • One can run multiple test instances in parallel without the danger of data corruption (e.g. for stress-testing)
  • The tests do not fail if the current folder is read-only

@achirkin achirkin added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Apr 23, 2025
@achirkin achirkin self-assigned this Apr 23, 2025
@achirkin achirkin requested a review from a team as a code owner April 23, 2025 08:40
@achirkin achirkin moved this to In Progress in Unstructured Data Processing Apr 23, 2025
@github-actions github-actions Bot added the cpp label Apr 23, 2025
@achirkin
Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot rapids-bot Bot merged commit c3a77ec into rapidsai:branch-25.06 Apr 24, 2025
66 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Unstructured Data Processing Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cpp improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants