apache / apache/datafusion

Ensure tmp files are cleaned up after tests in CI

Open
#8,116 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

### Is your feature request related to a problem or challenge?

As of the current main branch (commit#91c9d6f), some tmp files are created during testing but not deleted afterwards:
```bash
> git checkout 91c9d6f
> cargo test read_from_different_file_extension
> git status
Untracked files:
(use "git add ..." to include in what will be committed)
datafusion/core/output1.parquet
datafusion/core/output2.parquet.snappy
datafusion/core/output3.parquet.snappy.parquet
```

We can add some checks in CI to make sure no tmp files are created but not deleted during testing

### Describe the solution you'd like

Additional CI checks

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with `cargo test read_from_different_file_extension` at commit 91c9d6f, then inspect the generated files under `datafusion/core/`: `output1.parquet`, `output2.parquet.snappy`, and `output3.parquet.snappy.parquet`. Identify the CI check location and make the test run report leftover temporary files; done means the check catches untracked outputs without affecting clean tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ci-cd, testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.