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

Explainer Gateway Fix for Istio, Ambassador and Python Client #1668

Merged
merged 19 commits into from
Apr 14, 2020

Conversation

axsaucedo
Copy link
Contributor

Fixes #1627
Fixes #1626

@axsaucedo
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Apr 6 17:11:27 UTC 2020
The logs for [pr-build] [1] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/1.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=1

@seldondev
Copy link
Collaborator

Mon Apr 6 17:11:28 UTC 2020
The logs for [integration] [3] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/3.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=3

@seldondev
Copy link
Collaborator

Mon Apr 6 17:13:04 UTC 2020
The logs for [lint] [2] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/2.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=2

@seldondev seldondev added size/M and removed size/S labels Apr 6, 2020
@axsaucedo
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Apr 6 19:21:21 UTC 2020
The logs for [lint] [5] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/5.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=5

@seldondev
Copy link
Collaborator

Mon Apr 6 19:22:08 UTC 2020
The logs for [integration] [6] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/6.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=6

@seldondev
Copy link
Collaborator

Mon Apr 6 19:22:28 UTC 2020
The logs for [pr-build] [4] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/4.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=4

@axsaucedo
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Apr 6 19:55:42 UTC 2020
The logs for [lint] [8] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/8.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=8

@seldondev
Copy link
Collaborator

Mon Apr 6 19:55:53 UTC 2020
The logs for [pr-build] [7] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/7.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=7

@seldondev
Copy link
Collaborator

Mon Apr 6 19:56:23 UTC 2020
The logs for [integration] [9] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/9.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=9

@axsaucedo
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Apr 6 20:01:47 UTC 2020
The logs for [lint] [11] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/11.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=11

@seldondev
Copy link
Collaborator

Mon Apr 6 20:01:50 UTC 2020
The logs for [pr-build] [10] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/10.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=10

@seldondev
Copy link
Collaborator

Mon Apr 6 20:03:17 UTC 2020
The logs for [integration] [12] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/12.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=12

@axsaucedo
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Apr 6 21:37:24 UTC 2020
The logs for [integration] [15] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/15.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=15

@seldondev
Copy link
Collaborator

Wed Apr 8 17:57:15 UTC 2020
The logs for [lint] [27] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/27.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=27

@seldondev
Copy link
Collaborator

Wed Apr 8 17:57:19 UTC 2020
The logs for [pr-build] [26] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/26.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=26

@axsaucedo axsaucedo changed the title WIP: Explainer Gateway Fix for Istio, Ambassador and Python Client Explainer Gateway Fix for Istio, Ambassador and Python Client Apr 8, 2020
@seldondev
Copy link
Collaborator

Thu Apr 9 08:20:49 UTC 2020
The logs for [pr-build] [28] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/28.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=28

@seldondev
Copy link
Collaborator

Thu Apr 9 08:20:56 UTC 2020
The logs for [lint] [29] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/29.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=29

@seldondev
Copy link
Collaborator

Thu Apr 9 09:03:06 UTC 2020
The logs for [pr-build] [30] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/30.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=30

@seldondev
Copy link
Collaborator

Thu Apr 9 09:03:07 UTC 2020
The logs for [lint] [31] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/31.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=31

Copy link
Contributor

@adriangonz adriangonz left a comment

Choose a reason for hiding this comment

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

Awesome! I've added a few comments, but it looks pretty good!

python/seldon_core/seldon_client.py Show resolved Hide resolved
python/seldon_core/seldon_client.py Show resolved Hide resolved
testing/scripts/seldon_e2e_utils.py Show resolved Hide resolved
testing/scripts/test_prepackaged_servers.py Outdated Show resolved Hide resolved
@@ -247,7 +247,7 @@ func createExplainerIstioResources(pSvcName string, p *machinelearningv1.Predict
{
Uri: &istio_networking.StringMatch{MatchType: &istio_networking.StringMatch_Prefix{Prefix: "/seldon.protos.Seldon/"}},
Headers: map[string]*istio_networking.StringMatch{
"seldon": &istio_networking.StringMatch{MatchType: &istio_networking.StringMatch_Exact{Exact: mlDep.Name}},
"seldon": &istio_networking.StringMatch{MatchType: &istio_networking.StringMatch_Exact{Exact: mlDep.GetName()}},
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting, I didn't know that ObjectMeta also had methods defined!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, those are methods that we added via composition, it's really one that we added to make the name with a hash if too long. Actually, this may have been intended tho - @cliveseldon could you confirm if this was intended?

Copy link
Contributor

Choose a reason for hiding this comment

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

Which code are you referring to?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh - those are just convenience methods added by k8s. name and GetName are the same.

@@ -528,6 +529,7 @@ def explain(
headers: Dict = None,
http_path: str = None,
client_return_type: str = None,
predictor: str = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit (feel free to ignore): should we call the arg predictor_name instead of predictor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Haha I thought of the same, I think the reason I ended up goign with this is because there were no other params with the format x_name, i.e. method, gateway, namespace, etc

Copy link
Contributor

Choose a reason for hiding this comment

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

There is deployment_name actually!

deployment_name: str = None,

@seldondev
Copy link
Collaborator

Thu Apr 9 14:00:58 UTC 2020
The logs for [pr-build] [32] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/32.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=32

@seldondev
Copy link
Collaborator

Thu Apr 9 14:01:10 UTC 2020
The logs for [lint] [33] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/33.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=33

@ukclivecox
Copy link
Contributor

/test integration

@seldondev
Copy link
Collaborator

Sat Apr 11 08:37:42 UTC 2020
The logs for [integration] [34] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/34.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=34

@ukclivecox
Copy link
Contributor

/approve

@seldondev
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cliveseldon

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

@axsaucedo
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Tue Apr 14 09:37:34 UTC 2020
The logs for [lint] [36] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/36.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=36

@seldondev
Copy link
Collaborator

Tue Apr 14 09:37:37 UTC 2020
The logs for [pr-build] [35] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/35.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=35

@seldondev
Copy link
Collaborator

Tue Apr 14 09:38:38 UTC 2020
The logs for [integration] [37] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/37.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=37

@seldondev
Copy link
Collaborator

Tue Apr 14 11:25:04 UTC 2020
The logs for [pr-build] [38] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/38.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=38

@seldondev
Copy link
Collaborator

Tue Apr 14 11:25:06 UTC 2020
The logs for [lint] [39] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1668/39.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1668 --build=39

@axsaucedo axsaucedo merged commit a42e8b3 into SeldonIO:master Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants