Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

refactor: finalize dataset directory before media initialization

Aperta
#1,056 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Start with ArtifactStorage.validate_folder_names() and DatasetBuilder.build() to trace when the dataset name is cached, resume decisions are made, and media storage is initialized. Review the regression tests for fresh runs, resume outcomes, concurrent allocation, image paths, and previews; done means the finalized path is used consistently while those behaviors remain covered.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

task
Priority Level

Low

Task Summary

Finalize the dataset directory after the resume decision and before initializing media storage. Give each run one final path so normal generation does not need to rewrite the cached dataset name or refresh media paths afterward.

Technical Details & Implementation Plan
  • Defer media storage initialization until the dataset directory is finalized.
  • Keep fresh-directory allocation atomic, including collisions on the base and timestamped names.
  • Preserve compatible resume, incompatible IF_POSSIBLE fallback, completed-run short-circuits, and previews that do not create dataset directories.
  • Simplify cached-name invalidation and media-path refresh where the revised lifecycle makes them unnecessary.
  • Cover fresh runs, resume decisions, concurrent allocation, image paths, and previews with regression tests.
Investigation / Context

Requested in Nabin's review comment, following the collision fix in #1051 for #1050.

ArtifactStorage.validate_folder_names() currently initializes MediaStorage using base_dataset_path, which resolves and caches the dataset name during construction. DatasetBuilder.build() later decides whether to resume or start fresh. Fresh-directory allocation can change the chosen name, requiring a cache rewrite and refresh_media_storage_path().

Dependencies

Follow-up to #1051. This refactor does not block that bug fix.

Lingua principale
Python
Stelle
2.4k
Fork
234
Merge medio
20h 56m
PR unite (30g)
69

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NVIDIA-NeMo/DataDesigner

Tutte le issue di NVIDIA-NeMo/DataDesigner

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.