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 route method to use metadata, closes #591 #1365

Merged
merged 2 commits into from
Feb 13, 2020
Merged

allow route method to use metadata, closes #591 #1365

merged 2 commits into from
Feb 13, 2020

Conversation

RafalSkolasinski
Copy link
Contributor

@RafalSkolasinski RafalSkolasinski commented Jan 24, 2020

This is to close #591.

@seldondev
Copy link
Collaborator

Fri Jan 24 13:28:14 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-1365/1.log

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

@seldondev
Copy link
Collaborator

Fri Jan 24 13:28:26 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-1365/2.log

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

@RafalSkolasinski RafalSkolasinski changed the title allow route method to be used metadata, closes #591 allow route method to use metadata, closes #591 Jan 24, 2020
@seldondev
Copy link
Collaborator

Fri Jan 24 13:36:52 UTC 2020
The logs for [pr-build] [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-1365/3.log

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

@seldondev
Copy link
Collaborator

Fri Jan 24 13:37:00 UTC 2020
The logs for [lint] [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-1365/4.log

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

@RafalSkolasinski
Copy link
Contributor Author

Fixed lint and rebased on master.
/test integration

@seldondev
Copy link
Collaborator

Mon Jan 27 13:58:48 UTC 2020
The logs for [lint] [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-1365/6.log

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

@seldondev
Copy link
Collaborator

Mon Jan 27 13:58:57 UTC 2020
The logs for [pr-build] [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-1365/5.log

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

@seldondev
Copy link
Collaborator

Mon Jan 27 13:59:57 UTC 2020
The logs for [integration] [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-1365/7.log

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

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.

Looks good @RafalSkolasinski! I just added a small comment, let me know what you think.

python/tests/test_router_microservice.py Show resolved Hide resolved
Copy link
Contributor

@axsaucedo axsaucedo left a comment

Choose a reason for hiding this comment

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

Looks good, just added comments to remove some print statements

python/tests/test_router_microservice.py Show resolved Hide resolved
python/tests/test_router_microservice.py Show resolved Hide resolved
@RafalSkolasinski
Copy link
Contributor Author

Looks good, just added comments to remove some print statements

Similar prints are present in other test methods. I was only following the flow of the test file.

@seldondev
Copy link
Collaborator

Mon Jan 27 14:42:50 UTC 2020
The logs for [lint] [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-1365/9.log

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

@seldondev
Copy link
Collaborator

Mon Jan 27 14:42:51 UTC 2020
The logs for [pr-build] [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-1365/8.log

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

@RafalSkolasinski
Copy link
Contributor Author

@axsaucedo If I am suppose to remove prints, shall I remove them from the whole file?
I thought they're there by purpose for easier debugging.

@RafalSkolasinski
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Jan 27 15:30:22 UTC 2020
The logs for [integration] [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-1365/10.log

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

@RafalSkolasinski
Copy link
Contributor Author

It seems I am getting my favourite error about failed istio deploy:

kubectl rollout status deployment.apps/istio-ingressgateway -n istio-system
Waiting for deployment "istio-ingressgateway" rollout to finish: 0 of 1 updated replicas are available...
error: deployment "istio-ingressgateway" exceeded its progress deadline
make: *** [Makefile:45: install_istio] Error 1

@RafalSkolasinski
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Jan 27 17:18:56 UTC 2020
The logs for [integration] [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-1365/11.log

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

@RafalSkolasinski
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Mon Jan 27 19:11:33 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-1365/12.log

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

@RafalSkolasinski
Copy link
Contributor Author

/test integration

@seldondev
Copy link
Collaborator

Tue Jan 28 12:14:26 UTC 2020
The logs for [integration] [13] will show after the pipeline context has finished.
https://github.com/SeldonIO/seldon-core/blob/gh-pages/jenkins-x/logs/SeldonIO/seldon-core/PR-1365/13.log

impatient try
jx get build logs SeldonIO/seldon-core/PR-1365 --build=13

@RafalSkolasinski
Copy link
Contributor Author

/test integration

@RafalSkolasinski
Copy link
Contributor Author

Rebased on top of #1415 therefore temporary WIP.
/test integration

@seldondev
Copy link
Collaborator

Tue Feb 11 11:26:57 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-1365/28.log

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

@seldondev
Copy link
Collaborator

Tue Feb 11 11:27:08 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-1365/29.log

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

@seldondev
Copy link
Collaborator

Tue Feb 11 11:27:40 UTC 2020
The logs for [integration] [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-1365/30.log

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

@RafalSkolasinski
Copy link
Contributor Author

Current run failed on

============================= FAILURES ===================================
_________________ TestRollingHttp.test_rolling_update6[ambas] __________________
[gw0] linux -- Python 3.6.0 /usr/local/bin/python

self = <test_rolling_updates.TestRollingHttp object at 0x7fcf5faa7198>
namespace = 'test-rolling-update6-ambas', api_gateway = 'localhost:8003'

    def test_rolling_update6(self, namespace, api_gateway):
        if api_gateway == API_ISTIO_GATEWAY:
            retry_run(
                f"kubectl create -f ../resources/seldon-gateway.yaml -n {namespace}"
            )
        retry_run(f"kubectl apply -f ../resources/graph1svc.json -n {namespace}")
        wait_for_status("mymodel", namespace)
        wait_for_rollout("mymodel", namespace, expected_deployments=2)
        logging.warning("Initial request")
        r = initial_rest_request("mymodel", namespace, endpoint=api_gateway)
        assert r.status_code == 200
        assert r.json()["data"]["tensor"]["values"] == [1.0, 2.0, 3.0, 4.0]
        retry_run(f"kubectl apply -f ../resources/graph2svc.json -n {namespace}")
        r = initial_rest_request("mymodel", namespace, endpoint=api_gateway)
        assert r.status_code == 200
        assert r.json()["data"]["tensor"]["values"] == [1.0, 2.0, 3.0, 4.0]
        i = 0
        for i in range(100):
            r = rest_request_ambassador("mymodel", namespace, api_gateway)
>           assert r.status_code == 200
E           assert 504 == 200
E             -504
E             +200

@RafalSkolasinski
Copy link
Contributor Author

/retest

@seldondev
Copy link
Collaborator

Tue Feb 11 13:04:47 UTC 2020
The logs for [integration] [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-1365/31.log

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

@RafalSkolasinski RafalSkolasinski changed the title WIP: allow route method to use metadata, closes #591 allow route method to use metadata, closes #591 Feb 11, 2020
@RafalSkolasinski
Copy link
Contributor Author

@axsaucedo @adriangonz This finally passed integration tests!
Should be not touched and merged just after #1415.

@axsaucedo Changes requested by you will be handled by #1424.

@seldondev seldondev added size/M and removed size/L labels Feb 11, 2020
@RafalSkolasinski
Copy link
Contributor Author

As #1415 is merged into master I rebased on top of it.
There should be no code difference between current state and version that passed tests.

@seldondev
Copy link
Collaborator

Tue Feb 11 15:25:11 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-1365/33.log

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

@seldondev
Copy link
Collaborator

Tue Feb 11 15:26:50 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-1365/32.log

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

@RafalSkolasinski
Copy link
Contributor Author

Just to test if tests will pass again (they already passed on this version of code).
/test integration

@seldondev
Copy link
Collaborator

Wed Feb 12 10:57:19 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-1365/34.log

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

@RafalSkolasinski
Copy link
Contributor Author

/retest

@seldondev
Copy link
Collaborator

Wed Feb 12 11:34:12 UTC 2020
The logs for [integration] [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-1365/35.log

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

@RafalSkolasinski
Copy link
Contributor Author

@axsaucedo This PR passed integration tests for 2nd time! Let's merge it before it changes its mind again ; - )

@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

@RafalSkolasinski RafalSkolasinski merged commit 5429945 into SeldonIO:master Feb 13, 2020
@axsaucedo axsaucedo removed their assignment May 13, 2021
@seldondev
Copy link
Collaborator

failed to trigger Pull Request pipeline

  • failed to create agent
  • failed to calculate in repo config
  • failed to load trigger config for repository SeldonIO/seldon-core for ref 2430c2a
  • failed to find any lighthouse configuration files in repo SeldonIO/seldon-core at sha 2430c2a
  • failed to process repo SeldonIO/seldon-core refref 2430c2a
  • failed to list files in directory /var/tmp/gitrepo660600678/.lighthouse
  • open /var/tmp/gitrepo660600678/.lighthouse
  • no such file or directory

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.

Allow route method to use metadata
5 participants