Skip to content

feat: add consolidated update/install summary after each run#32

Merged
CraZySacX merged 5 commits into
masterfrom
31-v050-enhancements
Jun 29, 2026
Merged

feat: add consolidated update/install summary after each run#32
CraZySacX merged 5 commits into
masterfrom
31-v050-enhancements

Conversation

@CraZySacX

@CraZySacX CraZySacX commented Jun 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Add 12 new/augmented tests to increase patch coverage for the consolidated update/install summary feature
  • Cover all 4 print_update_summary branches ((Some,Some), (Some,None), (None,Some), (None,None))
  • Assert Some/None returns from ensure_cargo and ensure_os instead of silently dropping them
  • Verify RunReport.updates is populated when a target-level or command-level tool is absent and freshly installed
  • Integration test that RAKE_SELF_UPDATED env var is picked up and appears in the run's summary output
  • Replace deprecated fuzzy_provenance_casts/lossy_provenance_casts nightly lints with the merged implicit_provenance_casts across all three crates

🤖 Generated with Claude Code

CraZySacX and others added 2 commits June 27, 2026 13:27
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>
@CraZySacX CraZySacX self-assigned this Jun 27, 2026
@CraZySacX CraZySacX added the enhancement New feature or request label Jun 27, 2026
@codecov-commenter

codecov-commenter commented Jun 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.97872% with 32 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.00%. Comparing base (d2a2e1a) to head (267df9f).

Files with missing lines Patch % Lines
librake/src/tool.rs 80.83% 23 Missing ⚠️
cargo-rake/src/main.rs 60.86% 9 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

CraZySacX and others added 3 commits June 27, 2026 19:49
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>
@CraZySacX CraZySacX merged commit 9854c76 into master Jun 29, 2026
25 checks passed
@CraZySacX CraZySacX deleted the 31-v050-enhancements branch June 29, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants