Closed berceanu closed 6 months ago
Hi @berceanu,
Good timing! We were just today preparing a new release (https://github.com/optimas-org/optimas/releases/tag/v0.6.0) that includes support for the latest Ax version (#206). You should already be able to get optimas v0.6.0
from PyPI.
Good, now imagine the following scenario: some time from now, Ax
releases a new version, which is no longer 100% compatible with optimas 0.6
. It would take some time for a new optimas 0.7
release which will be compatible with this new version of Ax
, and during this time the users that will install the latest stable optimas
will not have a working version, because right now the dependency on Ax
is specified as >= 0.4.0
and will always pull the latest.
Or am I missing something?
That's a general question about how to handle dependencies. Do you want to force a particular version, or allow a wider range? The first one gives you a certain peace of mind, but might easily lead to conflicts with other libraries in your environment if they require a different version.
So, I think that in principle we should be as flexible as possible, but all the last few releases of Ax have broken something in optimas (even the small releases like 0.3.5
or 0.3.7
, so not even 0.3.x
is safe!). Right now we can catch and fix this early because our tests run every day, but we could consider pinning a particlar version for each optimas release.
In any case, imagine that Ax 0.4.1
comes out and breaks something. Even though optimas would install it by default, you can still install 0.4.0
manually.
Hi @AngelFP, thanks for the detailed reply, you made some very good points. I was not aware that even patch number Ax
releases can still break things, I thought one could at least get away with pinning the minor release number, eg 0.3.x of Ax
in each optimas
release.
My hope is that this will get better in the future. In previous releases we were using some low-level functions from Ax that are probably not meant for everyone, and which were the reason behind some of these issues. We've been slowly moving away from that, so hopefully this will be more robust going forward.
Latest stable release of
optimas
on PyPI (0.5.0
at the time of writing), has anax
dependency specified asax-platform >= 0.3.4
. Right now this pulls inax 0.4
, which doesn't work, on thefbpic
example it gives:In order to avoid this in the future, perhaps the dependencies on
ax-platform
(and maybelibensemble
as well) inpyproject.toml
could be narrower, ie limited to0.4.x
instead of>= 0.4.0
?