-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Remove unnecessary connection test during some registration flows #4244
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -178,8 +178,12 @@ public async Task ConfigureAsync(CommandSettings command) | |
| } | ||
| } | ||
|
|
||
| // Validate can connect. | ||
| await _runnerServer.ConnectAsync(new Uri(runnerSettings.ServerUrl), creds); | ||
| // Validate can connect using the obtained vss credentials. | ||
| // In Runner Admin flow there's nothing new to test connection to at this point as registerToken is already validated via GetTenantCredential. | ||
| if (!runnerSettings.UseRunnerAdminFlow) | ||
| { | ||
| await _runnerServer.ConnectAsync(new Uri(runnerSettings.ServerUrl), creds); | ||
| } | ||
|
Comment on lines
+182
to
+186
|
||
|
|
||
| _term.WriteLine(); | ||
| _term.WriteSuccessMessage("Connected to GitHub"); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
UseRunnerAdminFlowis true, this skips the connection check but still prints "Connected to GitHub" and logs "Test Connection complete." This makes the output/telemetry ambiguous because no runner-server connectivity was actually validated in this path. Consider adjusting the messaging/logging (or emitting an explicit "skipping connection test" trace) so operators can tell whether a real_runnerServer.ConnectAsyncsucceeded.See below for a potential fix: