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

Allow passing extra args to kubectl-kuttl #1012

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

Conversation

karelyatin
Copy link
Contributor

Can now pass arbitary args while running test, for example to run a specific test can run:-
make ovn_kuttl_run KUTTL_ARGS="--test ovn-config"

@openshift-ci openshift-ci bot requested review from fmount and stuggi February 6, 2025 12:26
Copy link
Contributor

openshift-ci bot commented Feb 6, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: karelyatin

The full list of commands accepted by this bot can be found here.

The pull request process is described 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

@openshift-ci openshift-ci bot added the approved label Feb 6, 2025
Copy link
Contributor

@bshephar bshephar left a comment

Choose a reason for hiding this comment

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

Just that one line I pointed out, I think you'll need to move ${KUTTL_ARGS} to before the semi-colon

Makefile Outdated
@@ -2030,7 +2030,7 @@ openstack_kuttl_run: ## runs kuttl tests for the openstack operator, assumes tha
oc delete osctlplane --all --namespace ${NAMESPACE}; \
make crc_storage_cleanup_with_retries; \
make crc_storage_with_retries; \
kubectl-kuttl test --config ${OPENSTACK_KUTTL_CONF} ${OPENSTACK_KUTTL_DIR} --test $${test_dir}; \
kubectl-kuttl test --config ${OPENSTACK_KUTTL_CONF} ${OPENSTACK_KUTTL_DIR} --test $${test_dir}; \ $(KUTTL_ARGS)
Copy link
Contributor

Choose a reason for hiding this comment

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

${KUTTL_ARGS} is coming after a semi-colon on this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, i just did sed at all places :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not adding at all to this target as already using --test arg in it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bshephar can you check again

Can now pass arbitary args while running test, for example to run a
specific test can run:-
make ovn_kuttl_run KUTTL_ARGS="--test ovn-config"
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/e339fda146f54ff4b5e017c8b74f01ee

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 11m 11s
install-yamls-crc-podified-edpm-baremetal RETRY_LIMIT in 13m 44s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 23m 55s

@karelyatin
Copy link
Contributor Author

recheck RETRY_LIMIT

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

Successfully merging this pull request may close these issues.

2 participants