Skip to content

[py3.10-ocb16.0] Chrome version 126 incompatible with recent Odoo tests commit: chrome_debug.log location #122

@Honeyxilia

Description

@Honeyxilia

Describe the bug

A log saving was added to Odoo v16.0, for the ChromeBrowser executable, where they try to access the file self.user_data_dir (eg. /tmp/tmpXXX_chrome_odoo) + "/chrome_debug.log"

However, while on Chrome versions 128 and later, the initial profile is created within the provided self.user_data_dir, on previous versions, such as 126 (used in the aforementioned image), there's an additionnal Default subdirectory created, meaning the

On a local instance, with a more recent version of Chrome (or chromium), a test will pass, but on a previous version (ie. 126), the test will fail due to that log file.

To Reproduce

Affected versions: 16.0, with the py3.10-ocb16.0 docker image ( ghcr.io/oca/oca-ci/py3.10-ocb16.0:latest )

Steps to reproduce the behavior:

  1. Create a test using HttpCase and browser_js
  2. Insert a 16.0 .github/workflow/tests.yml with oca_run_tests and push onto a Git repository
  3. Run the tests job

Expected behavior
The tests should pass within the docker image

Additional context
I have checked the Chrome release notes ( https://developer.chrome.com/release-notes/128 ) as well as Chromium's code, however I can't pinpoint the exact change which changed the user data directory behavior

However, having a more recent version of Chrome (such as 139) would circumvent this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions