Skip to content

[19.0][MIG] connector: Migration to 19.0#531

Open
yankinmax wants to merge 743 commits into
OCA:19.0from
camptocamp:19.0-mig-connector
Open

[19.0][MIG] connector: Migration to 19.0#531
yankinmax wants to merge 743 commits into
OCA:19.0from
camptocamp:19.0-mig-connector

Conversation

@yankinmax
Copy link
Copy Markdown
Contributor

This PR is opened to speed up migration:

  1. Supersedes
  1. @simahawk suggestion is addressed.

jssuzanne and others added 30 commits May 8, 2026 11:36
…nnector exist before call the method define by module connector
Otherwise the auto api docs are not generated
Because the check uses a fast-path for the connector so it does not reach the
cache.
This code is never reached when we check the installation state with the
high-level function is_module_installed for the module 'connector' because it
directly looks for a model in the registry to check the installation state
This column appears often in the where clauses with the old workers.
This adds a retry pattern for queue jobs.
see OCA/connector-magento#26
Sort the retry dict by key ( the retry count ) instead of by value
It avoids to copy and to store the pattern for every job when all jobs of one
function will probably share the same pattern.
So that the last count is repeated indefinitely.
For the following pattern:
{1: 10*60,
 5: 20*60,
 10: 60*60}
The retries 1 to 4 will be postponed 10 minutes later.
The retries 5 to 9 will be postponed 20 minutes later.
The retries 10 to infinite will be postponed 1 hour later.
Does not do particular checks to see if each "step" is a
valid m2o field, relies on the standard and familiar
Odoo recordset errors instead.
The job function, channel and worker fields are too large for a 6 column
layout. Job function and channel make the fields overflow of the form and the
worker fields is wrapped over 3 lines
…cified (to avoid timedelta error when seconds is None) in job.py.
@yankinmax
Copy link
Copy Markdown
Contributor Author

Hello @simahawk can you pls take a look?

@yankinmax
Copy link
Copy Markdown
Contributor Author

Hello @mkoeck @imlopes @vvrossem can you pls take a look?

Comment thread connector/security/connector_security.xml Outdated
Comment thread connector/security/connector_security.xml Outdated
Comment thread connector/tests/test_mapper.py Outdated
@yankinmax yankinmax force-pushed the 19.0-mig-connector branch 2 times, most recently from f0007d0 to e4cfe95 Compare May 14, 2026 07:51
@yankinmax
Copy link
Copy Markdown
Contributor Author

The error isn't migration related:

WARNING: The directory '/github/home/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
Looking in indexes: https://wheelhouse.odoo-community.org/oca-simple-and-pypi
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)'))': /oca-simple-and-pypi/cachetools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)'))': /oca-simple-and-pypi/cachetools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)'))': /oca-simple-and-pypi/cachetools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)'))': /oca-simple-and-pypi/cachetools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)'))': /oca-simple-and-pypi/cachetools/
Could not fetch URL https://wheelhouse.odoo-community.org/oca-simple-and-pypi/cachetools/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='wheelhouse.odoo-community.org', port=443): Max retries exceeded with url: /oca-simple-and-pypi/cachetools/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1007)'))) - skipping
ERROR: Could not find a version that satisfies the requirement cachetools (from versions: none)
ERROR: No matching distribution found for cachetools

@simahawk
Copy link
Copy Markdown
Contributor

the issue is everywhere OCA/maintainer-tools#675

@yankinmax yankinmax force-pushed the 19.0-mig-connector branch from e4cfe95 to 7af14cd Compare May 15, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.