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

Flaky tests TestHarnessRunIntegrationWithConfig/harness/crd-in-step #508

Open
porridge opened this issue Mar 14, 2024 · 2 comments
Open

Comments

@porridge
Copy link
Member

What happened:

https://github.com/kudobuilder/kuttl/actions/runs/8277018028/job/22646568404

=== NAME  TestHarnessRunIntegrationWithConfig/harness/crd-in-step
    logger.go:42: 07:33:41 | crd-in-step/0-crd | test step completed 0-crd
    logger.go:42: 07:33:41 | crd-in-step/1-create-mycrd | starting test step 1-create-mycrd
=== NAME  TestHarnessRunIntegrationWithConfig/harness/teststep-assert
    logger.go:42: 07:33:41 | teststep-assert/0-create | starting test step 0-create
=== NAME  TestHarnessRunIntegrationWithConfig/harness/crd-in-step
    case.go:366: failed in step 1-create-mycrd
    case.go:368: retrieving API resource for mycrd.example.com/v1beta1, Kind=MyCRD failed: the server could not find the requested resource
    logger.go:42: 07:33:41 | crd-in-step | crd-in-step events from ns kuttl-test-civil-barnacle:

What you expected to happen:

Since step 0-crd does wait for the CRD to be established, and kuttl does not seem to be using a cached discovery client, the error from API server when trying to create a CR is unexpected, especially in an unreplicated API server environment.

It would be useful to see API server audit log to know what exactly happened.

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

This was in CI on this commit.

@porridge
Copy link
Member Author

FWIW, this succeeded on a re-run.

@porridge
Copy link
Member Author

Another:

=== CONT  TestHarnessRunIntegrationWithConfig/harness/crd-in-step
    logger.go:42: 08:32:39 | crd-in-step | Creating namespace: kuttl-test-primary-quail
    logger.go:42: 08:32:39 | crd-in-step/0-crd | starting test step 0-crd
    logger.go:42: 08:32:39 | crd-in-step/0-crd | CustomResourceDefinition:/mycrds.mycrd.example.com created
    logger.go:42: 08:32:39 | crd-in-step/0-crd | test step completed 0-crd
    logger.go:42: 08:32:39 | crd-in-step/1-create-mycrd | starting test step 1-create-mycrd
    case.go:399: failed in step 1-create-mycrd
    case.go:401: retrieving API resource for mycrd.example.com/v1beta1, Kind=MyCRD failed: the server could not find the requested resource
    logger.go:42: 08:32:39 | crd-in-step | crd-in-step events from ns kuttl-test-primary-quail:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant