Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rearrange NuGet error handling to one location in full runner #10692

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

brettfo
Copy link
Contributor

@brettfo brettfo commented Sep 27, 2024

The changes in this PR will not be live, even when merged. All of this behavior is behind an experiment which will not be enabled for some time.

This updates the full end-to-end update runner (not yet in production) for NuGet by rearranging the error handling. The individual tools used by the current Ruby updater remain unchanged, but everything else has been refactored so that one single place of error handling could be added to RunWorker.cs. This involved creating new types to represent private_source_authentication_error, dependency_file_not_found, and unknown_error as a catch-all.

The changes to AnalyzeWorker.cs, DiscoveryWorker.cs, and UpdaterWorker.cs are simply to move the try/catch blocks to a different function.

Future work will be to add support for more error types.

@github-actions github-actions bot added the L: dotnet:nuget NuGet packages via nuget or dotnet label Sep 27, 2024
@brettfo brettfo changed the title rearrange error handling to one location in full runner rearrange NuGet error handling to one location in full runner Sep 27, 2024
@brettfo brettfo force-pushed the dev/brettfo/nuget-updater-common-error-handling branch 2 times, most recently from 1deee01 to 6fe7bc6 Compare September 30, 2024 18:49
@brettfo brettfo marked this pull request as ready for review September 30, 2024 19:04
@brettfo brettfo requested a review from a team as a code owner September 30, 2024 19:04
@brettfo brettfo force-pushed the dev/brettfo/nuget-updater-common-error-handling branch from 6fe7bc6 to 324aaf9 Compare October 1, 2024 20:26
@kbukum1 kbukum1 merged commit ab0c204 into main Oct 1, 2024
88 checks passed
@kbukum1 kbukum1 deleted the dev/brettfo/nuget-updater-common-error-handling branch October 1, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L: dotnet:nuget NuGet packages via nuget or dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants