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

[UPD] travis: test v13 and v14 #60

Merged
merged 1 commit into from
Mar 25, 2021

Conversation

MiquelRForgeFlow
Copy link
Contributor

To check if something needs to be fixed.

@MiquelRForgeFlow MiquelRForgeFlow force-pushed the master-add-travis-v13-v14 branch 2 times, most recently from c43c9fa to dd82c18 Compare March 25, 2021 09:37
@MiquelRForgeFlow
Copy link
Contributor Author

MiquelRForgeFlow commented Mar 25, 2021

Hello @sebalix

Here are some nice improvements:

  • reduction of test jobs by assigning their corresponding python compatibility
  • added v13 and v14 in test jobs
  • fixed several tests (related basically to v13 and v14)

What is pending:

  • v12 error of l10n_generic_coa, due to creating an account tax without a company. (already known)
  • v14 error: render is now _render, a private method.

What we obtain:

  • v13 is green 🍏

I would like you to merge this, and then later, in future PRs, try to fix those pending errors.

Selection_042

@@ -114,7 +114,12 @@ def check_report(name):
if v(self._odoo.version)[0] >= 11:
IrReport = self._odoo.env['ir.actions.report']
report = IrReport.browse(report_id)
response = report.with_context(context).render(ids, data=datas)
if v(self._odoo.version)[0] >= 14:
response = report.with_context(context)._render(
Copy link
Collaborator

Choose a reason for hiding this comment

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

For sure it won't work neither as methods prefixed with _ are not reachable through RPC.
Could be fixed later.

- ORPC_TEST_VERSION="11.0" DOCKER_PG_IMAGE="postgres:9.4" TRAVIS_PYTHON_VERSION="3.6"
- ORPC_TEST_VERSION="12.0" DOCKER_PG_IMAGE="postgres:10" TRAVIS_PYTHON_VERSION="3.6"
- ORPC_TEST_VERSION="13.0" DOCKER_PG_IMAGE="postgres:10" TRAVIS_PYTHON_VERSION="3.6"
- ORPC_TEST_VERSION="14.0" DOCKER_PG_IMAGE="postgres:10" TRAVIS_PYTHON_VERSION="3.6"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we are not testing the same thing by doing that: we could have OdooRPC installed with Python 2.7, and performing requests against an Odoo instance running with Python 3.6.
But anyway, it's time to drop the compatibility with Python 2.7 so I guess it's OK :)

@sebalix
Copy link
Collaborator

sebalix commented Mar 25, 2021

I already struggle with the issue regarding the v12 build, I don't think I want to pass more time on it... maybe we could disable the tests for v12 to get a green build, this version won't change anymore I suppose, if v11 and v13 builds are green, it's OK to say that the v12 is supported as well by the project.

@MiquelRForgeFlow
Copy link
Contributor Author

Yeah, the issue with v12 is due to https://github.com/odoo/odoo/blob/12.0/addons/account/models/chart_template.py#L177 with an unexpected falsy company. But disabling tests for v12, that would mean disabling a lot of tests, because many tests depend of that part. An alternative could be installing instead a module that not depends of account and adapt the tests.

@sebalix sebalix merged commit 355bbd3 into OCA:master Mar 25, 2021
@sebalix
Copy link
Collaborator

sebalix commented Mar 25, 2021

I try to be pragmatic with my time, if you want to fix it you are welcome :) Sadly I don't think I'll be able to pass more time on this issue, especially if we need to install other modules than sale+account to get working tests it'll be difficult.

Anyway, big thanks for your updates!
Regarding the issue for v14 _render, we could try to use the HTTP controller to generate the report if possible.

@MiquelRForgeFlow MiquelRForgeFlow deleted the master-add-travis-v13-v14 branch March 25, 2021 13:12
@MiquelRForgeFlow
Copy link
Contributor Author

You are welcome! I leave the _render thing to you :)

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.

None yet

2 participants