ci: fix browser-tests ubuntu 24.04 compat#2587
Conversation
8e536e0 to
a710787
Compare
| - name: Install browser dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y --no-install-recommends \ | ||
| ca-certificates \ | ||
| libatomic1 libflite1 libgles2 libharfbuzz-icu0 libhyphen0 libmanette-0.2-0 libicu74 libsecret-1-0 libxslt1.1 woff2 \ | ||
| ca-certificates fonts-liberation libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils \ | ||
| libvpx9 libevent-2.1-7t64 libopus0 libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0 libgstreamer-plugins-bad1.0-0 gstreamer1.0-libav |
There was a problem hiding this comment.
are all of these extra deps required? or can any be left out to be more minimal
There was a problem hiding this comment.
They may not all be required. Most if not all were previously installed under the hood by the playwright util.
There was a problem hiding this comment.
- We should definitely install only the minimum needed
- This seems like a future maintenance burden
- Linebreaks seem inconsistent
There was a problem hiding this comment.
Are you sure changes needed to the action runner? This looks like a Playwright issue that was fixed in 1.45.
a710787 to
e9f230e
Compare
e9f230e to
c0acd95
Compare
| - name: Install browser dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y --no-install-recommends \ | ||
| ca-certificates \ | ||
| libatomic1 libflite1 libgles2 libharfbuzz-icu0 libhyphen0 libmanette-0.2-0 libicu74 libsecret-1-0 libxslt1.1 woff2 \ | ||
| ca-certificates fonts-liberation libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils \ | ||
| libvpx9 libevent-2.1-7t64 libopus0 libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0 libgstreamer-plugins-bad1.0-0 gstreamer1.0-libav |
There was a problem hiding this comment.
- We should definitely install only the minimum needed
- This seems like a future maintenance burden
- Linebreaks seem inconsistent
| - name: Install Playwright Browsers | ||
| working-directory: browser-test | ||
| run: npx playwright install --with-deps | ||
| run: npm exec playwright install --with-deps |
There was a problem hiding this comment.
Doesn't npx do the same thing if playwright is local?
There was a problem hiding this comment.
atm should be
| run: npm exec playwright install --with-deps | |
| run: npm exec -- playwright install --with-deps |
updated ^ it's to fix the recent failing Browser Tests happening in a few PRs |
|
Is this still a problem? |
turadg
left a comment
There was a problem hiding this comment.
Thanks for tackling this! I think the solution may be a simple version bump to get the fix in 1.45.
| timeout-minutes: 30 | ||
| runs-on: ubuntu-latest | ||
| runs-on: ubuntu-24.04 | ||
| # runs-on: ubuntu-latest |
There was a problem hiding this comment.
isn't latest 24.04? did ubuntu-latest cause a problem or are you just wanting to defend against that changing?
I think we should stick with ubuntu-latest because that's what Playwright advises with GitHub Actions:
https://playwright.dev/docs/ci-intro#setting-up-github-actions
There was a problem hiding this comment.
It is, now, but it was unpredictably (A/B from GH side?) switching back and forth between 22.04 and 24.04 between CI runs for a period around at the time of PR creation, which was causing inconsistent CI results.
Not clear if the next transition of ubuntu-latest will be cleaner or similarly messy and require a similar workaround whenever it happens.
| - name: Install Playwright Browsers | ||
| working-directory: browser-test | ||
| run: npx playwright install --with-deps | ||
| run: npm exec playwright install --with-deps |
| - name: Install browser dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y --no-install-recommends \ | ||
| ca-certificates \ | ||
| libatomic1 libflite1 libgles2 libharfbuzz-icu0 libhyphen0 libmanette-0.2-0 libicu74 libsecret-1-0 libxslt1.1 woff2 \ | ||
| ca-certificates fonts-liberation libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils \ | ||
| libvpx9 libevent-2.1-7t64 libopus0 libgstreamer-plugins-base1.0-0 libgstreamer-gl1.0-0 libgstreamer-plugins-bad1.0-0 gstreamer1.0-libav |
There was a problem hiding this comment.
Are you sure changes needed to the action runner? This looks like a Playwright issue that was fixed in 1.45.
|
superseded currently by #2686 i believe (the bump mentioned in #2587 (comment)) |
Yes, that was the minimal update needed to get it to work again. |

Fix: #2660
Description
Fix recent failing CI browser tests
Context
Security Considerations
N/A
Scaling Considerations
N/A
Documentation Considerations
Testing Considerations
Compatibility Considerations
N/A
Upgrade Considerations
N/A