Repository navigation
fix: age の通知と mise の excludes の警告を 1 回だけ、進捗バーを避けて出す - #135
Merged
Merged
Conversation
age の設定の通知 (⚠ --age ignored: project's minimumReleaseAge ...) と、 mise の minimum_release_age_excludes の警告が、マニフェストの数だけ繰り返し 表示されていた。進捗バーの表示中に、バーを避けずに出力されていた。ルートに minimumReleaseAge を持つ pnpm workspace で depup --age 2w --dry-run を実行 すると、パッケージの数だけ ⚠ --age ignored... が出ていた。 orchestrator.rs の build_filter_for が通知と警告を出しており、check の段階は この関数をマニフェストごとに呼ぶ。進捗バーはその前に始まっているので、出力 がバーの描画と混ざっていた。 - build_filter_for は通知を出さずに、UpdateFilter と一緒に返す。age の解決 (orchestrator/age.rs) の emit_notice は通知の文字列を返す notices に、 mise の excludes の警告も文字列を返す mise_age_excludes_warning にした。 - check の段階は、まだ出していない通知だけを (unseen_notices)、 Progress::suspend で進捗バーを避けて出す。同じ通知は実行全体で 1 回だけ 出し、ディレクトリごとに違う通知 (別の設定ファイルの値など) はそれぞれ出す。 - AGENTS.md に書いた。 テスト: build_filter_for が age の通知を出さずに返し、同じ通知は 2 回目から 出さないこと。手元で、3 パッケージの pnpm workspace に depup --age 2w --dry-run を実行し、修正前は通知が 4 回、修正後は 1 回出ることを確かめた。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
age の設定の通知 (
⚠ --age ignored: project's minimumReleaseAge ...) と、mise のminimum_release_age_excludesの警告が、マニフェストの数だけ繰り返し表示されていました。進捗バーの表示中に、バーを避けずに出力されていました。同じ通知と警告は実行全体で 1 回だけ、進捗バーと混ざらないように出します。原因
orchestrator.rsのbuild_filter_forが通知と警告を出しており、check の段階はこの関数をマニフェストごとに呼びます。進捗バーはその前に始まっているので、出力がバーの描画と混ざっていました。AGENTS.md は「バー表示中の警告はProgress::suspendで包む」としています。変更内容
build_filter_forは通知を出さずに、UpdateFilterと一緒に返す。age の解決 (orchestrator/age.rs) のemit_noticeは通知の文字列を返すnoticesに、mise の excludes の警告も文字列を返すmise_age_excludes_warningにした。unseen_notices)、Progress::suspendで進捗バーを避けて出す。同じ通知は実行全体で 1 回だけ出し、ディレクトリごとに違う通知 (別の設定ファイルの値など) はそれぞれ出す。検証
orchestrator::tests::filter_notices_are_returned_once_instead_of_printed_per_manifest(build_filter_forが age の通知を出さずに返し、同じ通知は 2 回目から出さない。新しい関数を使うので、修正前のコードではコンパイルできない)minimumReleaseAge: 14400) にdepup --age 2w --dry-runを実行し、--age ignoredの通知が修正前は 4 回 (ルートと各パッケージ)、修正後は 1 回出ることを確かめたcargo fmt --all -- --check: passcargo clippy --locked --all-targets -- -D warnings: passcargo test --locked(Windows): passCloses #108
🤖 Generated with Claude Code