Skip to content

feat(update): report updater progress - #5610

Merged
sarah (satvu) merged 1 commit into
vnextfrom
satvu-report-updater-progress
Oct 8, 2026
Merged

sarah (satvu) merged 1 commit into
vnextfrom
satvu-report-updater-progress

Conversation

@satvu

Copy link
Copy Markdown
Member

Summary

  • add phase-aware updater progress models for download, extract, install, and verification
  • report cumulative downloaded bytes through a transparent read-stream wrapper
  • thread optional progress reporting through ICliUpdater and CliUpdater
  • add focused coverage for phase ordering and download byte totals

Stack

Layer 2/4 of the replacement stack for #5458.

Depends on #5609. Base: satvu-harden-updater-reliability; head: satvu-report-updater-progress.

Validation

  • dotnet restore
  • dotnet test test\Func.Tests\Func.Tests.csproj -c Release --no-restore --filter "FullyQualifiedName~CliUpdaterTests" --logger "console;verbosity=minimal" (14 passed)
  • $env:CI='true'; dotnet build -c Release --no-restore (0 warnings, 0 errors)

@satvu
sarah (satvu) force-pushed the satvu-report-updater-progress branch 4 times, most recently from a18306c to 990690b Compare September 24, 2026 17:31
@satvu
sarah (satvu) force-pushed the satvu-report-updater-progress branch 2 times, most recently from cfb3086 to 2a97835 Compare October 5, 2026 17:28
Base automatically changed from satvu-harden-updater-reliability to vnext October 5, 2026 19:47
@satvu
sarah (satvu) force-pushed the satvu-report-updater-progress branch from 2a97835 to 6c94215 Compare October 5, 2026 19:47
@satvu
sarah (satvu) requested a balanced review from Copilot October 5, 2026 19:50

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to run its full agentic suite in this review.

Copilot review overview

Review effort: Lite
Findings: 4 Medium severity

Open (4)
What changed in this PR

Adds opt-in progress reporting to the CLI updater so callers can observe update phases and download byte counts.

Changes:

  • Extends ICliUpdater.UpdateAsync / CliUpdater.UpdateAsync with an optional progress sink parameter.
  • Introduces UpdatePhase / UpdateProgress types and a ProgressReadStream wrapper to report cumulative download bytes.
  • Adds a functional test validating phase transitions and download byte reporting.
File Description
test/​Func.Tests/​Update/​CliUpdaterTests.cs Updates existing tests for the new UpdateAsync signature and adds coverage for progress reporting.
src/​Func/​Update/​UpdateProgress.cs Adds progress DTOs (UpdatePhase, UpdateProgress) used by the updater and any UI/consumers.
src/​Func/​Update/​ProgressReadStream.cs Adds a stream wrapper that reports incremental download progress while reading.
src/​Func/​Update/​ICliUpdater.cs Updates the updater interface to accept a progress sink.
src/​Func/​Update/​CliUpdater.cs Implements phase + byte progress reporting during update execution and download.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/Func/Update/CliUpdater.cs
Comment thread src/Func/Update/ICliUpdater.cs
Comment thread src/Func/Update/ProgressReadStream.cs
Comment thread test/Func.Tests/Update/CliUpdaterTests.cs Outdated
@satvu
sarah (satvu) force-pushed the satvu-report-updater-progress branch from 6c94215 to 2840865 Compare October 5, 2026 20:41
@satvu
sarah (satvu) marked this pull request as ready for review October 5, 2026 20:42
@satvu
sarah (satvu) requested a review from a team as a code owner October 5, 2026 20:42
@satvu
sarah (satvu) requested a balanced review from Copilot October 5, 2026 20:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly lgtm! just needs more/better testing

Comment thread test/Func.Tests/Update/CliUpdaterTests.cs
Comment thread src/Func/Update/ProgressReadStream.cs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The progress test does not verify cumulative byte counts across multiple reads.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)

Comment thread test/Func.Tests/Update/CliUpdaterTests.cs Outdated
@satvu
sarah (satvu) force-pushed the satvu-report-updater-progress branch from 2840865 to 095e25c Compare October 6, 2026 20:19
@satvu
sarah (satvu) requested a balanced review from Copilot October 6, 2026 20:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The changes are narrowly scoped, preserve existing updater safeguards, and include focused progress coverage.

Review effort: Balanced
Findings: None

Resolved since last review (1)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@satvu
sarah (satvu) force-pushed the satvu-report-updater-progress branch from 095e25c to 5a536d8 Compare October 8, 2026 18:20
@satvu
sarah (satvu) merged commit a0bdc29 into vnext Oct 8, 2026
6 checks passed
@satvu
sarah (satvu) deleted the satvu-report-updater-progress branch October 8, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants