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

Failing to run on ubuntu-22.04 #198

Open
TimboTambo opened this issue Dec 20, 2022 · 4 comments · May be fixed by #232
Open

Failing to run on ubuntu-22.04 #198

TimboTambo opened this issue Dec 20, 2022 · 4 comments · May be fixed by #232

Comments

@TimboTambo
Copy link

A few weeks ago our pa11y-ci tests started failing on Github runners when targeting ubuntu-latest, coinciding with Github updating latest to target version 22.04.1 (previously version 20.04.5).

We are using the latest version of pa11y-ci (version 3.0.1).
The failure message was Failed to run against the URL (as pictured) and the error thrown, logged by the reporter was {"name":"TimeoutError"}.
Screenshot 2022-12-20 at 09 46 41

We updated the Github action to target Ubuntu version 20.04.5 and the tests started passing again. I've looked through the release notes for version 22.04 and can't see anything in particular that might cause these failures.

@kussmaul
Copy link

I had a similar experience with Fedora Core - tests started failing with "Failed to run". In my case, the problem was the browser path, which I fixed by setting defaults.chromeLaunchConfig.executablePath in the pa11y-ci config file.

@aabccd021
Copy link

I've got it working on ubuntu-22.04 by setting the field defaults.chromeLaunchConfig.executablePath as mentioned by @kussmaul, set with value which solved similar issue.

{
  "defaults": {
    "chromeLaunchConfig": {
      "executablePath": "/usr/bin/google-chrome"
    }
  }
}

@yous
Copy link

yous commented Feb 11, 2023

For CircleCI, I've fixed this by adding --no-sandbox to defaults.chromeLaunchConfig.args:

{
  "defaults": {
    "chromeLaunchConfig": {
      "args": [
        "--no-sandbox"
      ]
    }
  }
}

See https://github.com/pa11y/pa11y-ci/blob/master/README.md#docker.

@thiguet
Copy link

thiguet commented Mar 24, 2023

We could add this to the docs. It would be helpful for those configuring CircleCI and Github. If possible I'll submit a PR later.

heymatthenry pushed a commit to GSA-TTS/FAC that referenced this issue Apr 5, 2023
delucis added a commit to withastro/starlight that referenced this issue May 13, 2023
@danyalaytekin danyalaytekin added this to the 4 milestone Nov 10, 2023
larsrh added a commit to larsrh/website that referenced this issue Jan 27, 2024
Fixes issue on newer Ubuntu versions. See
<pa11y/pa11y-ci#198> for details.
@danyalaytekin danyalaytekin linked a pull request Mar 11, 2024 that will close this issue
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants