Skip to content
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

Merged
merged 3 commits into from
Feb 28, 2025

Conversation

Shivs11
Copy link
Member

@Shivs11 Shivs11 commented Feb 27, 2025

What changed?

  • Sorting version summaries in DescribeWorkerDeployment calls with the newest version coming at the top.

Why?

  • Correctness and better user functionality.

How did you test it?

  • Added a new functional test + modified an existing one.

Potential risks

Documentation

Is hotfix candidate?

@Shivs11 Shivs11 requested a review from a team as a code owner February 27, 2025 15:21

// waiting for 3 seconds to start the second version later.
startTime := time.Now()
waitTime := 3 * time.Second
Copy link
Contributor

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


// waiting for 1 second to start the next version later.
startTime := time.Now()
waitTime := 1 * time.Second
Copy link
Contributor

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

@@ -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.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// waiting for 3 seconds to start the second version later.
// waiting for 1 millisecond to start the second version later.

for i := 0; i < numVersions; i++ {
go s.pollFromDeployment(ctx, tv.WithBuildIDNumber(i))

// waiting for 1 second to start the next version later.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// waiting for 1 second to start the next version later.
// waiting for 1 millisecond to start the next version later.

Copy link
Contributor

@carlydf carlydf left a 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!

@Shivs11 Shivs11 merged commit 719a92a into main Feb 28, 2025
50 checks passed
@Shivs11 Shivs11 deleted the ss/sorted-version-summaries branch February 28, 2025 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants