Skip to content

[release-0.28] fix flakiness in TestAPIExportBindingAuthorizer #3534

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

Merged

Conversation

kcp-ci-bot
Copy link
Contributor

This is an automated cherry-pick of #3533

/assign embik

NONE

The test's intention is to ensure there is 1 consumer per shard for the wildwest API. To achieve this
it creates 1 workspace for each shard and then binds to the APIExport from within there. However the
code failed to ensure that the logicalclusters for these workspaces are actually at least evenly
distributed to every shard.

This lead to flakiness as sometimes both logicalclusters were scheduled onto the same shard, and
suddenly there was only one consumer shard and so the test faile.

On-behalf-of: @SAP christoph.mewes@sap.com
@kcp-ci-bot kcp-ci-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the DCO. do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 13, 2025
@embik
Copy link
Member

embik commented Aug 13, 2025

/kind flake

@kcp-ci-bot kcp-ci-bot added kind/flake Categorizes issue or PR as related to a flaky test. and removed do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Aug 13, 2025
Copy link
Member

@embik embik left a comment

Choose a reason for hiding this comment

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

/approve

@kcp-ci-bot kcp-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2025
@kcp-ci-bot
Copy link
Contributor Author

LGTM label has been added.

Git tree hash: 2a4ee02a5fc81b56129e07695a9b68f1a858d86c

@kcp-ci-bot
Copy link
Contributor Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: embik

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:

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

@kcp-ci-bot kcp-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 13, 2025
@kcp-ci-bot kcp-ci-bot merged commit 1c70aa4 into kcp-dev:release-0.28 Aug 13, 2025
14 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. dco-signoff: yes Indicates the PR's author has signed the DCO. kind/flake Categorizes issue or PR as related to a flaky test. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants