Skip to content

Remove apt-install of xvfb and chromium in GHA - #16874

Merged
stevejalim merged 1 commit into
mozilla:mainfrom
janbrasna:upd/ci-tests
Nov 19, 2025
Merged

Remove apt-install of xvfb and chromium in GHA#16874
stevejalim merged 1 commit into
mozilla:mainfrom
janbrasna:upd/ci-tests

Conversation

@janbrasna

Copy link
Copy Markdown
Collaborator

If this changeset needs to go into the FXC codebase, please add the WMO and FXC label. 💯

One-line summary

Removes a slow and convoluted install step for things already available in the runner.

Significant changes and points to review

Added caching as the FE/JS testing stack takes some time to install so it might be worth it. Accompanied by an explicitly readonly token to make sure this has no privileges.

I also took the liberty of renaming the workflow file, as the unit tests are not run only for PRs, so to match the content I bit the bullet and made it just plain "unit_tests" if there are no objections. (AFAICT there's no automation to pull the pipeline statuses or anything like that; but to double check in case there's anything in repo settings branch protections to require certain checks to pass before some merges…)

Issue / Bugzilla link

#16872

Testing

@janbrasna/bedrock /actions/runs/19473152578/

@stevejalim
stevejalim requested a review from Copilot November 19, 2025 13:25

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 optimizes the GitHub Actions workflow by removing unnecessary system package installations and adding npm caching. The changes reduce CI runtime by leveraging pre-installed tools in the GitHub runner environment and improve build performance through dependency caching.

Key changes:

  • Removed redundant apt-get installation of xvfb and chromium (already available in ubuntu-latest runner)
  • Added npm caching to speed up dependency installation
  • Added explicit read-only permissions to follow security best practices

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@stevejalim
stevejalim merged commit 0b8d616 into mozilla:main Nov 19, 2025
4 checks passed
@janbrasna
janbrasna deleted the upd/ci-tests branch November 19, 2025 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants