Skip to content

bug: E2E test is flaky #70

Open
Open
@MikeSpreitzer

Description

@MikeSpreitzer

Describe the bug

https://github.com/kubestellar/ocm-status-addon/actions/runs/9308229088 failed but the equivalent https://github.com/kubestellar/ocm-status-addon/actions/runs/9308567124 succeeded.

Steps To Reproduce

Try the E2E test many times.

Expected Behavior

Consistency.

Additional Context

In test/e2e/setup-ocm-and-addon.sh,

  kubectl --context kind-hub -n open-cluster-management-hub wait --for=condition=available deploy cluster-manager-registration-controller --timeout=60s

happens before it is guaranteed that said Deployment object even exists (and kubectl wait immediately fails if the object does not exist).

BTW, why is this part of the function for create_and_register a new cluster, rather than something that follows clusteradm init ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions