Skip to content

fix(e2e-tests): use pyppeteer bundled Chromium in containerized_chrome job#660

Merged
Bryan-Roe merged 2 commits into
mainfrom
copilot/actions-fix-step-5-error
Jul 6, 2026
Merged

fix(e2e-tests): use pyppeteer bundled Chromium in containerized_chrome job#660
Bryan-Roe merged 2 commits into
mainfrom
copilot/actions-fix-step-5-error

Conversation

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

chromium-browser doesn't exist on Debian Bullseye (the python:3.11-bullseye container image), and chromium was also dropped from Bullseye repos — causing the apt fallback chain to fail hard at step 5.

Changes

  • e2e-tests.yml: Replace broken apt-get install chromium / chromium-browser fallback chain with pyppeteer's bundled Chromium download, matching the pattern already used in aria-tests.yml:

    python -c "from pyppeteer.chromium_downloader import download_chromium; download_chromium()"

    Drop CHROME_PATH: /usr/bin/chromium — pyppeteer auto-discovers its downloaded binary when the env var is absent.

  • tests/test_aria_tests_workflow.py: Extend existing workflow guard to also assert e2e-tests.yml never contains chromium-browser and always uses download_chromium().

…e job

Debian Bullseye (python:3.11-bullseye container) does not provide
chromium-browser in its APT repos.  Replace the broken apt-get install
fallback chain with pyppeteer's own bundled Chromium download
(download_chromium()), matching the pattern already used in aria-tests.yml.

Also removes the now-unnecessary CHROME_PATH=/usr/bin/chromium env var
so pyppeteer finds its bundled binary automatically, and extends
test_aria_tests_workflow.py to guard both workflows against future
regressions.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry @Copilot, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@Bryan-Roe Bryan-Roe marked this pull request as ready for review July 6, 2026 00:45
@Bryan-Roe Bryan-Roe self-requested a review as a code owner July 6, 2026 00:45
Copilot AI review requested due to automatic review settings July 6, 2026 00:45
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@Bryan-Roe Thanks for sending me some feedback. Unfortunately, I hit an error while trying to use the custom Copilot setup steps configured for this repository. The error I am seeing is:

no `copilot-setup-steps` job found in your `copilot-setup-steps.yml` workflow file. Please ensure you have a single job named `copilot-setup-steps`. For more details, see https://gh.io/copilot/actions-setup-steps

Once you or someone with the necessary access fixes the problem, please let me know in a comment and I'll try again. Thanks!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a hard failure in the containerized_chrome (Pyppeteer) job of e2e-tests.yml. The job runs inside the python:3.11-bullseye image, where chromium-browser does not exist and chromium was dropped from the Bullseye apt repos, causing the apt fallback chain to fail. The fix replaces the brittle apt-install chain with Pyppeteer's bundled Chromium downloader, aligning the workflow with the already-working pattern in aria-tests.yml.

Changes:

  • Replace the apt-get install chromium / chromium-browser fallback chain with pyppeteer.chromium_downloader.download_chromium(), and drop the now-unnecessary CHROME_PATH: /usr/bin/chromium env var (Pyppeteer auto-discovers its downloaded binary).
  • Extend the workflow guard test to assert e2e-tests.yml never references chromium-browser or python -m pyppeteer install, and always uses the bundled download_chromium() command.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/e2e-tests.yml Removes the broken apt Chromium install/normalize steps and CHROME_PATH, switching to Pyppeteer's bundled Chromium download to match aria-tests.yml.
tests/test_aria_tests_workflow.py Factors the download command into a shared constant and adds a unit-marked guard asserting e2e-tests.yml uses the bundled downloader and avoids chromium-browser.

Signed-off-by: Bryan <74067792+Bryan-Roe@users.noreply.github.com>
@Bryan-Roe Bryan-Roe merged commit 8824a46 into main Jul 6, 2026
41 of 53 checks passed
@Bryan-Roe Bryan-Roe deleted the copilot/actions-fix-step-5-error branch July 6, 2026 00:50
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🔐 CodeQL — Open Alerts on this PR

Severity Count
error 10
note 70
warning 13
medium 3
high 4

Copilot Autofix suggestions (if enabled) appear as inline review comments on the affected lines.
See the full list in the Security tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants