Skip to content

[Bug]: Fixture "trace recording" timeout of 150000ms exceeded during setup (docker) #38192

@slaven13

Description

@slaven13

Version

1.56.1

Steps to reproduce

I am running my suite that has some really long tests whose timeout is set to more than the time specified in playwright.config.ts

timeout: 2.5 * 60 * 1000,

When running very long test, the timeout is overwritten with test.setTimeout(5 min). Our system has videos on the page and when waiting for particular API condition to happen, the video might be in auto play. In any case, this only happens in docker to which I have tried increasing the CPU, memory, shared memory. Running these tests outside the docker doesn't display any errors. Running on GH runners, no issues at all.

We are using Chrome latest version 142.

Has anyone seen any similar issues?

Expected behavior

The trace recording timeout should be equal to the test timeout set with test.setTimeout.

Actual behavior

The trace recording fails with error Fixture "trace recording" timeout of 150000ms exceeded during setup.

Additional context

docker-compose.yaml service configuration

  playwright:
    platform: linux/amd64
    init: true
    ipc: host
    deploy:
      resources:
        limits:
          memory: 10G
          cpus: "4.0"
    shm_size: 4gb # Important for Chrome in Docker

Environment

System
MacBook Apple M4 Pro - Sequoia
Running Docker 3.8

Binaries
node 22.1

npmPackages
@playwright/test: 1.56.1
Chrome 142.0.7444.135

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