-
Notifications
You must be signed in to change notification settings - Fork 43
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
Problem kind's versioning and Numeric kind's update #449
Conversation
cfeb48c
to
3e2747f
Compare
bc3ed5a
to
3e2747f
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #449 +/- ##
==========================================
+ Coverage 85.02% 85.08% +0.06%
==========================================
Files 198 200 +2
Lines 26073 26268 +195
==========================================
+ Hits 22169 22351 +182
- Misses 3904 3917 +13
☔ View full report in Codecov by Sentry. |
97fede8
to
79b205f
Compare
9f080d7
to
fd36191
Compare
@arbimo any feedback? |
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 looks really good to me. We were able to test it in Aries and appears to work as expected.
I have only added a few comments. Note that handling the second one probably requires a bit more information, associating each feature to the version in which it was introduced. This is a suggestion and not actually sure that this is the way to go.
An additional one : I am not sure we should warn for deprecated features. In particular, to maintain backward compatibility, in Aries we are actually declaring old and new features so that thing still work if the planner is called with version 1 of the UP [1]. In essence, we declare supporting all features supported in all versions of the UP. We do this for the changes in this PR but also did this when some feature name changed pre-1.0.
Hi @arbimo ,
To do this we need to introduce a mapping from every feature to the version it was introduced and/or deprecated, as you suggested. This would break your current aries implementation because, to support pre 1.0 versions of the UP, you are adding features that were removed before the release 1.0. Do you see this as a big issue or is it ok also for you to be fully retrocompatible up to 1.0? |
@Framba-Luca Yes that sound very reasonable. That's OK for Aries, it only means that I will need to specify an updated minimal version for Aries in the next UP release. The risk of breakage is small (up updated but not aries) with an easy fix (just update Aries). The upside (catching typos) is important enough for this =) |
101c0b1
to
94dca85
Compare
4c63224
to
e19ffcf
Compare
Hi @arbimo , I implemented the agreed modifications. As we expected, the non-updated UP-Aries version fails. Is it OK for you to update it, so that the notebook tests will not fail and we can proceed with the merge? |
What is the minimum python version we require? Note that python 3.8 is the default in Ubuntu 20.04 (which I use in CI), so we can still expect some people to use it. |
Thanks for noticing! No we didn't want to require 3.9, it was just a silent mistake. It should be fixed now. |
@arbimo The minimum python version we require is 3.8. |
@Framba-Luca Thanks for fix, it works with python 3.8 now (I am surprised this wasn't caught in CI though). I just cut a release of Aries that should be compatible with this PR and updated the minimum required version of Aries. It is a bit earlier than I anticipated and it can be expected that Aries has some surprising behavior in some numeric domains while we flush the last bugs out. |
@arbimo I think it wasn't caught because the tests run on python 3.10 and only in master the different python versions are tested. Thanks for the anticipated release, let's hope no one complains! :) |
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! Thanks a lot @Framba-Luca
…actually an integer is saved as an integer
…ternal engines ProblemKinds
…haviour (so, accept all post 1.0 features and, if the version is not specified, give the max between the declared features
…n PK with no specified version or with deprecated features
…cache to support pre 3.9 python versions
69fbdc2
to
22e2781
Compare
4cee583
to
4c52551
Compare
Updated fmap version
Fixing issue #435