-
Notifications
You must be signed in to change notification settings - Fork 110
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
RSDK-5220 - Early exit reconfiguration on context.Done() #3020
Conversation
Code Coverage
|
var wg sync.WaitGroup | ||
|
||
mockAPI := resource.APINamespaceRDK.WithComponentType("mock") | ||
modelName1 := utils.RandomAlphaString(5) |
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.
[minor] does this need to be random or can we just make it an obviously fake name? I think the latter is easier to debug should this test fail.
modelName1 := utils.RandomAlphaString(5) | |
modelName1 := "fakeModel" |
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.
random is slightly better so as to not run into issues registering multiple fakes across different tests (shouldn't be as bad nowadays since we deregister, but tests running in parallel might still run into issues
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.
gotcha - in that case could we use a uuid
string to prevent a very unfortunately collision across parallel tests?
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.
I think RandomAlphaString is suitably random, can spin it out to a separate ticket to update all references (since there are a few) if we really want
we get a cascade of resource configuration timeouts when we kill a server when it's hanging on reconfiguration, that was because we end up going through the reconfiguration for the rest of resources instead of exiting out early.
Should reduce noise when debugging issues