Skip to content

Unable to run in testcafe docker image on bitbucket pipelines #8406

Closed
@James-h143

Description

@James-h143

What is your Scenario?

I have a number of projects stuck running on a steadily aging build of the testcafe docker image as the tests refuse to run on newer versions of the image on bitbucket pipelines. I'm getting a connection error despite the --no-sandbox and --disable-dev-shm-usage flags recommended here being included

I have managed to create a basic app/test repo to demonstrate this issue here. you can find the error on pipeline #3 and the code that created the error on the fix-pipeline branch

ERROR Cannot establish one or more browser connections.

1 of 1 browser connections have not been established:

- chromium:headless --no-sandbox --disable-dev-shm-usage

Hints:

- Increase the Browser Initialization Timeout if its value is too low (currently: 2 minutes for local browsers and 6 minutes for remote browsers). The timeout determines how long TestCafe waits for browsers to be ready.

- The error can also be caused by network issues or remote device failure. Make sure that your network connection is stable and you can reach the remote device.

Type "testcafe -h" for help.

The image used for this demonstration is testcafe/testcafe:3.7.2 which seems to work in a local container

Image

but not when run in the bitbucket pipeline

perhaps i'm missing something obvious. i've been bashing my head against this problem for a couple days now

What is the Current behavior?

Connection error when run on bitbucket pipelines using testcafe docker image. no error when run locally using same docker image

What is the Expected behavior?

No connection errors in either scenario

What is the public URL of the test page? (attach your complete example)

It's a locally hosted app that is included in the example repo

What is your TestCafe test code?

see above

Your complete configuration file

Available in the example repo

Your complete test report

Available in links above

Screenshots

No response

Steps to Reproduce

Navigate to bitbucket repo
Select pipelines option
select branch fix-pipelines
select pipeline custom: run_tests
Click button Run

I can facilitate access to this repo if needed

TestCafe version

docker-image testcafe/testcafe:3.7.2

Node.js version

whatever is packaged in testcafe/testcafe:3.7.2

Command-line arguments

testcaferc.json supplied. nothing else passed on command line

Browser name(s) and version(s)

Chrome 132.0.0.0

Platform(s) and version(s)

Alpine Linux 3.22.0_alpha20250108

Other

No response

Metadata

Metadata

Assignees

Labels

TYPE: bugThe described behavior is considered as wrong (bug).

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions