Prevent spurious failures due to APIBindings not being ready#3934
Prevent spurious failures due to APIBindings not being ready#3934kcp-ci-bot merged 1 commit intokcp-dev:mainfrom
Conversation
|
Just had another failure just like it: |
|
I think this is due to #3847 as the installation of resources is done by confighelpers.Bootstrap, which now installs the bootstrapped resources in groups rather than trying to install everything at once and retrying until they install. I remember seeing this error beforehand as well, the change just made it more pronounced, probably because there's at least one resource group being installed before the APIBindings. |
In CI errors related to kcp resources sometimes come up, e.g.:
workspace_test.go:556:
Error Trace: /home/prow/go/src/github.com/kcp-dev/kcp/test/e2e/authentication/workspace_test.go:556
Error: "the server could not find the requested resource (post workspaceauthenticationconfigurations.tenancy.kcp.io)" does not contain "claim and expression cannot both be specified"
Test: TestAcceptableWorkspaceAuthenticationConfigurations/claim-and-expression
The reason for this is that the fixture only waits for the workspace and
underlying logical cluster to be ready.
Instead the fixture now waits until all APIBindings (which are usually
just the kcp APIs) are bound.
Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com>
Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
8acb331 to
2e4705e
Compare
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: e43e1d8bc65fae236528e9811668d4af033f0b0c |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mjudeikis The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Haven't seen that one flake before: |
Summary
So I'm not sure about this. Not every workspace requires the kcp APIs to be ready for their test case. On the other hand it wouldn't hurt to wait the few milliseconds more.
Alternatively we'd have to add similar waits to all tests that do require the kcp APIs over time, which is a lot of tests.
In CI errors related to kcp resources sometimes come up, e.g.:
The reason for this is that the fixture only waits for the workspace and underlying logical cluster to be ready.
Instead the fixture now waits until all APIBindings (which are usually just the kcp APIs) are bound.
What Type of PR Is This?
/kind flake
/kind bug
Related Issue(s)
Fixes #
Release Notes