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

Revert and re-adapt test/e2e/common/utils.py #147

Conversation

israel-hdez
Copy link

What this PR does / why we need it:

This reverts changes done in commit ecff079 to test/e2e/common/utils.py. It is possible to revert since opendatahub-io/odh-model-controller#59 is solved.

After the revert, another adaptation was needed. CI in upstream assumes that the URL in the InferenceService cannot be resolved, so it uses the IP of the istio-ingressgateway together with the HTTP Host header to workaround this limitation. However, in ODH testing environment the URL of InferenceServices can be resolved. The adaptation adds a flag to use the URL of the isvc, rather than using the IP of the istio-ingressgateway.

This adaptation can be contributed to upstream, because the community can benefit from it.

The CI setup is updated, so that the revert works correctly:

  • odh-model-controller is now being installed
  • TLS is removed from the istio-ingressgateway

Additionally, the following other changes were done to the CI setup:

  • Turn off Mesh-related components that are not needed for CI
  • Prefer usage of the ServiceMeshMember CRD to enroll namespaces to the Mesh

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #50

Checklist:

  • Have you added unit/e2e tests that prove your fix is effective or that this feature works?
  • Has code been commented, particularly in hard-to-understand areas?
  • Have you made corresponding changes to the documentation?

Release note:

NONE

@israel-hdez
Copy link
Author

/test ci/prow/e2e-fast ci/prow/e2e-slow

Copy link

openshift-ci bot commented Dec 14, 2023

@israel-hdez: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test e2e-fast
  • /test e2e-slow
  • /test images
  • /test pr-image-mirror-kserve-agent
  • /test pr-image-mirror-kserve-controller
  • /test pr-image-mirror-kserve-router
  • /test pr-image-mirror-kserve-storage-initializer

Use /test all to run all jobs.

In response to this:

/test ci/prow/e2e-fast ci/prow/e2e-slow

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.

@israel-hdez
Copy link
Author

/test e2e-fast e2e-slow

cluster_ip = host
else:
cluster_ip = get_cluster_ip()
return cluster_ip, host, path
Copy link
Member

Choose a reason for hiding this comment

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

new line

Copy link
Author

Choose a reason for hiding this comment

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

New line before return?

Copy link
Member

Choose a reason for hiding this comment

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

at the end of the file :)

Copy link
Author

Choose a reason for hiding this comment

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

Fixed.

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, I reverted.
The python linter didn't like it. See: https://github.com/opendatahub-io/kserve/actions/runs/7269665250/job/19807632226#step:4:38

Copy link
Member

Choose a reason for hiding this comment

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

hmm, not sure why.
PEP8 suggests a line terminator while this custom linter asks to remove.

@@ -77,6 +77,9 @@ kustomize build $PROJECT_ROOT/config/overlays/test | \
oc apply -f -
oc wait --for=condition=ready pod -l control-plane=kserve-controller-manager -n kserve --timeout=300s

echo "Installing odh-model-controller"
kustomize build $PROJECT_ROOT/test/scripts/openshift-ci | oc apply -f -
Copy link
Member

@terrytangyuan terrytangyuan Dec 18, 2023

Choose a reason for hiding this comment

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

This can be simplified to oc apply -k $PROJECT_ROOT/test/scripts/openshift-ci

Copy link
Author

Choose a reason for hiding this comment

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

Fixed.

This reverts changes done in commit ecff079 to test/e2e/common/utils.py.
It is possible to revert since opendatahub-io/odh-model-controller#59 is
solved.

After the revert, another adaptation was needed. CI in upstream assumes
that the URL in the InferenceService cannot be resolved, so it uses the
IP of the istio-ingressgateway together with the HTTP Host header to
workaround this limitation. However, in ODH testing environment the URL
of InferenceServices can be resolved. The adaptation adds a flag to use
the URL of the isvc, rather than using the IP of the
istio-ingressgateway.

This adaptation can be contributed to upstream, because the community
can benefit from it.

The CI setup is updated, so that the revert works correctly:
* odh-model-controller is now being installed
* TLS is removed from the istio-ingressgateway

Additionally, the following other changes were done to the CI setup:
* Turn off Mesh-related components that are not needed for CI
* Prefer usage of the ServiceMeshMember CRD to enroll namespaces to the
  Mesh

Fixes opendatahub-io#50

Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com>
Copy link

openshift-ci bot commented Dec 26, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: israel-hdez, spolti

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-merge-bot openshift-merge-bot bot merged commit 4825c74 into opendatahub-io:master Dec 26, 2023
26 checks passed
@israel-hdez israel-hdez deleted the 50-revert-e2e-utils-temp-fix branch January 8, 2024 19:11
Jooho pushed a commit to Jooho/kserve that referenced this pull request Feb 28, 2024
…p/component-updates/kserve-router-28

Update kserve-router-28 to 21d74d5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Revert changes in test/e2e/common/utils.py
4 participants