Skip to content

fix: add missing hook/reporter calls in ClientUpdateStrategy and OSSUpdateStrategy#407

Merged
JusterZhu merged 1 commit into
masterfrom
fix/hook-reporter-timing-fixes
May 25, 2026
Merged

fix: add missing hook/reporter calls in ClientUpdateStrategy and OSSUpdateStrategy#407
JusterZhu merged 1 commit into
masterfrom
fix/hook-reporter-timing-fixes

Conversation

@JusterZhu
Copy link
Copy Markdown
Collaborator

Closes #406

Summary

After review of hook/reporter lifecycle across all update strategies, ClientUpdateStrategy and OSSUpdateStrategy were missing several calls that UpgradeUpdateStrategy and SilentPollOrchestrator already had.

Changes (3 files, +61/-1)

ClientUpdateStrategy

  • \Hooks.OnDownloadCompletedAsync()\ — after download completes
  • \Hooks.OnAfterUpdateAsync()\ — after pipeline execution
  • \Reporter.ReportAsync(UpdateApplied)\ — after pipeline success

OSSUpdateStrategy

  • \Hooks.OnDownloadCompletedAsync()\ — after download + decompress
  • \Hooks.OnAfterUpdateAsync()\ — after decompress

Bootstrap

  • OSS upgrade app name: use user-configured \AppName, fall back to \GeneralUpdate.Upgrade.exe\

All four entry points now have consistent hook/reporter lifecycle.
Build: 0 errors

…pdateStrategy

- ClientUpdateStrategy: add OnDownloadCompletedAsync hook after download
- ClientUpdateStrategy: add OnAfterUpdateAsync hook + UpdateApplied report after pipeline
- OSSUpdateStrategy: add OnDownloadCompletedAsync hook after download+decompress
- OSSUpdateStrategy: add OnAfterUpdateAsync hook after decompress

All four entry points (Client/Upgrade/OSS/Silent) now have consistent
hook/reporter lifecycle: OnBeforeUpdate -> DownloadCompleted -> OnAfterUpdate
-> UpdateApplied -> OnBeforeStartApp
Copilot AI review requested due to automatic review settings May 25, 2026 09:55
@JusterZhu JusterZhu merged commit 209518b into master May 25, 2026
3 of 4 checks passed
@JusterZhu JusterZhu deleted the fix/hook-reporter-timing-fixes branch May 25, 2026 09:58
@JusterZhu JusterZhu restored the fix/hook-reporter-timing-fixes branch May 25, 2026 09:58
@JusterZhu JusterZhu deleted the fix/hook-reporter-timing-fixes branch May 25, 2026 10:00
@JusterZhu JusterZhu review requested due to automatic review settings May 25, 2026 10:19
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.

Fix missing hook/reporter calls in ClientUpdateStrategy and OSSUpdateStrategy

1 participant