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

Ensure the openstacks crd exists in kuttl tests #998

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cescgina
Copy link
Contributor

Instead of just checking for any openstack.org crd, check explicitely
for openstacks.operator.openstack.org, and wait until that is available.
In some CI jobs, we run kuttl test for other operators before the
openstack-operators one. That means that the current check interprets
the fact that there are some openstack crds as being ready. Then when it
tries to get openstacks.operator.openstack.org, it fails because it's
not present yet.

Also remove the '|| true' at the end of the command, since that ignores
any error that might occurr.

Instead of just checking for any openstack.org crd, check explicitely
for openstacks.operator.openstack.org, and wait until that is available.
In some CI jobs, we run kuttl test for other operators before the
openstack-operators one. That means that the current check interprets
the fact that there are some openstack crds as being ready. Then when it
tries to get openstacks.operator.openstack.org, it fails because it's
not present yet.

Also remove the '|| true' at the end of the command, since that ignores
any error that might occurr.
Copy link
Contributor

openshift-ci bot commented Jan 20, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link
Contributor

openshift-ci bot commented Jan 20, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: cescgina
Once this PR has been reviewed and has the lgtm label, please assign dprince for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@@ -2032,8 +2032,8 @@ openstack_kuttl_run: ## runs kuttl tests for the openstack operator, assumes tha
openstack_kuttl: export NAMESPACE = ${OPENSTACK_KUTTL_NAMESPACE}
openstack_kuttl: input deploy_cleanup openstack openstack_deploy_prep ## runs kuttl tests for the openstack operator. Installs openstack operator and cleans up previous deployments before running the tests, cleans up after running the tests.
# Wait until OLM installs openstack CRDs
timeout $(TIMEOUT) bash -c "while ! (oc get crd | grep openstack.org); do sleep 1; done"
bash -c '(oc get crd openstacks.operator.openstack.org && make openstack_init) || true'
Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with removing this || true. We have seen it mask errors in CI.

@cescgina cescgina marked this pull request as ready for review January 21, 2025 10:44
@openshift-ci openshift-ci bot requested review from karelyatin and viroel January 21, 2025 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants