-
Notifications
You must be signed in to change notification settings - Fork 243
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
base: release/v1.5
Are you sure you want to change the base?
Conversation
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.
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) { |
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.
Consider adding a check to verify that 'queryFuncs' is not empty before accessing its first element to avoid potential panics in production code.
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.
/azp run Azure Container Networking PR |
Azure Pipelines successfully started running 1 pipeline(s). |
backport of HNS restart fixes #3529, #3540