Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

refactor: finalize dataset directory before media initialization

オープン
#1,056 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
2.3k
フォーク
227
平均マージ
22時間 13分
マージ済み PR(30日)
63

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NVIDIA-NeMo/DataDesigner のほかの issue

NVIDIA-NeMo/DataDesigner の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。