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

[MIG] purchase_order_archive: Migration to 16.0 #1993

Merged
merged 25 commits into from
Sep 16, 2023

Conversation

CLaurelB
Copy link
Contributor

@CLaurelB CLaurelB commented Sep 4, 2023

No description provided.

@CLaurelB
Copy link
Contributor Author

CLaurelB commented Sep 4, 2023

@luisg123v @desdelinux could you review, please?

Copy link

@desdelinux desdelinux left a comment

Choose a reason for hiding this comment

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

Functional Review is ok 👍

Could you review @HviorForgeFlow

@CLaurelB CLaurelB force-pushed the 16.0-mig-purchase_order_archive branch 3 times, most recently from 058df96 to 78e109c Compare September 4, 2023 22:06
@desdelinux
Copy link

Could you review @pedrobaeza @HviorForgeFlow @rafaelbn

Copy link
Member

@HviorForgeFlow HviorForgeFlow left a comment

Choose a reason for hiding this comment

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

Code review 👍
Thanks for adding tests, you should add yourself as a contributor :)
Why are you removing es.po translations?
@CLaurelB

@CLaurelB CLaurelB force-pushed the 16.0-mig-purchase_order_archive branch 3 times, most recently from 8f1b67e to 1dfbb78 Compare September 14, 2023 14:17
@CLaurelB
Copy link
Contributor Author

CLaurelB commented Sep 14, 2023

Code review 👍 Thanks for adding tests, you should add yourself as a contributor :) Why are you removing es.po translations? @CLaurelB

Thanks, I just added myself as a contributor.

About the es.po file, I removed it by mistake. It is now back in the last commit.

P.S. After updating the PR, I noticed that the pre-commit fails but the error is in the module purchase_request.

@HviorForgeFlow

@HviorForgeFlow
Copy link
Member

@CLaurelB try rebasing with current 16.0 branch, I think it will fix this issue. Thanks for the fast response!

@CLaurelB CLaurelB force-pushed the 16.0-mig-purchase_order_archive branch from 1dfbb78 to ef88d26 Compare September 14, 2023 15:23
@CLaurelB
Copy link
Contributor Author

@CLaurelB try rebasing with current 16.0 branch, I think it will fix this issue. Thanks for the fast response!

@HviorForgeFlow I just rebase my branch but It seems the issue is in the 16.0 branch.

https://github.com/OCA/purchase-workflow/actions/runs/6174540577/job/16759365412

@HviorForgeFlow
Copy link
Member

Solving issue here: #2005

@CLaurelB CLaurelB force-pushed the 16.0-mig-purchase_order_archive branch from ef88d26 to 512dfdc Compare September 14, 2023 16:36
@CLaurelB
Copy link
Contributor Author

CLaurelB commented Sep 14, 2023

Solving issue here: #2005

@HviorForgeFlow I rebase again and the issue is still there but only on the SHA-256 hash.

@CLaurelB CLaurelB force-pushed the 16.0-mig-purchase_order_archive branch from 512dfdc to c65505a Compare September 14, 2023 17:43
@CLaurelB
Copy link
Contributor Author

@HviorForgeFlow all checks have passed 👍

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@HviorForgeFlow
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-1993-by-HviorForgeFlow-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Sep 15, 2023
Signed-off-by HviorForgeFlow
@OCA-git-bot
Copy link
Contributor

@HviorForgeFlow The merge process could not be finalized, because command oca-gen-addon-readme --if-source-changed --org-name OCA --repo-name purchase-workflow --branch 16.0 --addons-dir /tmp/tmpdcsfsgl_ --commit failed with output:

