-
Notifications
You must be signed in to change notification settings - Fork 831
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
upgrading to python 3.8 #4910
upgrading to python 3.8 #4910
Conversation
Hi @Abhinavfreecodecamp. Thanks for your PR. I'm waiting for a SeldonIO or todo member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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 jenkins-x/lighthouse repository. |
Hey @Abhinavfreecodecamp , Keep in mind that the explainer / detect servers will be upgraded on a separate PR (see #4912) - so I'd remove any changes there from this PR. If you're happy to make the changes to the pre-packaged servers here, I can review once they're done - there's no need to collaborate on the same PR as that tends to confuse things. I'd also flag this as a WIP PR until it's ready. |
Hi @adriangonz, Sure, let me remove any changes to done to explainer/detect servers in this PR and this PR changes will be limited to |
Hey @Abhinavfreecodecamp , Following up on this one, would you be able to continue working on this PR? If not, that's totally understandable - we can always pick this up internally to finalise it ahead of the next release of SC. |
@adriangonz , I have made all the necessary changes could you review it. Also I am still not sure how you update these to docker hub. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one @Abhinavfreecodecamp ! Thanks for taking the time for this contribution.
I've added a couple comments below. Other than those, I think we're good to start kicking off the CI pipelines (which will build the images, run integration tests, etc. ).
/test integration |
@@ -1,4 +1,4 @@ | |||
seldon_core | |||
scikit-learn == 0.24.2 | |||
numpy >= 1.8.2 | |||
scikit-learn == 1.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to keep the previous versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it will be possible. Should I revert the changes to requirements ? My reason was the updated version will support up untill 3.10 so in future we will not be required to update these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep it to the same versions as in master
to reduce the number of changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i.e.
scikit-learn==0.24.2
, numpy>=1.8.2
and same would apply to the xgboost reqs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adriangonz sure let me revert back changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adriangonz in master for xgboost server the requirements are follows should I keep it same ?
scikit-learn == 0.20.3
numpy >= 1.8.2
xgboost == 1.4.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, let's keep the same as in master
for both
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adriangonz Done.
/test integration |
@Abhinavfreecodecamp: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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 jenkins-x/lighthouse repository. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making those changes! PR looks good - once tests are green, it should be good to go.
/test integration |
1 similar comment
/test integration |
@adriangonz Wanted to know why this integration test failed ? |
@adriangonz any idea why integration has failed as for the mentioned failed commit, since it just revert back the changes ? |
@adriangonz can you please help here, so that we can merge this PR. |
@Abhinavfreecodecamp most likely is due to flakiness on the integration tests setup |
/test integration |
@adriangonz I think it failed again 😅 , is it possible to share logs for the test so I can help with that. |
/test integration |
@Abhinavfreecodecamp so far it's just failing before the setup stage - so nothing to do with the scope of this PR. Tests seem flakier than usual for some reason. Once it goes beyond that I'll share the logs if failures are relevant to this PR 👍 |
@adriangonz it failed again 😅. ? |
Ok - now it's a more relevant error:
This error is coming from the integration tests that you can find in this folder: seldon-core/testing/scripts/test_prepackaged_servers.py Lines 103 to 131 in 093a1cc
Setting up the integration tests to run locally is a bit fiddly - so I'd probably just try running the XGBoost artefact that's used by that test (i.e. |
@adriangonz let me setup the tests locally. |
Sure @Abhinavfreecodecamp - to run the tests locally, you will need to run the Besides that, you will also need to build and load your new images onto the cluster (which you can do with Once the above is done (i.e. SC is running on a Kind cluster, where your new images have been loaded) you will be able to run the failing test. |
Hi @adriangonz ,Please see result below I ran for xgboost I did need to comment rest of the test cases as my docker memory ran out. For xgboost result went fine take a look below. (skipped warning logs)
` also below is output while running |
Hi @adriangonz is it possible this is happening due to k8s configuration and not due to changes in this PR ? |
hi @adriangonz sorry to ask you again, but if it is possible could you test this PR on your local ? |
Hey @Abhinavfreecodecamp , Got the message the first time 🙂 We'll try it out once we get a chance. |
Thanks @adriangonz |
Hey @Abhinavfreecodecamp , Just had a look and was able to trigger the following error when running the XGBoost test:
It seems this is mainly a Python compatibility issue, so it's probably enough to update the XGBoost artefact in the test. These are saved in GCS though, so we'll take it from here to upload a fixed artefact there. |
@adriangonz didn't get it, so the PR is fine but the test using xgboost artefact which is not compatible with py3.8 ? is my understanding correct ? |
@Abhinavfreecodecamp sort of - it seems the XGBoost artefact used in the tests is not compatible with the changes you've made to the XGBoost server, so we'll need to update the artefact in GCS (and as part of this PR, we'll also need to add a change to point to the new artefact). |
@adriangonz got it, actually this is what I thought that's why I updated xgb version previously. Anyway I will list py3.8 compatible xgb below. |
eb3b3fb
to
e9be1a5
Compare
Hey @Abhinavfreecodecamp , You're right - all that was required was bumping the sklearn version on the xgboost runtime. I've also rebased from I'll kick off again the integration tests 👍 |
/test integration |
Thanks @adriangonz |
@adriangonz still failing 🧐 strange as I recall sklearn 1.0 was compatible with py3.8 |
May still be a flaky one - let me have a look |
/test integration |
/test notebooks |
Good news @Abhinavfreecodecamp - it seems like all tests are happy now! Thanks a lot for the time you've put into this one! |
@adriangonz thanks for helping me out. |
What this PR does / why we need it:
This PR is to upgrade pre-packaged servers from python 3.7 to python 3.8.
Which issue(s) this PR fixes:
Issue can be found here
Special notes for your reviewer:
@adriangonz Let's work on this PR to upgrade all pre-packaged servers.