-
Notifications
You must be signed in to change notification settings - Fork 911
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
Sorting version summaries in DescribeWorkerDeployment calls #7398
Conversation
tests/worker_deployment_test.go
Outdated
|
||
// waiting for 3 seconds to start the second version later. | ||
startTime := time.Now() | ||
waitTime := 3 * time.Second |
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.
can you make waitTime 1 ms instead? that will be enough that we can still tell sorting, without adding too much time to the total test time
tests/worker_deployment_test.go
Outdated
|
||
// waiting for 1 second to start the next version later. | ||
startTime := time.Now() | ||
waitTime := 1 * time.Second |
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.
same here, I think waitTime can just be 1ms without adding flakiness
tests/worker_deployment_test.go
Outdated
@@ -264,6 +264,15 @@ func (s *WorkerDeploymentSuite) TestDescribeWorkerDeployment_TwoVersions() { | |||
secondVersion := tv.WithBuildIDNumber(2) | |||
|
|||
go s.pollFromDeployment(ctx, firstVersion) | |||
|
|||
// waiting for 3 seconds to start the second version later. |
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.
// waiting for 3 seconds to start the second version later. | |
// waiting for 1 millisecond to start the second version later. |
tests/worker_deployment_test.go
Outdated
for i := 0; i < numVersions; i++ { | ||
go s.pollFromDeployment(ctx, tv.WithBuildIDNumber(i)) | ||
|
||
// waiting for 1 second to start the next version later. |
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.
// waiting for 1 second to start the next version later. | |
// waiting for 1 millisecond to start the next version later. |
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.
approved with 2 comment corrections!
What changed?
Why?
How did you test it?
Potential risks
Documentation
Is hotfix candidate?