Skip to content

[Feature] Faster way to install Playwright Browsers and dependencies on GitHub Actions #23388

Closed

Description

Problem

The default GitHub Actions workflow generated by Playwright takes quite a lot of time to install Playwright Browsers, and sometimes fail entirely.

  • Example 1: It takes 3.5m to run playwright install --with-deps

    image
  • Example 2: Sometimes azure.archive.ubuntu.com is unstable. In most Node.js applications we never have a need to run apt-get install except when installing Playwright browsers. This has been one of the most common cause of our build failures.

    image

    Since we run our tests on many workers, this Playwright installation failure costed us 10 hours of GitHub Actions billable time.

    image

Request

  • Make the default GitHub Actions pipeline not rely on apt installs. Update: “It's unfortunately not possible”

  • Update the docs to avoid running playwright install directly and use a Docker image to run instead, so people who follow the docs get the best testing experience. (Maybe update the template in create-playwright?)

For people who face the same issue

I am also exploring solutions as I create this issue, which I will update here as I find more workarounds.

For others who face the same issue: I would like to know how other people work around this problem, so maybe we can find the best one faster. If you have worked around this in some way, please share how you do it.

Workarounds summary

(⭐ = I am using this one now.)

Activity

  1. mxschmitt commented on May 31, 2023

    @mxschmitt
    Contributor

    It's unfortunately not possible to make the GitHub Action unaware of apt. What we recommend instead is using our Docker image, which has all the dependencies preinstalled already: https://playwright.dev/docs/ci#via-containers

    To use it, you just add:

     container:
          image: mcr.microsoft.com/playwright:v1.34.3-jammy
    

    and remove the: npx playwright install --with-deps

  2. dtinth commented on May 31, 2023

    @dtinth
    Author

    Max Schmitt (@mxschmitt) Thank you for a quick response and a pointer to that page.

    I was trying to find that workflow example in the docs but couldn’t find it. I looked at these pages:

    I tried using the container: directive. The tests now runs fast, but now I can’t run aws CLI. (GitHub’s default image has aws CLI preinstalled.) To fix that I try to install AWS CLI using the steps documented in the docs, but the Playwright CLI doesn’t have the unzip command either. To install unzip the most standard way is to apt-get install but that brings us back to the first problem 😂. This is where I’m at right now.

    The test becomes faster at the expense expense of 30s spent in “Initialize containers” phase:

    image
  3. dtinth commented on May 31, 2023

    @dtinth
    Author

    Update: A solution that works for me and improved the build time by 2.5 minutes is to create a custom Docker container action.

    First define an action:

    # .github/actions/playwright/action.yml
    name: Playwright Test
    description: Run Playwright test
    runs:
      using: docker
      image: docker://mcr.microsoft.com/playwright:v1.34.3-jammy
      args:
        - npx
        - playwright
        - test

    Then run it:

          - uses: ./.github/actions/playwright
  4. dtinth commented on May 31, 2023

    @dtinth
    Author

    Update: Turns out a custom action isn’t needed. A docker:// URL can be used with with: directive already.

          - name: Run Playwright tests
            uses: docker://mcr.microsoft.com/playwright:v1.34.3-jammy
            with:
              args: npx playwright test

    At runtime, GitHub Actions translate the above step into this command. It is good that GitHub Actions passes all the environment variables and mounts the source code into the image, so that it runs quite seamlessly.

    image

    Also, the “pull” action has been hoisted to the beginning of the workflow run:

    image

    I think this approach strikes a pretty good balance between simplicity and performance.

  5. thewilkybarkid commented on Jun 1, 2023

    @thewilkybarkid

    I've just tried Thai Pangsakulyanont (@dtinth)'s idea and it worked great... except for Firefox:

    Run docker://mcr.microsoft.com/playwright:v1.34.3-jammy
    /usr/bin/docker run --name mcrmicrosoftcomplaywrightv1343jammy_7c8d02 --label ed8[6](https://github.com/PREreview/prereview.org/actions/runs/5142094133/jobs/9255391182#step:7:7)6e --workdir /github/workspace --rm -e "PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD" -e "INPUT_ARGS" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/prereview.org/prereview.org":"/github/workspace" mcr.microsoft.com/playwright:v1.34.3-jammy npx playwright test --forbid-only --shard=4/5 --retries 4
    
    Running 166 tests using 1 worker, shard 4 of 5
    ××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F
    ××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F
    ××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F
    ××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F
    ××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F
    ××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F
    ××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F
    ××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F
    ××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F
    ××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F××××F
    ××××F××××F××××F××××F××××F××××F
    
      1) [Desktop Firefox] › about-us.spec.ts:3:5 › can read about us ──────────────────────────────────
    
        Error: browserType.launch: Browser.enable): Browser closed.
        ==================== Browser output: ====================
        <launching> /ms-playwright/firefox-140[8](https://github.com/PREreview/prereview.org/actions/runs/5142094133/jobs/9255391182#step:7:9)/firefox/firefox -no-remote -headless -profile /tmp/playwright_firefoxdev_profile-3jPRiP -juggler-pipe -silent
        <launched> pid=245
        [pid=245][err] Running Nightly as root in a regular user's session is not supported.  ($HOME is /github/home which is owned by uid [10](https://github.com/PREreview/prereview.org/actions/runs/5142094133/jobs/9255391182#step:7:11)01.)
        [pid=245] <process did exit: exitCode=1, signal=null>
        [pid=245] starting temporary directories cleanup
        =========================== logs ===========================
        <launching> /ms-playwright/firefox-[14](https://github.com/PREreview/prereview.org/actions/runs/5142094133/jobs/9255391182#step:7:15)08/firefox/firefox -no-remote -headless -profile /tmp/playwright_firefoxdev_profile-3jPRiP -juggler-pipe -silent
        <launched> pid=[24](https://github.com/PREreview/prereview.org/actions/runs/5142094133/jobs/9255391182#step:7:25)5
        [pid=245][err] Running Nightly as root in a regular user's session is not supported.  ($HOME is /github/home which is owned by uid 1001.)
        [pid=245] <process did exit: exitCode=1, signal=null>
        [pid=245] starting temporary directories cleanup
        ============================================================
    
    [...]
    

    Edit: just found #6500.

  6. thewilkybarkid commented on Jun 1, 2023

    @thewilkybarkid

    I've tried to set $HOME in PREreview/prereview.org@8f7b96e, but it didn't apply inside the container (still seeing Running Nightly as root in a regular user's session is not supported. ($HOME is /github/home which is owned by uid 1001.)). Not sure what to do now so will have to revert...

  7. dtinth commented on Jun 1, 2023

    @dtinth
    Author

    Chris Wilkinson (@thewilkybarkid) One potential way to work around this may be to prefix the args with env, i.e. env HOME=/root npx playwright ... or use something like cross-env. Not sure if it works or not.

  8. mxschmitt commented on Jun 2, 2023

    @mxschmitt
    Contributor

    Looks like there is no action item on our side and you have listed a few workarounds. If you are interested in contributing to our ci docs and add there another caching strategy to make it on GitHub Actions faster, we would more than appreciate!

    Regarding the HOME=/root issue, I closed the linked issue a while ago since I wasn't able to reproduce it. If you help us reproducing this one, we can definitely fix it.

    Thanks for your understanding!

  9. thewilkybarkid commented on Jun 2, 2023

    @thewilkybarkid

    That worked Thai Pangsakulyanont (@dtinth)! I'll comment on the other issue Max Schmitt (@mxschmitt).

  10. DivyanshGothwal commented on Sep 5, 2023

    @DivyanshGothwal

    Thai Pangsakulyanont (@dtinth) Max Schmitt (@mxschmitt)
    In the below SS I tried creating a custom github action and tried to use it in my workflow, I got error saying playwright is not installed.

    image

  11. 8 remaining items

  12. airtonix commented on Dec 19, 2024

    @airtonix

    Came here to say that all I needed to do was two things:

    import { defineConfig, devices } from '@playwright/test';
    import dotenv from 'dotenv';
    
    dotenv.config();
    
    export default defineConfig({
      testDir: './e2e',
      timeout: 30 * 1000,
      expect: {
        timeout: 5000,
      },
      forbidOnly: !!process.env.CI,
      retries: process.env.CI ? 2 : 0,
      workers: process.env.CI ? 1 : undefined,
      reporter: [['list'], ['html']],
      use: {
        actionTimeout: 0,
        baseURL: process.env.BASEURL,
        trace: 'on',
        acceptDownloads: true,
        ignoreHTTPSErrors: true,
      },
      projects: [
        {
          name: 'chromium',
          use: {
            ...devices['Desktop Chrome'],
            channel: 'chrome',
          },
        },
      ],
      webServer: {
        command: 'mise run serve 3000',
        port: 3000,
        timeout: 120 * 1000,
        reuseExistingServer: !process.env.CI,
      },
    });

    And then I just do normal Github Action Things ™

    name: Pr
    
    on:
      pull_request:
    
    concurrency:
      group: ${{ github.workflow }}-${{ github.ref }}
      cancel-in-progress: true
    
    permissions:
      issues: write
      pull-requests: write
      actions: read
      contents: read
    
    jobs:
      Check:
        runs-on: ubuntu-latest
    
        steps:
          - name: Checkout
            uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3
            with:
              fetch-depth: 0
    
          - uses: jdx/mise-action@5bb8f8c1911837cf42064e6490e7634fc842ee7e # v2
            env:
              GITHUB_API_TOKEN: ${{ secrets.ASDF_GITHUB_API_TOKEN }}
            with:
              version: 2024.11.4
    
          - name: Install Node Modules
            uses: ./.github/actions/setup-yarn
    
          - name: Lint, Test, Typecheck
            run: |
              mise task run content
              mise task run typecheck
              mise task run lint
    
          - name: Build
            run: |
              mise task run build
    
          - name: E2E Tests
            run: |
              mise task run e2e --reporter=json --output=results.json
    
          - uses: daun/playwright-report-summary@867aa7913b7a66681e55ed304dbe5d6097f8922e #v3
            if: always()
            with:
              report-file: results.json
    
          - name: Upload E2E Report
            if: always()
            uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 #4.4.3
            with:
              name: build
              path: playwright-report
    
          - name: Comment
            uses: hasura/comment-progress@146c635f3e325d478025e29e5043ec1c07c0e36c #v2.3.0
            with:
              github-token: ${{ secrets.GITHUB_TOKEN }}
              repository: ${{ github.repository }}
              number: ${{ github.event.number }}
              id: preview-deployment-url
              message: 'Preview deployment started'
    
          - name: Deploy to Preview
            id: deploy
            env:
              CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
              CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
            run: |
              mise task run deploy --configuration=preview |
                .github/scripts/extract-cloudflare-deployment-urls.sh \
                  github_output "$GITHUB_OUTPUT"
    
          - name: Comment
            uses: hasura/comment-progress@146c635f3e325d478025e29e5043ec1c07c0e36c #v2.3.0
            with:
              github-token: ${{ secrets.GITHUB_TOKEN }}
              repository: ${{ github.repository }}
              number: ${{ github.event.number }}
              id: preview-deployment-url
              message: |
                Preview deployment complete
    
                URL: ${{ steps.deploy.outputs.url }}
                ALIAS_URL: ${{ steps.deploy.outputs.alias_url }}
              recreate: true
  13. benjick commented on Sep 9, 2025

    @benjick
    Image

    Is there no good solution for this? channel: "chrome" doesn't work at all for me

  14. dtinth commented on Mar 21, 2026

    @dtinth
    Author

    I recently learned that Playwright supports exposing local network to the remote browser server using exposeNetwork option and that Playwright Test can be configured to use that setup with PW_TEST_CONNECT_WS_ENDPOINT + PW_TEST_CONNECT_EXPOSE_NETWORK.

    With that, I created the dtinth/setup-playwright-test-docker action, which is a drop-in replacement for playwright install --with-deps but is around 2x faster. It does this by launching a Playwright remote server using Docker, and then configures environment variables ($GITHUB_ENV) so that Playwright Test automatically connects to it.

    Image
  15. alonbardavid commented on Jun 4, 2026

    @alonbardavid

    A bit of a late reply, but I have found that just caching the downloads make for a very fast turnaround.

          - name: Restore Playwright cache
            id: playwright-cache
            uses: actions/cache/restore@v5
            with:
              path: ~/.cache/ms-playwright
              key: playwright-${{ hashFiles('pnpm-lock.yaml') }}
    
          - name: Install Playwright browsers
            if: steps.playwright-cache.outputs.cache-hit != 'true'
            run: <run your install command here>
    
          - name: Save Playwright cache
            if: steps.playwright-cache.outputs.cache-hit != 'true'
            uses: actions/cache/save@v5
            with:
              path: ~/.cache/ms-playwright
              key: playwright-${{ hashFiles('pnpm-lock.yaml') }}
    
  16. vincerubinetti commented on Jun 5, 2026

    @vincerubinetti

    Just on May 29th 2026 a cron job started failing for me on npx playwright install chromium --with-deps:

    Image
    full log
    npx playwright install chromium --with-deps
    
    Installing dependencies...
    Switching to root user to install dependencies...
    Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [144 B]
    Hit:2 http://azure.archive.ubuntu.com/ubuntu noble InRelease
    Get:3 http://azure.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
    Get:4 http://azure.archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
    Get:5 http://azure.archive.ubuntu.com/ubuntu noble-security InRelease [126 kB]
    Hit:6 https://packages.microsoft.com/repos/azure-cli noble InRelease
    Get:7 https://packages.microsoft.com/ubuntu/24.04/prod noble InRelease [3600 B]
    Get:8 http://azure.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [2049 kB]
    Get:18 https://dl.google.com/linux/chrome-stable/deb stable InRelease [1825 B]
    Get:9 http://azure.archive.ubuntu.com/ubuntu noble-updates/main Translation-en [360 kB]
    Get:10 http://azure.archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [177 kB]
    Get:11 http://azure.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1694 kB]
    Get:12 http://azure.archive.ubuntu.com/ubuntu noble-updates/universe Translation-en [330 kB]
    Get:13 http://azure.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [386 kB]
    Get:14 http://azure.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [3278 kB]
    Get:15 http://azure.archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en [760 kB]
    Get:16 http://azure.archive.ubuntu.com/ubuntu noble-updates/multiverse Translation-en [11.3 kB]
    Get:17 http://azure.archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B]
    Get:19 http://azure.archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [5760 B]
    Get:20 http://azure.archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [10.5 kB]
    Get:21 http://azure.archive.ubuntu.com/ubuntu noble-security/main amd64 Packages [1704 kB]
    Get:22 http://azure.archive.ubuntu.com/ubuntu noble-security/main Translation-en [268 kB]
    Get:23 http://azure.archive.ubuntu.com/ubuntu noble-security/main amd64 Components [42.5 kB]
    Get:24 http://azure.archive.ubuntu.com/ubuntu noble-security/universe amd64 Packages [1192 kB]
    Get:25 http://azure.archive.ubuntu.com/ubuntu noble-security/universe Translation-en [230 kB]
    Get:26 http://azure.archive.ubuntu.com/ubuntu noble-security/universe amd64 Components [74.2 kB]
    Get:27 http://azure.archive.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [3006 kB]
    Get:28 http://azure.archive.ubuntu.com/ubuntu noble-security/restricted Translation-en [698 kB]
    Get:30 https://packages.microsoft.com/ubuntu/24.04/prod noble/main amd64 Packages [162 kB]
    Get:29 http://azure.archive.ubuntu.com/ubuntu noble-security/multiverse Translation-en [9000 B]
    Get:31 https://packages.microsoft.com/ubuntu/24.04/prod noble/main arm64 Packages [133 kB]
    Get:32 https://dl.google.com/linux/chrome-stable/deb stable/main amd64 Packages [1218 B]
    Fetched 17.0 MB in 2s (8895 kB/s)
    Reading package lists...
    Reading package lists...
    Building dependency tree...
    Reading state information...
    libasound2t64 is already the newest version (1.2.11-1ubuntu0.2).
    libasound2t64 set to manually installed.
    libatk-bridge2.0-0t64 is already the newest version (2.52.0-1build1).
    libatk-bridge2.0-0t64 set to manually installed.
    libatk1.0-0t64 is already the newest version (2.52.0-1build1).
    libatk1.0-0t64 set to manually installed.
    libatspi2.0-0t64 is already the newest version (2.52.0-1build1).
    libatspi2.0-0t64 set to manually installed.
    libcairo2 is already the newest version (1.18.0-3build1).
    libcairo2 set to manually installed.
    libcups2t64 is already the newest version (2.4.7-1.2ubuntu7.9).
    libcups2t64 set to manually installed.
    libdbus-1-3 is already the newest version (1.14.10-4ubuntu4.1).
    libdbus-1-3 set to manually installed.
    libdrm2 is already the newest version (2.4.125-1ubuntu0.1~24.04.1).
    libdrm2 set to manually installed.
    libgbm1 is already the newest version (25.2.8-0ubuntu0.24.04.1).
    libgbm1 set to manually installed.
    libglib2.0-0t64 is already the newest version (2.80.0-6ubuntu3.8).
    libglib2.0-0t64 set to manually installed.
    libnspr4 is already the newest version (2:4.35-1.1build1).
    libnspr4 set to manually installed.
    libnss3 is already the newest version (2:3.98-1ubuntu0.1).
    libnss3 set to manually installed.
    libpango-1.0-0 is already the newest version (1.52.1+ds-1build1).
    libpango-1.0-0 set to manually installed.
    libx11-6 is already the newest version (2:1.8.7-1build1).
    libx11-6 set to manually installed.
    libxcb1 is already the newest version (1.15-1ubuntu2).
    libxcb1 set to manually installed.
    libxcomposite1 is already the newest version (1:0.4.5-1build3).
    libxcomposite1 set to manually installed.
    libxdamage1 is already the newest version (1:1.1.6-1build1).
    libxdamage1 set to manually installed.
    libxext6 is already the newest version (2:1.3.4-1build2).
    libxext6 set to manually installed.
    libxfixes3 is already the newest version (1:6.0.0-2build1).
    libxfixes3 set to manually installed.
    libxkbcommon0 is already the newest version (1.6.0-1build1).
    libxkbcommon0 set to manually installed.
    libxrandr2 is already the newest version (2:1.5.2-2build1).
    libxrandr2 set to manually installed.
    xvfb is already the newest version (2:21.1.12-1ubuntu1.5).
    fonts-noto-color-emoji is already the newest version (2.047-0ubuntu0.24.04.1).
    libfontconfig1 is already the newest version (2.15.0-1.1ubuntu2).
    libfontconfig1 set to manually installed.
    libfreetype6 is already the newest version (2.13.2+dfsg-1ubuntu0.1).
    libfreetype6 set to manually installed.
    fonts-liberation is already the newest version (1:2.1.5-3).
    fonts-liberation set to manually installed.
    The following additional packages will be installed:
      xfonts-encodings xfonts-utils
    Recommended packages:
      fonts-ipafont-mincho fonts-tlwg-loma
    The following NEW packages will be installed:
      fonts-freefont-ttf fonts-ipafont-gothic fonts-tlwg-loma-otf fonts-unifont
      fonts-wqy-zenhei xfonts-cyrillic xfonts-encodings xfonts-scalable
      xfonts-utils
    0 upgraded, 9 newly installed, 0 to remove and 48 not upgraded.
    Need to get 21.1 MB of archives.
    After this operation, 79.5 MB of additional disk space will be used.
    Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [144 B]
    Get:2 http://azure.archive.ubuntu.com/ubuntu noble/universe amd64 fonts-ipafont-gothic all 00303-21ubuntu1 [3513 kB]
    Get:3 http://azure.archive.ubuntu.com/ubuntu noble/main amd64 fonts-freefont-ttf all 20211204+svn4273-2 [5641 kB]
    Get:4 http://azure.archive.ubuntu.com/ubuntu noble/universe amd64 fonts-tlwg-loma-otf all 1:0.7.3-1 [107 kB]
    Get:5 http://azure.archive.ubuntu.com/ubuntu noble/universe amd64 fonts-unifont all 1:15.1.01-1build1 [2993 kB]
    Get:6 http://azure.archive.ubuntu.com/ubuntu noble/universe amd64 fonts-wqy-zenhei all 0.9.45-8 [7472 kB]
    Get:7 http://azure.archive.ubuntu.com/ubuntu noble/main amd64 xfonts-encodings all 1:1.0.5-0ubuntu2 [578 kB]
    Get:8 http://azure.archive.ubuntu.com/ubuntu noble/main amd64 xfonts-utils amd64 1:7.7+6build3 [94.4 kB]
    Get:9 http://azure.archive.ubuntu.com/ubuntu noble/universe amd64 xfonts-cyrillic all 1:1.0.5+nmu1 [384 kB]
    Get:10 http://azure.archive.ubuntu.com/ubuntu noble/main amd64 xfonts-scalable all 1:1.0.3-1.3 [304 kB]
    Fetched 21.1 MB in 1s (22.9 MB/s)
    Selecting previously unselected package fonts-ipafont-gothic.
    (Reading database ... 
    (Reading database ... 5%
    (Reading database ... 10%
    (Reading database ... 15%
    (Reading database ... 20%
    (Reading database ... 25%
    (Reading database ... 30%
    (Reading database ... 35%
    (Reading database ... 40%
    (Reading database ... 45%
    (Reading database ... 50%
    (Reading database ... 55%
    (Reading database ... 60%
    (Reading database ... 65%
    (Reading database ... 70%
    (Reading database ... 75%
    (Reading database ... 80%
    (Reading database ... 85%
    (Reading database ... 90%
    (Reading database ... 95%
    (Reading database ... 100%
    (Reading database ... 202271 files and directories currently installed.)
    Preparing to unpack .../0-fonts-ipafont-gothic_00303-21ubuntu1_all.deb ...
    Unpacking fonts-ipafont-gothic (00303-21ubuntu1) ...
    Selecting previously unselected package fonts-freefont-ttf.
    Preparing to unpack .../1-fonts-freefont-ttf_20211204+svn4273-2_all.deb ...
    Unpacking fonts-freefont-ttf (20211204+svn4273-2) ...
    Selecting previously unselected package fonts-tlwg-loma-otf.
    Preparing to unpack .../2-fonts-tlwg-loma-otf_1%3a0.7.3-1_all.deb ...
    Unpacking fonts-tlwg-loma-otf (1:0.7.3-1) ...
    Selecting previously unselected package fonts-unifont.
    Preparing to unpack .../3-fonts-unifont_1%3a15.1.01-1build1_all.deb ...
    Unpacking fonts-unifont (1:15.1.01-1build1) ...
    Selecting previously unselected package fonts-wqy-zenhei.
    Preparing to unpack .../4-fonts-wqy-zenhei_0.9.45-8_all.deb ...
    Unpacking fonts-wqy-zenhei (0.9.45-8) ...
    Selecting previously unselected package xfonts-encodings.
    Preparing to unpack .../5-xfonts-encodings_1%3a1.0.5-0ubuntu2_all.deb ...
    Unpacking xfonts-encodings (1:1.0.5-0ubuntu2) ...
    Selecting previously unselected package xfonts-utils.
    Preparing to unpack .../6-xfonts-utils_1%3a7.7+6build3_amd64.deb ...
    Unpacking xfonts-utils (1:7.7+6build3) ...
    Selecting previously unselected package xfonts-cyrillic.
    Preparing to unpack .../7-xfonts-cyrillic_1%3a1.0.5+nmu1_all.deb ...
    Unpacking xfonts-cyrillic (1:1.0.5+nmu1) ...
    Selecting previously unselected package xfonts-scalable.
    Preparing to unpack .../8-xfonts-scalable_1%3a1.0.3-1.3_all.deb ...
    Unpacking xfonts-scalable (1:1.0.3-1.3) ...
    Setting up fonts-wqy-zenhei (0.9.45-8) ...
    Setting up fonts-freefont-ttf (20211204+svn4273-2) ...
    Setting up fonts-tlwg-loma-otf (1:0.7.3-1) ...
    Setting up xfonts-encodings (1:1.0.5-0ubuntu2) ...
    Setting up fonts-ipafont-gothic (00303-21ubuntu1) ...
    update-alternatives: using /usr/share/fonts/opentype/ipafont-gothic/ipag.ttf to provide /usr/share/fonts/truetype/fonts-japanese-gothic.ttf (fonts-japanese-gothic.ttf) in auto mode
    Setting up fonts-unifont (1:15.1.01-1build1) ...
    Setting up xfonts-utils (1:7.7+6build3) ...
    Setting up xfonts-cyrillic (1:1.0.5+nmu1) ...
    Setting up xfonts-scalable (1:1.0.3-1.3) ...
    Processing triggers for man-db (2.12.0-4build2) ...
    Not building database; man-db/auto-update is not 'true'.
    Processing triggers for fontconfig (2.15.0-1.1ubuntu2) ...
    
    Running kernel seems to be up-to-date.
    
    No services need to be restarted.
    
    No containers need to be restarted.
    
    No user sessions are running outdated binaries.
    
    No VM guests are running outdated hypervisor (qemu) binaries on this host.
    Downloading Chromium 134.0.6998.35 (playwright build v1161) from https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1161/chromium-linux.zip
    |                                                                                |   0% of 164.9 MiB
    |■■■■■■■■                                                                        |  10% of 164.9 MiB
    |■■■■■■■■■■■■■■■■                                                                |  20% of 164.9 MiB
    |■■■■■■■■■■■■■■■■■■■■■■■■                                                        |  30% of 164.9 MiB
    |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                                |  40% of 164.9 MiB
    |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                        |  50% of 164.9 MiB
    |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                                |  60% of 164.9 MiB
    |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                        |  70% of 164.9 MiB
    |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■                |  80% of 164.9 MiB
    |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■        |  90% of 164.9 MiB
    |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■| 100% of 164.9 MiB
    Error: The operation was canceled.

    It seemingly hangs on 100%, in my case for 6 hours, consistently.

    I wonder if there should be a built-in failure timeout for the process, if there isn't already? I'd imagine you want to account for people who have slow internets, but I feel like an hour could be a good default... if it doesn't finish by then, it's probably not going to. We could also set timeout-minutes: in the GitHub Actions workflow, but it seems logically to put it directly within Playwright too?

    Still looking into whether I can pin the Ubuntu version or use the Playwright Docker container to solve the issue for my use case.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions