Skip to content

[18.0][MIG] odoo_repository#126

Merged
OCA-git-bot merged 134 commits intoOCA:18.0from
sebalix:18.0-mig-odoo_repository
Feb 4, 2026
Merged

[18.0][MIG] odoo_repository#126
OCA-git-bot merged 134 commits intoOCA:18.0from
sebalix:18.0-mig-odoo_repository

Conversation

@sebalix
Copy link
Collaborator

@sebalix sebalix commented Feb 1, 2026

Took the opportunity to rename "Odoo Repositories" terms to "Odoo MCA".

cc @sebastienbeau

Module to build and maintain an exhaustive list of Odoo modules
and their metadata:

- dependencies between them
- license
- authors
- maintainers
- lines of code
- ...
And handle GitHub token.
This could be an external package published on PyPI, but include it in
`odoo_repository` module for now to ease deployment.
This new data model is here to distinguish available upstream modules
and installed modules in a project.

It inherits from `odoo.module.branch` so it has access to all its data,
but is linked to an `odoo.project` and has its own `installed_version`
so it becomes easy to find modules that could be upgraded within a
project.
If new commits since the last scan are updating irrelevant files
regarding the collection of migration data (like PO files updated
automatically by Weblate), then we skip the scan as this is a process
that can be quite time consuming.

Even if the scan has been skipped we still push the last source and
target commits to Odoo.
As the RepositoryScanner (executed before MigrationScanner) has already
fetched the branches of the repository, we avoid to fetch them again
so the MigrationScanner will work on the local history of commits.

This allows to speed up the processing of related jobs.
Without new commits in repositories, a scan of all Odoo + OCA repositories
now takes about ~6min instead of ~13min.
Allows to run the tests locally in isolated environment like Docker.
Instead of global level as the user running the scanner could not have
write access to ~/.gitconfig.
As such, the configuration is done after the cloning of repository,
right before the fetch and later on the checkout (which is the operation
that consumes most of the memory, the configuration is here to reduce it).

Cloning operation itself is faster and consumes less memory with
'filter=blob:none' parameter.
@sebalix sebalix force-pushed the 18.0-mig-odoo_repository branch 8 times, most recently from 67a2af4 to 5bff999 Compare February 2, 2026 07:31
@sebalix sebalix force-pushed the 18.0-mig-odoo_repository branch from 5bff999 to 56a7609 Compare February 2, 2026 07:32
@sebalix sebalix marked this pull request as ready for review February 2, 2026 07:37
@sebalix sebalix force-pushed the 18.0-mig-odoo_repository branch from 56a7609 to 419db2e Compare February 2, 2026 17:34
@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Feb 2, 2026
@OCA OCA deleted a comment from OCA-git-bot Feb 3, 2026
@OCA OCA deleted a comment from OCA-git-bot Feb 3, 2026
Copy link
Member

@sebastienbeau sebastienbeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (code review)

thanks for the work

@sebalix
Copy link
Collaborator Author

sebalix commented Feb 4, 2026

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-126-by-sebalix-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit cd35798 into OCA:18.0 Feb 4, 2026
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 153be46. Thanks a lot for contributing to OCA. ❤️

@sebalix sebalix deleted the 18.0-mig-odoo_repository branch February 4, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants