-
Notifications
You must be signed in to change notification settings - Fork 675
Unable to run in testcafe docker image on bitbucket pipelines #8406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @James-h143, Thank you for the detailed report. Could you please try the approach described here? Refer to the following link to find a full code sample: https://github.com/DevExpress/testcafe/tree/c2c194ef102ed3758fcce849f573ca100ba522ea/examples/running-tests-in-chrome-using-bitbucket-pipelines-ci I look forward to your results. |
I have added the extra --disable-setuid-sandbox flag and moved the browser configuration into the command defined in the package.json file as per the document linked I can see that the extra flag is being passed to testcafe and the previous browser configuration from the .testcaferc file is ignored in the logs The error remains the same. I've even updated to use the cimg image in the code sample you linked and installed chrome separately as per the sample bitbucket-pipelines.yml example. logs The error again remains the same I branched off for this excursion. the branch for this is here Also tried using the |
Hello, thank you for sharing your logs with us. We will need some time to research the issue on our side. We will update you once we run our checks. |
Uh oh!
There was an error while loading. Please reload this page.
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 includedI 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
The image used for this demonstration is testcafe/testcafe:3.7.2 which seems to work in a local container
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
The text was updated successfully, but these errors were encountered: