Skip to content

MWI: Wait for bot identity before starting services #55610

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

Merged
merged 2 commits into from
Jun 17, 2025

Conversation

boxofrad
Copy link
Contributor

Builds on #55609 to wait for the internal bot identity to be ready before starting services, to avoid spamming the logs with errors.

@boxofrad boxofrad added machine-id no-changelog Indicates that a PR does not require a changelog entry labels Jun 10, 2025
@github-actions github-actions bot requested a review from kiosion June 10, 2025 19:19
@boxofrad boxofrad force-pushed the boxofrad/wait-for-client branch from 0206b60 to b0ac950 Compare June 11, 2025 12:53
select {
case <-s.botIdentityReadyCh:
case <-ctx.Done():
return alpnproxy.LocalProxyConfig{}, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Kind of nitpick territory, but will this empty value be handled optimally downstream? From my quick read I think alpnproxy.NewLocalProxy() will probably produce an error (due to CheckAndSetDefaults() failing) so we might still log a confusing error instead of exiting quietly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch actually! Rather than returning a nil error, maybe we should return ctx.Err()?

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from kiosion June 16, 2025 23:19
@boxofrad boxofrad force-pushed the boxofrad/wait-for-client branch from b0ac950 to b998c1a Compare June 17, 2025 10:20
@boxofrad boxofrad force-pushed the boxofrad/implement-rfd-0216 branch from 14ff176 to 1ceb85e Compare June 17, 2025 10:20
@boxofrad boxofrad force-pushed the boxofrad/wait-for-client branch 3 times, most recently from ef93354 to d8260bf Compare June 17, 2025 11:09
Base automatically changed from boxofrad/implement-rfd-0216 to master June 17, 2025 13:17
@boxofrad boxofrad force-pushed the boxofrad/wait-for-client branch from 9ac6e92 to 58ff129 Compare June 17, 2025 13:51
@boxofrad boxofrad force-pushed the boxofrad/wait-for-client branch from 58ff129 to e298c5a Compare June 17, 2025 13:52
@boxofrad boxofrad added this pull request to the merge queue Jun 17, 2025
Merged via the queue into master with commit ccd87bf Jun 17, 2025
40 checks passed
@boxofrad boxofrad deleted the boxofrad/wait-for-client branch June 17, 2025 14:40
@backport-bot-workflows
Copy link
Contributor

@boxofrad See the table below for backport results.

Branch Result
branch/v17 Failed
branch/v18 Failed

boxofrad added a commit that referenced this pull request Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants