-
Notifications
You must be signed in to change notification settings - Fork 45
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
[IMP] util/modules: force install of new modules #140
base: master
Are you sure you want to change the base?
[IMP] util/modules: force install of new modules #140
Conversation
bce810b
to
a312606
Compare
upgradeci retry with always only base |
a312606
to
3fbd00d
Compare
ef5d719
to
d536368
Compare
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.
I would also add a call to _assert_modules_exists
into the function _force_upgrade_of_fresh_module
.
The method 'force_install_module' only works when the module already exists in the database and changes its state immediately. For new modules this does not work unless the module is explicitly added, or we use the auto discovery methods instead.
d536368
to
03c9ff4
Compare
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.
@robodoo r+
@robodoo r- On hold until some retro-compatibility questions are sorted out. |
The method
force_install_module
only works when the module already exists in the database and changes its state immediately. For new modules this does not work unless the module is explicitly added, or we use the auto discovery methods instead.A check
_assert_modules_exists
is also added to the force installation.As a solution, the check for version is added to see if we can delay the force installation to
post-base
when the module is auto discovered, and the implementation is moved to_force_install_module
. The calls forforce_install_module
are replaced in the following methods where the module is expected to exist:merge_module
new_module_dep
trigger_auto_install
_trigger_auto_discovery