Skip to content

improve semaphore retries and tests#14401

Merged
fspmarshall merged 1 commit intomasterfrom
fspmarshall/improve-semaphore-tests
Jul 13, 2022
Merged

improve semaphore retries and tests#14401
fspmarshall merged 1 commit intomasterfrom
fspmarshall/improve-semaphore-tests

Conversation

@fspmarshall
Copy link
Copy Markdown
Contributor

This PR, in combination with #14187 (recently merged) should reduce the flakiness observed in #13570.

The main improvement made here is to change semaphore operations to occur across a broader range of retry times (full jitter versus half jitter). Since the backoff in these retries are purely about spreading out retry attempts (as opposed to waiting for load to drop off or for some bad state to be resolved), there is no benefit to having a minimum threshold for the backoff. It is difficult to replicate the failures seen in CI, but this change noticeably improves performance which should translate to a reduced sensitivity to the resource constrained environment that tests are run in.

Comment thread lib/utils/retry.go Outdated
@fspmarshall fspmarshall force-pushed the fspmarshall/improve-semaphore-tests branch from 239879b to 212d4d5 Compare July 12, 2022 21:33
@github-actions github-actions Bot removed the request for review from rosstimothy July 12, 2022 21:53
@fspmarshall fspmarshall force-pushed the fspmarshall/improve-semaphore-tests branch from 212d4d5 to c649366 Compare July 13, 2022 17:38
@fspmarshall fspmarshall enabled auto-merge (rebase) July 13, 2022 17:39
@fspmarshall fspmarshall force-pushed the fspmarshall/improve-semaphore-tests branch from c649366 to 7eb77a6 Compare July 13, 2022 17:57
@fspmarshall fspmarshall merged commit 6c02a4e into master Jul 13, 2022
@github-actions
Copy link
Copy Markdown
Contributor

@fspmarshall See the table below for backport results.

Branch Result
branch/v10 Failed
branch/v9 Failed

@fspmarshall fspmarshall deleted the fspmarshall/improve-semaphore-tests branch July 14, 2022 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants