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

Remove space upgrade from DB upgrade #627

Merged
merged 3 commits into from
Jul 23, 2021

Conversation

bouthilx
Copy link
Member

@bouthilx bouthilx commented Jul 23, 2021

[Fixes #554]

Why:

The space upgrade relies on local files if the experiment's search space
is defined in a configuration file. Parsing these file during the DB
upgrade can break the DB because all experiments may not be executed on
the same file system and thus some configuration files may not be
present. The space should only be upgraded when the user attempts
running an experiment, in which case the configuration file is available.

The space does not need to be upgraded during DB upgrade anyway, because
experiment built is backward compatible with experiments lacking an
explicit space definition in DB (relying on cmdargs and config file to
define space at run-time).

How:

Remove space upgrade from db upgrade script.

Why:

The space upgrade relies on local files if the experiment's search space
is defined in a configuration file. Parsing these file during the DB
upgrade can break the DB because all experiments may not be executed on
the same file system and thus some configuration files may not be
present. The space should only be upgraded when the user attempts
running an experiment, in which case the configuration file is available.

The space does not need to be upgraded during DB upgrade anyway, because
experiment built is backward compatible with experiments lacking an
explicit space definition in DB (relying on cmdargs and config file to
define space at run-time).

How:

Remove space upgrade from db upgrade script.
@bouthilx bouthilx added the bug Indicates an unexpected problem or unintended behavior label Jul 23, 2021
@bouthilx bouthilx added this to the v0.1.16 milestone Jul 23, 2021
The DB upgrade does not update the space and priors anymore. The are
handled anyway at runtime, no need to update them in the DB
@bouthilx bouthilx merged commit e409a89 into Epistimio:develop Jul 23, 2021
@bouthilx bouthilx added this to Done in Release v0.1.16 Jul 28, 2021
@bouthilx bouthilx mentioned this pull request Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

DB upgrade can break user script path
1 participant