tests: cover structural_impact.py pure helpers; thread repo_root and align path resolution
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- github-actions, python
- 領域
- ci-cd, testing-qa, tooling
調査の方向性
.agents/tools/structural_impact.py から始め、特に _get_package、_dedup、_collect_source_files、_unknown_package_dirs、_rel、_changed_files_mode、_full_mode を確認します。その後、PR #567 と既存の agentic CI ワークフローを調査します。列挙されたケース用に .agents/tools/tests/test_structural_impact.py を追加し、CI に組み込み、明示的な repo_root の処理と対称的なパス解決をテストスイートで検証します。
索引モデルが issue の本文から書いたものです。
説明
Priority Level
Medium
Task Summary
Add unit-test coverage for the pure helpers in .agents/tools/structural_impact.py and clean up two latent issues that get cheap to fix in the same pass: the module-level _REPO_ROOT global and the asymmetric .resolve() between changed-files paths and source-file paths.
Follow-up to PR #567 review feedback from @nabinchha.
Technical Details & Implementation Plan
-
Unit tests — add
.agents/tools/tests/test_structural_impact.pycovering:_get_package— engine / config / interface / external paths, including thedata-designervsdata-designer-enginesubstring-precedence ordering_dedup— collisions on shared label prefixes (regression guard for the bug fixed inbfc5db69)_collect_source_files— smoke test against a tmp dir with mockpackages/<name>/src/...layout_unknown_package_dirs— synthetic packages outside_KNOWN_PACKAGE_DIRS
-
CI wiring —
.agents/tools/lives outside the three package test suites, somake testwon't pick it up. Decide between (a) a new Makefile target, (b) a step inagentic-ci-pr-review.yml/agentic-ci-daily.yml, or (c) folding into an existing CI workflow. Lean toward (b) since the file's own change cadence is tied to the agentic-CI surface. -
Thread
repo_rootthrough helpers — replace the module-level_REPO_ROOTglobal +global _REPO_ROOTmutation inmain()with explicit parameter passing through_collect_source_files,_unknown_package_dirs,_rel,_changed_files_mode,_full_mode. Removes test-time fragility (no need to mutate a global to vary input) and decouples the otherwise-pure helpers from module state. -
Symmetric path resolution — once helpers take
repo_rootexplicitly, either drop.resolve()onchanged_paths(current_changed_files_mode:198) or also.resolve()paths inside_collect_source_files. Latent today because no symlinks live underpackages/, but the symmetric form removes a future-divergence trap.
Investigation / Context
PR #567 review thread: https://github.com/NVIDIA-NeMo/DataDesigner/pull/567 (review by @nabinchha and follow-up at https://github.com/NVIDIA-NeMo/DataDesigner/pull/567#issuecomment-4373073701)
Relevant prior fixes that justify the test coverage:
bfc5db69—_dedup30-char prefix-collision bug (pre-merge)55f0bdda—changed_node_idsID-stability bug (pre-merge)
Both bugs were caught during review; tests would have surfaced them earlier and would protect against the most likely future failure mode (graphify API drift at the loose graphifyy==0.4.23 pin).
Dependencies
None
- 主要言語
- Python
- スター
- 2.3k
- フォーク
- 227
- 平均マージ
- 22時間 13分
- マージ済み PR(30日)
- 63
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NVIDIA-NeMo/DataDesigner のほかの issue
-
docs: required_columns description is incomplete for LLM and multimodal columns対応中かも @rksharma-owg が 3 日前に担当しました。 オープンbug triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
NVIDIA-NeMo/DataDesigner#1002 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
enforce \from future import annotations` via ruff FA102 rule`対応中かも @chethanuk が 39 日前に担当しました。 オープンtask
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NVIDIA-NeMo/DataDesigner#760 ·
メンテナーはふだん 1 日以内に返信
-
task
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
NVIDIA-NeMo/DataDesigner#1056 ·
メンテナーはふだん 1 日以内に返信
-
dependencies task
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
NVIDIA-NeMo/DataDesigner#1054 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
NVIDIA-NeMo/DataDesigner#1048 ·
メンテナーはふだん 1 日以内に返信
NVIDIA-NeMo/DataDesigner の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
mihai-vlc/sublime-jsfmt#56 ·
-
comp/cli comp/plugins P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#141917 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Go device SDK: Whisper transcriber keeps buffering and transcribing audio appended after Stop()対応中かも @apoorvdarshan が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
BasedHardware/omi#22770 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-acceptance wg/router-models-inference-runtime
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
vllm-project/semantic-router#5295 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
huggingface/huggingface_hub#5210 ·
メンテナーはふだん 1 日以内に返信