Skip to content

Support refresh runner configs with pipelines service.#3706

Merged
TingluoHuang merged 4 commits intomainfrom
users/tihuang/refresh
Mar 19, 2025
Merged

Support refresh runner configs with pipelines service.#3706
TingluoHuang merged 4 commits intomainfrom
users/tihuang/refresh

Conversation

@TingluoHuang
Copy link
Copy Markdown
Member

@TingluoHuang TingluoHuang commented Feb 10, 2025

The runner would need to exchange its .runner and .credentials with service to finish migration to new backend.

We will based on message from service to make request to either pipelines or admin to get a new config file.

The new config will get stored in either .runner_migrated or .credentials_migrated, which are side by side with existing .runner and .credentials.

We will report telemetry back to service on any failure.

https://github.com/github/actions-runtime/issues/4944

@TingluoHuang TingluoHuang requested a review from a team as a code owner February 10, 2025 22:21
@TingluoHuang TingluoHuang force-pushed the users/tihuang/refresh branch from 88e9d8e to e7426f4 Compare March 19, 2025 13:12
{
private string _binPath;
private string _configFilePath;
private string _migratedconfigFilePath;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

migratedConfigFilePath

await ReportTelemetryAsync("Runner settings updated successfully.");
}

private async Task UpdateRunnerCredentialsAsync(string serviceType, string configRefreshUrl, CancellationToken token)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note, this doesn't include the private key. This is just the URL/etc, not the private key - i.e. .credentials not .credentials_rsaparams

ericsciple
ericsciple previously approved these changes Mar 19, 2025
@TingluoHuang TingluoHuang merged commit f5e4e7e into main Mar 19, 2025
9 checks passed
@TingluoHuang TingluoHuang deleted the users/tihuang/refresh branch March 19, 2025 16:37
sirredbeard pushed a commit to sirredbeard/runner that referenced this pull request Jun 11, 2025
sirredbeard pushed a commit to sirredbeard/runner that referenced this pull request Jun 11, 2025
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