Skip to content

backport: retry restarting HNS (#3529, #3540) #3563

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

Open
wants to merge 1 commit into
base: release/v1.5
Choose a base branch
from

Conversation

rbtr
Copy link
Contributor

@rbtr rbtr commented Apr 4, 2025

backport of HNS restart fixes #3529, #3540

Signed-off-by: Evan Baker <rbtr@users.noreply.github.com>
@Copilot Copilot AI review requested due to automatic review settings April 4, 2025 23:22
@rbtr rbtr requested a review from a team as a code owner April 4, 2025 23:22
@rbtr rbtr requested a review from hemanthmalla April 4, 2025 23:22
@rbtr rbtr self-assigned this Apr 4, 2025
Copy link
Contributor

@Copilot 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.

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

platform/os_windows.go:277

  • Ensure that the 'time' package is imported since it is used for timeout and ticker functions in tryStartServiceFn and tryStopServiceFn.
deadline, cancel := context.WithTimeout(ctx, 90*time.Second)

startFunc func(args ...string) error
}

func (m *mockManagedService) Query() (svc.Status, error) {
Copy link
Preview

Copilot AI Apr 4, 2025

Choose a reason for hiding this comment

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

Consider adding a check to verify that 'queryFuncs' is not empty before accessing its first element to avoid potential panics in production code.

Suggested change
func (m *mockManagedService) Query() (svc.Status, error) {
func (m *mockManagedService) Query() (svc.Status, error) {
if len(m.queryFuncs) == 0 {
return svc.Status{}, errors.New("no query functions available")
}

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

@rbtr rbtr added cns Related to CNS. fix Fixes something. release/1.5 Change affects v1.5 release train labels Apr 4, 2025
@rbtr rbtr requested a review from behzad-mir April 10, 2025 21:14
@rbtr
Copy link
Contributor Author

rbtr commented Apr 10, 2025

/azp run Azure Container Networking PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cns Related to CNS. fix Fixes something. release/1.5 Change affects v1.5 release train
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant