huggingface / huggingface/leLab
Bug: failed recording leaves an empty dataset directory behind
- Dominant language
- TypeScript
- Stars
- 171
- Forks
- 60
- Avg merge
- 1d 52m
- Merged PRs (30d)
- 5
Description
`handle_start_recording` writes the dataset directory (meta/info.json etc.) as soon as recording starts, before the first episode is actually captured. If something fails right away — camera drop, arm disconnect — before any episode gets saved, that directory is left on disk. It shows up in the local dataset list and picker even though nothing was actually recorded.
Should clean up the dataset directory when a recording fails with 0 saved episodes (and it wasn't resuming an existing dataset — don't want to touch a dataset that already had data in it).
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the handle_start_recording entry point and trace where the dataset directory is created, episodes are counted, and recording failures are handled. Verify the resume-existing-dataset case before changing cleanup behavior; done means a failed recording with zero saved episodes removes its new directory, while existing datasets remain untouched and empty datasets no longer appear in the local list or picker.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 76/100