Skip to content

fix: address Copilot review suggestions from merged PRs#418

Merged
JusterZhu merged 1 commit into
masterfrom
fix/copilot-review-fixes
May 25, 2026
Merged

fix: address Copilot review suggestions from merged PRs#418
JusterZhu merged 1 commit into
masterfrom
fix/copilot-review-fixes

Conversation

@JusterZhu
Copy link
Copy Markdown
Collaborator

Fixes for Copilot suggestions on #414, #416, #417:

  • OSSUpdateStrategy: make DownloadVersionConfig truly async (remove .GetAwaiter().GetResult())
  • DefaultDownloadOrchestrator: pass full DownloadAsset in failedDetails instead of just URL
  • DownloadResult.LocalPath: change from string? to string
  • Executors: return destPath instead of null for LocalPath on failure

- OSSUpdateStrategy: make DownloadVersionConfig truly async
- DefaultDownloadOrchestrator: pass full DownloadAsset in failedDetails
- DownloadResult.LocalPath: change from string? to string
- Executors failure paths: return destPath instead of null for LocalPath
Copilot AI review requested due to automatic review settings May 25, 2026 12:14
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Applies follow-up fixes to address Copilot review suggestions from PRs #414, #416, #417: makes an OSS download path truly async, propagates the full DownloadAsset in failed-download dispatch details, tightens DownloadResult.LocalPath to non-nullable, and returns destPath instead of null on executor failure.

Changes:

  • Convert DownloadVersionConfig to async and await it in ExecuteClientAsync.
  • Pass full DownloadAsset (instead of just Url) in failedDetails for DispatchAllCompleted.
  • Change DownloadResult.LocalPath to string and return destPath on failure in HTTP/OSS executors.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/c#/GeneralUpdate.Core/Strategy/OSSUpdateStrategy.cs Makes DownloadVersionConfig async and awaits it with ConfigureAwait(false).
src/c#/GeneralUpdate.Core/Download/Orchestrators/DefaultDownloadOrchestrator.cs Passes full DownloadAsset in failed-details tuple.
src/c#/GeneralUpdate.Core/Download/Models/DownloadProgress.cs Tightens LocalPath to non-nullable string.
src/c#/GeneralUpdate.Core/Download/Executors/OssDownloadExecutor.cs Returns destPath instead of null on failure.
src/c#/GeneralUpdate.Core/Download/Executors/HttpDownloadExecutor.cs Returns destPath instead of null on failure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JusterZhu JusterZhu merged commit 7c3d702 into master May 25, 2026
4 checks passed
@JusterZhu JusterZhu deleted the fix/copilot-review-fixes branch May 25, 2026 12:40
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.

2 participants