feat(test): keep optimization when targeting specific test files
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start at the very_good test optimization decision (shouldOptimize and isTargettingTestFiles) and trace how targeted paths are handled; compare the very_good dart test entry point and the pre-gen hook used for sharding. Define behavior for qualifying files and directories, exclusions, and the listed opt-out cases, then verify results are reported per file through resolveReport and coverage remains unchanged. Done means targeted test files are optimized under the stated conditions while existing behavior is preserved for the stated exceptions.
索引モデルが issue の本文から書いたものです。
説明
Problem
very_good test turns optimization off whenever a positional path is given (shouldOptimize -> isTargettingTestFiles). Large suites often run a computed subset (tests affected by a change, picked by a project script) in the inner loop or CI. For subsets of tens to hundreds of files every file pays its own compile and VM start, exactly the cost the optimizer removes. Today the choice is the whole suite optimized, or nothing.
Proposal
very_good test test/a_test.dart test/feature/ ... generates .test_optimizer.dart from only the targeted files instead of disabling optimization.
- A target qualifies if it is an existing
*_test.dartfile or a directory inside the package'stest/; a directory selects every test file under it. - Files tagged
skip_very_good_optimizationor matched by--exclude-optimizationstill run as their own suites, only if they are in the target set. - Anything else (line selectors like
foo_test.dart:12, paths outsidetest/,--platform,--update-goldens) keeps today's behaviour. --no-optimizationstill turns it off.- With
--total-shards, the target set is sharded in the pre-gen hook before the round-robin. - Same for
very_good dart test.
Behaviour
Results are reported per file through the existing resolveReport mapping. Coverage unchanged.
Backwards compatibility
Runs without paths are unchanged. Runs with paths become optimized; suites that only pass unbundled can opt out with --no-optimization, the skip tag or --exclude-optimization. If preferred, gate it behind --optimize-targets / optimization.targets: true in very_good.yaml for one minor release.
Scope
No git or dependency analysis (see #1695): the caller chooses the files, the CLI only bundles them. Happy to send a PR.
- 主要言語
- Dart
- スター
- 2.4k
- フォーク
- 244
- 平均マージ
- 1日 4時間
- マージ済み PR(30日)
- 25
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
VeryGoodOpenSource/very_good_cli のほかの issue
-
難易度 2/5 1時間未満 初心者へのやさしさ 85/100
VeryGoodOpenSource/very_good_cli#1763 ·
メンテナーはふだん 1 日以内に返信
-
fix(mcp): test timeout_seconds does not kill a hung test run, which blocks every later tool callオープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
VeryGoodOpenSource/very_good_cli#1765 ·
メンテナーはふだん 1 日以内に返信
-
feat: merge lcov reports from sharded test runs再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンfeature
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
VeryGoodOpenSource/very_good_cli#1754 ·
メンテナーはふだん 1 日以内に返信
-
feature
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
VeryGoodOpenSource/very_good_cli#1695 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
feat(mcp): stream progress notifications for long-running tools再び着手できるかも @vgvbot が 64 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンfeature
VeryGoodOpenSource/very_good_cli#1616 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
VeryGoodOpenSource/very_good_cli の issue をすべて見る
似ている issue
-
coverage 1.16.0: format_coverage fails on the `{}` that `dart test --coverage` writes for fully skipped suites対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
fyi-ecosystem platform-ios team-ios
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
flutter/flutter#194348 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
documentation good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
djazairdev/wilayas#22 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
rajput-hemant/calculator#199 · コメント 3 件 · リアクション 1 件 ·