Skip to content

Conversation

@alvaroaleman
Copy link
Member

This change moves all tests in the priorityqueue where it makes sense to use synctest. Synctest provides a Wait func we can use to wait until all goroutines in the test are durably blocked. This allows us to block after an Add call until the priorityqueue has finished processing. Because we didn't have that, we previously used time.Sleep and Eventually if we wanted something to happen and Consistently if we wanted to assert that something does not happen. With this change, we don't need any of those three anymore.

Because ginkgo doesn't support synctest, this change entails that we have to stop using it. To simplify reviewing, I've moved the tests from ginkgo to go test in the first commit and updated them to use synctest in the second commit.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 12, 2025
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Oct 12, 2025
@alvaroaleman alvaroaleman added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Oct 12, 2025
@alvaroaleman
Copy link
Member Author

alvaroaleman commented Oct 12, 2025

/hold
Needs a rebase once #3349 merges to pick up the newer apidiff and go versions

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 12, 2025
@sbueringer
Copy link
Member

Thx!

/lgtm
/approve
/hold cancel

Backporting tests won't be much fun for a bit :)

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 13, 2025
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 13, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: a8b4925c2d795cbe6ca43abfc7c9c7f7d8510bf4

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alvaroaleman, sbueringer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [alvaroaleman,sbueringer]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 08ee0dd into kubernetes-sigs:main Oct 13, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants