-
Notifications
You must be signed in to change notification settings - Fork 23k
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
[12.0][FIX] core: ability to run tours in Chrome 111 #115782
[12.0][FIX] core: ability to run tours in Chrome 111 #115782
Conversation
Chrome 111 enabled checking of websocket origin: if the WS connection sends an Origin head which is not whitelisted with the new `--remote-allow-origins` switch it is rejected. Turns out websocket-client (amongst others) *does* send an `Origin`, which trips the check, and means tours immediately break when trying to run them as Odoo's test harness is unable to connect to (and control) the devtools. Suppress sending `Origin` to fix the issue. Note: this also prevents using the remote developer tools by opening the devtools URL, user needs to go through chrome://inspect from the client and find / select the headless browser from there. Chrome 111 changeset: https://chromiumdash.appspot.com/commit/0154caeefc74530d5cb57ce71608beb1b77bca39 Chrome tracker issue: https://crbug.com/1422444 closes odoo#114930 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Odoo is not accepting patches in these old branches. You should propose it to OCB and use that soft fork. |
@pedrobaeza this a bit of a serious issue for us in the OCA, because some tests are broken in the CI for odoo/odoo. It means even if we patch OCA/OCB some tour tests for odoo/odoo will keep failing and cripple some repository CI entirely (example V12 is still quite popular to leave it with a broken CI entirely... Alternatives I see are:
|
bonus idea: monkey path _open_socket in V12 offending tests. |
Well, maybe Odoo people will merge this, but on the same mood, there are others stucked at 11.0, and anothers at 13.0, so they will demand the same. The best bet is to modify the OCA CI to only use OCB. At the end, there won't be any counterpart, as there are no more Odoo updates, so if right now is green, the only chance to break it is on OCB. And we will gain less energy consumption in the builds. |
@rvalyi @pedrobaeza For now I did a PR for the OCB too |
For more info, see: - odoo/odoo#114930 - odoo/odoo#115782
For more info, see: - odoo/odoo#114930 - odoo/odoo#115782
Added ----- - Added new option `--no-fetch` to cmd `odoo-helper link` that allows to disable fetching repositories (from `odoo_requirements.txt` and `oca_dependencies.txt`) Changed ------- - Automatically apply patch to run tours on Chrome 111 for Odoo 12. See details: - odoo/odoo#114930 - odoo/odoo#115782 Fixed ----- - Force link modules during migration tests
Dear @marcelsavegnago, Thank you for your contribution but the version 12.0 is no longer supported. We apology if we could not look at your request in time. This is an automated message. |
ref. #114930
ping @xmo-odoo