-
Notifications
You must be signed in to change notification settings - Fork 343
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
Skip version check for incompatible version strings in bootstrapper.py
#3106
Conversation
Signed-off-by: cjackal <juhn3707@gmail.com>
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.
This changes look good to me, but I'd like Alan to take a look and have requested his review.
Would you mind applying the same fix also to the Apache Airflow https://github.com/cjackal/elyra/blob/main/elyra/airflow/bootstrapper.py#L346 since the issue isn't runtime specific? |
@ptitzler While the same fix can be done, it looks like airflow version relies on depreciated (in fact, removed since EDIT. In short, requirements-elyra.txt will only contain PEP-440 compliant versions, right? |
Sorry I missed that. And yes, you are right. The majority of Elyra deployments we are aware of are utilizing Kubeflow Pipelines as runtime and therefore, over time, we've invested more in that code base. As a result there are now some differences between the two files, with the KFP version being the up-to-date one.
Yes! At least the official version of the file on GitHub will. |
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.
LGTM! Thank you!
Also update version check to work the same on `packaging<22.0` Signed-off-by: cjackal <juhn3707@gmail.com>
Thanks for clarification @ptitzler ! A comment on the changes in this PR: There was a breaking API change since As |
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.
@cjackal - LTGM and thanks for your first contribution and merge!
Signed-off-by: cjackal juhn3707@gmail.com
What changes were proposed in this pull request?
Current runtime dependency version check routine for elyra pipeline is less robust on source packages not installed via pypi.
E.g. one may struggle to run elyra pipeline on clean-installed miniconda base environment, which pip freeze to
file://
protocol:in 24b445e
This PR suggests to skip version check for every source packages without proper version information by screening
packaging.version.InvalidVersion
exception.How was this pull request tested?
Developer's Certificate of Origin 1.1