You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
I expect pos_shift_partner_can_shop to be pip-installed always so that all modules in test-requirements.txt can be installed without error.
Additional context
N/A
The text was updated successfully, but these errors were encountered:
A version of this worked before. Before, as well as having spp_pos_mustard in the test-requirements.txt, pos_shift_partner_can_shopitself would also be in test-requirements.txt. Like so:
This would satisfy the Python packaging requirements, and pos_shift_partner_can_shop would later be re-installed from the repository directory. Obviously not a perfect solution. But this stopped working after #58 because the pos_shift_partner_can_shop in test-requirements.txt would not be compatible with the generated pos_shift_partner_can_shop in test-constraints.txt.
The easy/naïve solution, to me, might be to list all local modules in test-constraints.txt. Whether or not excluded/not-included modules are pip-installed doesn't affect the outcome of the test, because they're not installed/initialised on the database. Alternatively, if that is too much installing, one could add an ALWAYS_PIP_INSTALL environment variable which the oca_list_addons_to_test_as_reqs script takes into account, and which would (manually) contain rebel modules with circular dependencies.
Module
The issue first occurred in coopiteasy/cie-custom#109, which contains custom modules.
Describe the bug
Given:
spp_pos_mustard
in https://github.com/coopiteasy/cie-custom/tree/12.0 depends onpos_shift_partner_can_shop
.pos_shift_partner_can_shop
exists in our repository https://github.com/carmenbianca/circular-rebel-example.other_module
in our repository depends onspp_pos_mustard
. (edit:spp_pos_mustard
is added to test-requirements.txt)pos_shift_partner_can_shop
is a rebel module as per https://github.com/OCA/oca-addons-repo-template.Then:
pos_shift_partner_can_shop
will pass, correctly installing itself andspp_pos_mustard
.other_module
will fail, failing to installspp_pos_mustard
because the dependencypos_shift_partner_can_shop
is not met.See https://github.com/carmenbianca/circular-rebel-example for example GitHub CI runs.
To Reproduce
Affected versions: Any
Described above with example repository.
Expected behavior
I expect
pos_shift_partner_can_shop
to be pip-installed always so that all modules intest-requirements.txt
can be installed without error.Additional context
N/A
The text was updated successfully, but these errors were encountered: