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

BSRD-806: Get back the submodule task #56

Closed
wants to merge 71 commits into from

Conversation

ivantodorovich
Copy link
Member

@ivantodorovich ivantodorovich commented Dec 12, 2024

https://camptocamp.atlassian.net/browse/BSRD-806

Note

Commits have been ported from odoo-template

TODO:

  • Extract submodule.py from odoo-template's tasks
  • Refactor as click tool
  • Write unit tests

guewen and others added 30 commits June 19, 2017 15:06
List submodules paths which can be directly used to directly copy-paste the
addons paths in the Dockerfile. The order depends of the order in the
.gitmodules file.
---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
* One to generate a pending-merges branch and push it
* One to list the closed pull requests

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
based on the exclude branches principle of Travis

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
* [MOV] Move pending-merges file to the root

CHANGELOG
* rename `odoo/pending-merges.yaml` to `pending-merges.yml`
* update references to it
* provide a task to run on projects yet to migrate


---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
BS-73 Add invoke tasks to handle submodules
---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
Uniquify {xml|python}_impact_modules lists to not print N times matching modules.
---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
* Use image 3.0.0 in normal flavor
* Adapt to new directory structure

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
[ADD] git-autoshare support

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
* release.bump add clipboard of version
* Improve error message for tasks python dependencies

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
Changelog:
* Split `pending-merges.yaml` file per submodule
  namely, provide a task that splits `odoo/pending-merges.yaml` per
  module and stores those parts in `pending-merges.d/` directory
* Implement invoke tasks to add/remove a particular pending merge
* Adapt stuff used to rely on `odoo/pending-merges.yaml` to new arch
  Impact (tasks):
  - submodule.merges
  - release.push-branches

[IMP] s/raw_input/input

[REF] Extract submodule path builders to common.py

[FIX] Use absolute filename for a path

[IMP] Rewrite pending merges regenerator

Uppercase OCA remote name when deprecating pending-merges.yaml

submodule.add-pending is designed to accept PR URL, which often contains
uppercase `OCA` repo name, so that's done in order to avoid normalizing
remote name every time a merge is added/removed.

[IMP] Rewrite `submodule.add-pending`

[REF] Globalize `yaml` variable

since it is used quite extensively here

[IMP] Rewrite `submodule.remove-pending`

* Handle GH's 404/403 on pending-add

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
* remove trailing whitespaces and end-of-file
* fix some flake8 errors

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
yvaucher and others added 29 commits October 24, 2019 16:42
The tasks now search for existing cached git history locally configured
with git-autoshare. Saving time and disk space.

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
This reverts commit d2d9ef6.

Date on copyright should match the source file and oldest year must be
kept.

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
When we run the task to add pull requests in a submodule
(submodule.merges), it adds a commit to exclude travis builds.
If pre-commit is installed in the repository, it will be run during
the invoke task. Use --no-verify to ignore it.

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
Replace yaml.load(input) by yaml.safe_load(input)
---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
When using  for cherry-pick
remotes must be fetched before creating

When cloning a project locally all remotes won't be up to date
Thus regenerating submodule could end up broken

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
Upgrade pre-commit-hooks to v3.2.0
---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
git symbolic-ref returns the name of the branch, but during a rebase,
there is no current branch, so it fails.  We can find the name of the
branch during a rebase in the .git files (.git/rebase-merge or
.git/rebase-apply).

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
Support rebuild of submodule during rebase/interactive rebase
---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
Improves task `submodule.list-external-dependencies-installed'
Also adds the task `module.where-is`

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
Besides it being faster, we're also making it stricter

---------

This commit has been extracted from https://github.com/camptocamp/odoo-template
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.