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

upgrade cryptography python package #4540

Merged
merged 7 commits into from
Feb 27, 2023
Merged

upgrade cryptography python package #4540

merged 7 commits into from
Feb 27, 2023

Conversation

ukclivecox
Copy link
Contributor

@ukclivecox ukclivecox commented Jan 1, 2023

Update cryptography version range

By itself causes build to fail. So need to add a set of further updates:

Python builder updates:

  • python builder to 3.8
  • ensure grpcio-tools is installed after conda env is created as its used in initial proto compile in tests
  • limit protobuf version

Its unclear to me if a subset of these could be achievable. Seems centred on proto compile in python 3.8.

@ukclivecox
Copy link
Contributor Author

/test integration

@ukclivecox
Copy link
Contributor Author

/test notebooks

@ukclivecox
Copy link
Contributor Author

integration test run:

Screenshot_2023-01-02_09-06-16
Screenshot_2023-01-02_09-06-32

@ukclivecox
Copy link
Contributor Author

/test integration

@ukclivecox ukclivecox added the v1 label Jan 3, 2023
python/setup.py Outdated
@@ -27,7 +27,7 @@
"requests<3.0.0",
"numpy<2.0.0",
"flatbuffers<2.0.0",
"protobuf<4.0.0",
"protobuf==3.20.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

That will put hard constraint on protobuf version in the user environment causing potential conflicts with other packages.

Copy link
Contributor

Choose a reason for hiding this comment

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

Are both the change in the protobuf version and the change in importlib_metadata required? I tried locally without those and seems the main Python tests are happy (haven't tried with anything else though).

@RafalSkolasinski RafalSkolasinski self-assigned this Jan 5, 2023
@adriangonz
Copy link
Contributor

I just had a look at the changes and noticed that the Python build image is still on Python 3.7 - so perhaps there's no need to change the Python version?

@mwm5945
Copy link
Contributor

mwm5945 commented Feb 21, 2023

Just like to throw my hat in the ring here--this vulnerability is causing issues for us (i won't get into why, you'd have a novella to read lol), is there anything i can do to help push this along? thanks!

@adriangonz
Copy link
Contributor

After having a deeper look, I think @cliveseldon you were 100% right on adding the extra dep changes. It seems something to do with tensorflow forcing an older protobuf, and also with running an old version of flake8 - but neither of them would be trivial fixes.

@RafalSkolasinski if you can have a look at the latest changes, it would be great to get your thumbs up.

@RafalSkolasinski
Copy link
Contributor

Looks good - shall we fire integration & notebook tests?

@adriangonz
Copy link
Contributor

/test integration

@adriangonz
Copy link
Contributor

/test notebooks

@RafalSkolasinski
Copy link
Contributor

/retest

2 similar comments
@RafalSkolasinski
Copy link
Contributor

/retest

@RafalSkolasinski
Copy link
Contributor

/retest

@seldondev
Copy link
Collaborator

@cliveseldon: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
notebooks 71d1d60 link /test notebooks

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. I understand the commands that are listed here.

@adriangonz
Copy link
Contributor

Just had a look at the notebook tests, and they seem to fail because of an issue not related to this PR (which should get fixed in #4691 ), so I'll go ahead and merge this one.

@adriangonz adriangonz merged commit 3cfd6a7 into SeldonIO:master Feb 27, 2023
@mwm5945
Copy link
Contributor

mwm5945 commented Feb 28, 2023

@cliveseldon @adriangonz any chance this would be part of a 1.14.2 release?

@adriangonz
Copy link
Contributor

Hey @mwm5945 ,

We don't have plans atm to backport the fix to 1.14.x. Would upgrading to 1.15.x be an option for you?

@mwm5945
Copy link
Contributor

mwm5945 commented Mar 2, 2023

@adriangonz potentially, though a 1.14 release would be preferred (people get anxious with package upgrades haha). Is there a large difference between 14 and 15?

RafalSkolasinski pushed a commit that referenced this pull request Mar 14, 2023
Co-authored-by: Adrian Gonzalez-Martin <agm@seldon.io>
adriangonz pushed a commit that referenced this pull request Mar 21, 2023
Co-authored-by: Adrian Gonzalez-Martin <agm@seldon.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants