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

refactor: 💡 set libcommon as an "editable" dependency #699

Merged
merged 3 commits into from
Jan 25, 2023

Conversation

severo
Copy link
Collaborator

@severo severo commented Jan 25, 2023

All the jobs, services and workers share the same version of libs/libcommon, which is the current version.

Before, we had to update the libcommon version, run poetry build, update the version in the other projects' pyproject.toml and poetry update it.

The workflow when updating libcommon will be a lot simpler now. Also: vscode will be able to follow the reference to the source of the libcommon code, instead of showing the packaged dependency in .venv/.

Caveat: this also means that now, modifying something in libcommon will affect all the jobs, services and workers, so we need to have to be more careful. This also means that more CI jobs will be run on every libcommon update, and that when deploying on prod, all the images will be updated and redeployed.

All the jobs, services and workers share the same version of
libs/libcommon, which is the current version. Before, we had to update
the libcommon version, run poetry build, update the version in the other
projects' pyproject.toml and poetry update it. The workflow when
updating libcommon will be a lot simpler now. Also: vscode will be able
to follow the reference to the source of the libcommon code, instead of
showing the packaged dependency in .venv/. Caveat: this also means that
now, modifying something in libcommon will affect all the jobs, services
and workers, so we need to have to be more careful. This also means that
more CI jobs will be run on every libcommon update, and that when
deploying on prod, all the images will be updated and redeployed.
@codecov-commenter
Copy link

codecov-commenter commented Jan 25, 2023

Codecov Report

Base: 90.01% // Head: 89.66% // Decreases project coverage by -0.36% ⚠️

Coverage data is based on head (05a1740) compared to base (c40fe80).
Patch has no changes to coverable lines.

❗ Current head 05a1740 differs from pull request most recent head a82ba44. Consider uploading reports for the commit a82ba44 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #699      +/-   ##
==========================================
- Coverage   90.01%   89.66%   -0.36%     
==========================================
  Files          93       78      -15     
  Lines        4678     3629    -1049     
==========================================
- Hits         4211     3254     -957     
+ Misses        467      375      -92     
Flag Coverage Δ
jobs_mongodb_migration 84.33% <ø> (ø)
libs_libcommon ?
services_admin 88.90% <ø> (ø)
services_api 89.87% <ø> (ø)
workers_datasets_based 91.11% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
libs/libcommon/tests/test_processing_steps.py
libs/libcommon/src/libcommon/config.py
libs/libcommon/tests/test_queue.py
libs/libcommon/tests/conftest.py
libs/libcommon/src/libcommon/simple_cache.py
libs/libcommon/tests/test_storage.py
libs/libcommon/tests/test_simple_cache.py
libs/libcommon/src/libcommon/exceptions.py
libs/libcommon/tests/test_dataset.py
libs/libcommon/tests/test_config.py
... and 5 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@severo severo merged commit 02ca898 into main Jan 25, 2023
@severo severo deleted the simplify-dependency-to-libcommon branch January 25, 2023 10:33
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.

2 participants