Traceback (most recent call last):
  File "/ocamt/lib/python3.8/site-packages/pypandoc/__init__.py", line 771, in ensure_pandoc_installed
    _ensure_pandoc_path()
  File "/ocamt/lib/python3.8/site-packages/pypandoc/__init__.py", line 750, in _ensure_pandoc_path
    raise OSError("No pandoc was found: either install pandoc and add it\n"
OSError: No pandoc was found: either install pandoc and add it
to your PATH or or call pypandoc.download_pandoc(...) or
install pypandoc wheels with included pandoc.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/oca-gen-addon-readme", line 11, in <module>
    load_entry_point('oca-maintainers-tools', 'console_scripts', 'oca-gen-addon-readme')()
  File "/ocamt/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/ocamt/lib/python3.8/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/ocamt/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/ocamt/lib/python3.8/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/ocamt/src/oca-maintainers-tools/tools/gen_addon_readme.py", line 526, in gen_addon_readme
    gen_one_addon_readme(
  File "/ocamt/src/oca-maintainers-tools/tools/gen_addon_readme.py", line 338, in gen_one_addon_readme
    fragment_filename = prepare_rst_fragment(addon_dir, fragment_name)
  File "/ocamt/src/oca-maintainers-tools/tools/gen_addon_readme.py", line 266, in prepare_rst_fragment
    ensure_pandoc_installed()
  File "/ocamt/src/oca-maintainers-tools/tools/gen_addon_readme.py", line 124, in ensure_pandoc_installed
    pypandoc.ensure_pandoc_installed()
  File "/ocamt/lib/python3.8/site-packages/pypandoc/__init__.py", line 774, in ensure_pandoc_installed
    download_pandoc(url=url,
  File "/ocamt/lib/python3.8/site-packages/pypandoc/pandoc_download.py", line 267, in download_pandoc
    unpack(filename, targetfolder)
  File "/ocamt/lib/python3.8/site-packages/pypandoc/pandoc_download.py", line 95, in _handle_linux
    subprocess.check_call(cmd)
  File "/usr/lib/python3.8/subprocess.py", line 359, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.8/subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ar'

@HviorForgeFlow
Copy link
Member

@sbidoul please take a look here: #1993 (comment)

@HviorForgeFlow
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-1993-by-HviorForgeFlow-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Sep 15, 2023
Signed-off-by HviorForgeFlow
@OCA-git-bot
Copy link
Contributor

@HviorForgeFlow The merge process could not be finalized, because command oca-gen-addon-readme --if-source-changed --org-name OCA --repo-name purchase-workflow --branch 16.0 --addons-dir /tmp/tmpw9camg6d --commit failed with output:

Traceback (most recent call last):
  File "/ocamt/lib/python3.8/site-packages/pypandoc/__init__.py", line 771, in ensure_pandoc_installed
    _ensure_pandoc_path()
  File "/ocamt/lib/python3.8/site-packages/pypandoc/__init__.py", line 750, in _ensure_pandoc_path
    raise OSError("No pandoc was found: either install pandoc and add it\n"
OSError: No pandoc was found: either install pandoc and add it
to your PATH or or call pypandoc.download_pandoc(...) or
install pypandoc wheels with included pandoc.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/oca-gen-addon-readme", line 11, in <module>
    load_entry_point('oca-maintainers-tools', 'console_scripts', 'oca-gen-addon-readme')()
  File "/ocamt/lib/python3.8/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/ocamt/lib/python3.8/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/ocamt/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/ocamt/lib/python3.8/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/ocamt/src/oca-maintainers-tools/tools/gen_addon_readme.py", line 526, in gen_addon_readme
    gen_one_addon_readme(
  File "/ocamt/src/oca-maintainers-tools/tools/gen_addon_readme.py", line 338, in gen_one_addon_readme
    fragment_filename = prepare_rst_fragment(addon_dir, fragment_name)
  File "/ocamt/src/oca-maintainers-tools/tools/gen_addon_readme.py", line 266, in prepare_rst_fragment
    ensure_pandoc_installed()
  File "/ocamt/src/oca-maintainers-tools/tools/gen_addon_readme.py", line 124, in ensure_pandoc_installed
    pypandoc.ensure_pandoc_installed()
  File "/ocamt/lib/python3.8/site-packages/pypandoc/__init__.py", line 774, in ensure_pandoc_installed
    download_pandoc(url=url,
  File "/ocamt/lib/python3.8/site-packages/pypandoc/pandoc_download.py", line 267, in download_pandoc
    unpack(filename, targetfolder)
  File "/ocamt/lib/python3.8/site-packages/pypandoc/pandoc_download.py", line 95, in _handle_linux
    subprocess.check_call(cmd)
  File "/usr/lib/python3.8/subprocess.py", line 359, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python3.8/subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ar'

@sbidoul
Copy link
Member

sbidoul commented Sep 16, 2023

I'm preparing a fix to the bot: OCA/oca-github-bot#259

@sbidoul
Copy link
Member

sbidoul commented Sep 16, 2023

Okay, bot updated. Let's see how it goes now.

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 16.0-ocabot-merge-pr-1993-by-sbidoul-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f5570a7 into OCA:16.0 Sep 16, 2023
@OCA-git-bot
Copy link
Contributor

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

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.