feat: add consolidated update/install summary after each run#32
Merged
Conversation
Collect tool install and update records (`UpdateRecord`) throughout the run and print a deduplicated `Installed`/`Updated` summary after the final `Runtime` line. For `cargo-rake`, the self-update result is communicated across the process boundary via `RAKE_SELF_UPDATED` so the freshly relaunched binary includes it in the same summary. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #32 +/- ##
==========================================
- Coverage 89.14% 89.00% -0.14%
==========================================
Files 8 8
Lines 2975 3120 +145
==========================================
+ Hits 2652 2777 +125
- Misses 323 343 +20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add tests for the new UpdateRecord/print_update_summary machinery introduced in the previous commit: - Assert Some/None returns from ensure_cargo/ensure_os (4 augmented tests) - Cover all 4 print_update_summary branches (5 new unit tests) - Verify RunReport.updates is populated when a target-level or command-level tool is absent and installed (2 new run tests) - Integration test for RAKE_SELF_UPDATED env var → summary output in cargo-rake (1 new CLI test) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…nance_casts fuzzy_provenance_casts and lossy_provenance_casts were merged into the single implicit_provenance_casts lint; update all three crates. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
print_update_summarybranches ((Some,Some),(Some,None),(None,Some),(None,None))Some/Nonereturns fromensure_cargoandensure_osinstead of silently dropping themRunReport.updatesis populated when a target-level or command-level tool is absent and freshly installedRAKE_SELF_UPDATEDenv var is picked up and appears in the run's summary outputfuzzy_provenance_casts/lossy_provenance_castsnightly lints with the mergedimplicit_provenance_castsacross all three crates🤖 Generated with Claude Code