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

Ensure filestore is shared when ran in a distributed way #78

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

lmignon
Copy link
Contributor

@lmignon lmignon commented Oct 8, 2024

When test are ran in a distributed way, we must ensure that each worker has access to the original filestore even if they uses a copy of the original database. This is done by patching the the filestore method of the odoo configuration to point to the original filestore and avoid to copy the original filestore for each created database.

This PR also provides a fix for tests using HTTP controllers.

@lmignon
Copy link
Contributor Author

lmignon commented Oct 8, 2024

ping @yvaucher @petrus-v

When test are ran in a distributed way, we must ensure that each worker has access to the original filestore even if they uses a copy of the original database. This is done by patching the the filestore method of the odoo configuration to point to the original filestore and avoid to copy the original filestore for each created database
@lmignon lmignon force-pushed the master-fix-distributed-filestore branch from e3a6f6d to 36f1364 Compare October 8, 2024 10:11
@codecov-commenter
Copy link

codecov-commenter commented Oct 8, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 27.77778% with 13 lines in your changes missing coverage. Please review.

Please upload report for BASE (master@6e925f3). Learn more about missing BASE report.

Files with missing lines Patch % Lines
pytest_odoo.py 27.77% 13 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #78   +/-   ##
=========================================
  Coverage          ?   33.05%           
=========================================
  Files             ?        1           
  Lines             ?      118           
  Branches          ?        0           
=========================================
  Hits              ?       39           
  Misses            ?       79           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pytest_odoo.py Outdated Show resolved Hide resolved
This will prevent error in case the db name is not compatible with the shell separators
@lmignon lmignon marked this pull request as draft October 8, 2024 12:13
@lmignon lmignon marked this pull request as ready for review October 8, 2024 13:47
@yvaucher yvaucher merged commit f602202 into camptocamp:master Oct 8, 2024
6 checks passed
@lmignon lmignon deleted the master-fix-distributed-filestore branch October 8, 2024 13:52
@petrus-v
Copy link
Contributor

petrus-v commented Oct 8, 2024

good one ! thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants