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

Update tests to remove codeflare subscription creation #139

Merged

Conversation

ChughShilpa
Copy link
Contributor

@ChughShilpa ChughShilpa commented Oct 10, 2023

Update Distributed Workloads tests to remove Codeflare subscription creation to implement the new deployment strategy of Codeflare Operator

Fixes #21

Description

Update tests to remove codeflare subscription creation

How Has This Been Tested?

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@openshift-ci
Copy link

openshift-ci bot commented Oct 10, 2023

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

@ChughShilpa ChughShilpa marked this pull request as ready for review October 10, 2023 11:27
@ChughShilpa ChughShilpa requested review from sutaakar and removed request for tedhtchang and KPostOffice October 10, 2023 11:27
@sutaakar
Copy link
Contributor

The tests/resources/codeflare-subscription.yaml is related to the bash tests, IMHO we should delete the bash tests completely as we don't leverage odh-manifests repository any more (can be tracked as another task).
This issue from my perspective is to delete resources used in PR checks and update readme for tests:

  • delete https://github.com/opendatahub-io/distributed-workloads/blob/main/contrib/configuration/codeflare-operator-subscription.yaml
  • delete
    .PHONY: install-codeflare-operator
    install-codeflare-operator: ## Install CodeFlare operator
    @echo -e "\n==> Installing CodeFlare Operator \n"
    oc create -f contrib/configuration/codeflare-operator-subscription.yaml
    @echo Waiting for codeflare-operator Subscription to be ready
    oc wait -n openshift-operators subscription/codeflare-operator --for=jsonpath='{.status.state}'=AtLatestKnown --timeout=180s
    .PHONY: delete-codeflare-operator
    delete-codeflare-operator: ## Delete CodeFlare operator
    @echo -e "\n==> Deleting CodeFlare Operator \n"
    -oc delete subscription codeflare-operator -n openshift-operators
    -export CLUSTER_SERVICE_VERSION=`oc get clusterserviceversion -n openshift-operators -l operators.coreos.com/codeflare-operator.openshift-operators -o custom-columns=:metadata.name`; \
    oc delete clusterserviceversion $$CLUSTER_SERVICE_VERSION -n openshift-operators
    .PHONY: install-codeflare-operator-from-github
    install-codeflare-operator-from-github: ## Install CodeFlare operator from main branch on GitHub
    @echo -e "\n==> Installing CodeFlare Operator from main branch on GitHub \n"
    test -d $(TMPDIR)/codeflare || git clone https://github.com/project-codeflare/codeflare-operator.git $(TMPDIR)/codeflare
    VERSION=dev make deploy -C $(TMPDIR)/codeflare
    .PHONY: delete-codeflare-operator-from-github
    delete-codeflare-operator-from-github: ## Delete CodeFlare operator from main branch on GitHub
    @echo -e "\n==> Deleting CodeFlare Operator from main branch on GitHub \n"
    test -d $(TMPDIR)/codeflare || git clone https://github.com/project-codeflare/codeflare-operator.git $(TMPDIR)/codeflare
    make undeploy -C $(TMPDIR)/codeflare
    and respective part in all-in-one task
  • adjust OpenShift CI - https://github.com/openshift/release/blob/master/ci-operator/config/opendatahub-io/distributed-workloads/opendatahub-io-distributed-workloads-main.yaml

@ChughShilpa
Copy link
Contributor Author

The tests/resources/codeflare-subscription.yaml is related to the bash tests, IMHO we should delete the bash tests completely as we don't leverage odh-manifests repository any more (can be tracked as another task). This issue from my perspective is to delete resources used in PR checks and update readme for tests:

  • delete https://github.com/opendatahub-io/distributed-workloads/blob/main/contrib/configuration/codeflare-operator-subscription.yaml
  • delete
    .PHONY: install-codeflare-operator
    install-codeflare-operator: ## Install CodeFlare operator
    @echo -e "\n==> Installing CodeFlare Operator \n"
    oc create -f contrib/configuration/codeflare-operator-subscription.yaml
    @echo Waiting for codeflare-operator Subscription to be ready
    oc wait -n openshift-operators subscription/codeflare-operator --for=jsonpath='{.status.state}'=AtLatestKnown --timeout=180s
    .PHONY: delete-codeflare-operator
    delete-codeflare-operator: ## Delete CodeFlare operator
    @echo -e "\n==> Deleting CodeFlare Operator \n"
    -oc delete subscription codeflare-operator -n openshift-operators
    -export CLUSTER_SERVICE_VERSION=`oc get clusterserviceversion -n openshift-operators -l operators.coreos.com/codeflare-operator.openshift-operators -o custom-columns=:metadata.name`; \
    oc delete clusterserviceversion $$CLUSTER_SERVICE_VERSION -n openshift-operators
    .PHONY: install-codeflare-operator-from-github
    install-codeflare-operator-from-github: ## Install CodeFlare operator from main branch on GitHub
    @echo -e "\n==> Installing CodeFlare Operator from main branch on GitHub \n"
    test -d $(TMPDIR)/codeflare || git clone https://github.com/project-codeflare/codeflare-operator.git $(TMPDIR)/codeflare
    VERSION=dev make deploy -C $(TMPDIR)/codeflare
    .PHONY: delete-codeflare-operator-from-github
    delete-codeflare-operator-from-github: ## Delete CodeFlare operator from main branch on GitHub
    @echo -e "\n==> Deleting CodeFlare Operator from main branch on GitHub \n"
    test -d $(TMPDIR)/codeflare || git clone https://github.com/project-codeflare/codeflare-operator.git $(TMPDIR)/codeflare
    make undeploy -C $(TMPDIR)/codeflare

    and respective part in all-in-one task
  • adjust OpenShift CI - https://github.com/openshift/release/blob/master/ci-operator/config/opendatahub-io/distributed-workloads/opendatahub-io-distributed-workloads-main.yaml

Thanks for the clarification @sutaakar
I understood it in the opposite way and assumed removing codeflare-operator-subscription.yaml and updating makefile file will be covered in a different task

I will the update this PR.

@ChughShilpa
Copy link
Contributor Author

ChughShilpa commented Oct 12, 2023

@sutaakar
Updated with changes.
PR for Openshift CI : openshift/release#44282

@sutaakar
Copy link
Contributor

Thanks, currently this is blocked by opendatahub-io/opendatahub-operator#604.
Once the PR is merged and new ODH version released then this PR can be merged.

@dimakis
Copy link

dimakis commented Oct 19, 2023

Thanks, currently this is blocked by opendatahub-io/opendatahub-operator#604. Once the PR is merged and new ODH version released then this PR can be merged.

@ChughShilpa @sutaakar why is this blokced by that PR?

@sutaakar
Copy link
Contributor

@dimakis I guess that the referenced PR implements the migration of manifests from ODH/DW to ODH/CFO repo, which is needed for this change. Though I am not 100% sure of that PR functionality.

Copy link

openshift-ci bot commented Nov 27, 2023

@ChughShilpa: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-odh-dw cfce2ee link true /test e2e-odh-dw

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Contributor

@sutaakar sutaakar left a comment

Choose a reason for hiding this comment

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

/lgtm

Copy link

openshift-ci bot commented Nov 27, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sutaakar

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

@sutaakar
Copy link
Contributor

Merging manually as the PR check is broken

@sutaakar sutaakar merged commit 23cb029 into opendatahub-io:main Nov 27, 2023
1 of 3 checks passed
@ChughShilpa ChughShilpa deleted the removeCodeflareSubscription branch November 27, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants