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

Investigate why claims becoming available and deleted taking longer than expected in E2E #4579

Closed
turkenh opened this issue Sep 6, 2023 · 2 comments
Assignees
Labels
bug Something isn't working e2e test
Milestone

Comments

@turkenh
Copy link
Member

turkenh commented Sep 6, 2023

What happened?

We recently observed some flakiness with e2e tests, resulting in a false negative rate of 50%, and wanted to avoid that by bumping the relevant timeouts.

However, we believe it is worth further investigation, especially why we observe failures while waiting for claims to become available.

An example run: https://github.com/crossplane/crossplane/actions/runs/6084680018/job/16507125031

=== RUN   TestCrossplaneLifecycle/TestCrossplaneLifecycleUpgrade/ClaimIsAvailable
    feature.go:213: Waiting 2m0s for NopResource default/lifecycle-upgrade to become Available...
    feature.go:232: resources did not have desired conditions: Available: client rate limiter Wait returned an error: context deadline exceeded:
        
        - apiVersion: nop.example.org/v1alpha1
          kind: NopResource
          metadata:
            creationTimestamp: "2023-09-05T12:45:00Z"
            finalizers:
            - finalizer.apiextensions.crossplane.io
            generation: 3
            managedFields:
            - apiVersion: nop.example.org/v1alpha1
              fieldsType: FieldsV1
              fieldsV1:
                f:spec:
                  f:compositeDeletePolicy: {}
                  f:coolField: {}
              manager: crossplane-e2e-tests
              operation: Apply
              time: "2023-09-05T12:45:00Z"
            - apiVersion: nop.example.org/v1alpha1
              fieldsType: FieldsV1
              fieldsV1:
                f:metadata:
                  f:finalizers:
                    .: {}
                    v:"finalizer.apiextensions.crossplane.io": {}
                f:spec:
                  f:compositionRef:
                    .: {}
                    f:name: {}
                  f:compositionRevisionRef:
                    .: {}
                    f:name: {}
                  f:compositionUpdatePolicy: {}
                  f:resourceRef:
                    .: {}
                    f:apiVersion: {}
                    f:kind: {}
                    f:name: {}
              manager: Go-http-client
              operation: Update
              time: "2023-09-05T12:45:00Z"
            - apiVersion: nop.example.org/v1alpha1
              fieldsType: FieldsV1
              fieldsV1:
                f:status:
                  .: {}
                  f:conditions: {}
              manager: Go-http-client
              operation: Update
              subresource: status
              time: "2023-09-05T12:45:00Z"
            name: lifecycle-upgrade
            namespace: default
            resourceVersion: "2592"
            uid: 8b0b01ba-084f-4b7e-822a-a38b1d60ab4d
          spec:
            compositeDeletePolicy: Foreground
            compositionRef:
              name: xnopresources.nop.example.org
            compositionRevisionRef:
              name: xnopresources.nop.example.org-73f483f
            compositionUpdatePolicy: Automatic
            coolField: I'm cool!
            resourceRef:
              apiVersion: nop.example.org/v1alpha1
              kind: XNopResource
              name: lifecycle-upgrade-tczp2
          status:
            conditions:
            - lastTransitionTime: "2023-09-05T12:45:00Z"
              reason: ReconcileSuccess
              status: "True"
              type: Synced
            - lastTransitionTime: "2023-09-05T12:45:00Z"
              message: Composite resource claim is waiting for composite resource to become
                Ready
              reason: Waiting
              status: "False"
              type: Ready

How can we reproduce it?

Unfortunately it is not easily reproducable and happens sporatically with GitHub actions.

What environment did it happen in?

On master with CI.

@turkenh turkenh added the bug Something isn't working label Sep 6, 2023
@turkenh turkenh mentioned this issue Sep 6, 2023
5 tasks
@phisco phisco self-assigned this Sep 6, 2023
@phisco phisco mentioned this issue Oct 6, 2023
5 tasks
@jeanduplessis jeanduplessis added this to the v1.15 milestone Oct 9, 2023
@phisco
Copy link
Contributor

phisco commented Oct 23, 2023

The e2es are much more stable now, we can close this

@phisco phisco closed this as completed Oct 23, 2023
@jbw976 jbw976 modified the milestones: v1.15, v1.14 Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working e2e test
Projects
Status: Done
Development

No branches or pull requests

5 participants