Closed ibrocodes7 closed 1 month ago
@ibrocodes7 I cannot access https://github.com/ibrocodes7/playwright-bug, could you please double check it?
@dgozman please check now.
I think we fixed a similar error in 1.45.1. Please check in v1.45.1 and Canary.
Hi @mxschmitt @dgozman I am still encountering the error. I have tried with all the images listed below: mcr.microsoft.com/playwright:v1.45.1 mcr.microsoft.com/playwright:v1.45.1-jammy mcr.microsoft.com/playwright:v1.45.1-focal mcr.microsoft.com/playwright:next-jammy mcr.microsoft.com/playwright:next-focal mcr.microsoft.com/playwright:next
Error details: https://github.com/ibrocodes7/playwright-bug/blob/main/pw-github/1.45.1-error.txt
Could you please take a look?
@ibrocodes7 I looked over the repository you provided. There are no test files there, and files like global-setup.ts
import from the src
directory which is also missing. I guess we'll also need at least the BASE_URL
to be able to run the tests.
Basically, without being able to reproduce the issue, we won't be able to debug it. Please make sure to share everything needed and clear instructions on how to reproduce.
Hi @dgozman
I have created a repository with demo tests using Playwright's example tests, which utilize the Playwright website as the URL. This reproduced the same error in the Jenkins Docker environment.
Please review the error file and the repository here: https://github.com/ibrocodes7/playwright-upgrade-issue-repo/.
Kindly run the tests in the specified environment details and with multiple browser hosts in Jenkins as mentioned above. Thank you
@ibrocodes7 Thank you for the better repro! However, I am still not sure how to reproduce. I don't have a Jenkins account nor do I have any repositories with CI runs on Jenkins. I don't think I'll be able to reproduce the issue on Jenkins. Do you have a repro that I can run locally on my computer?
Aside from the repro, perhaps you are running out of disk space during the tests? That could explain the errors with accessing the filesystem.
We need more information to act on this report. As long as we can't repro it, it is unlikely with can make progress with it. Allow me to close it, but please file a new one and link to this issue when you get back to it!
Version
1.45.0
Steps to reproduce
Background: We have an inbuilt test harness where all test files are run in parallel, based on the number of browser hosts provided. Currently, we use the Playwright v1.24 Docker image to create the browser environment, and everything functions smoothly with this setup.
After attempting the upgrade to Playwright v1.45, we are seeing numerous tests fail with the following error:
Error: ENOENT: no such file or directory, open '/home/admin/example/blink-playwright/test-results/.playwright-artifacts-0/traces/10fe2ef93047cfce1778-59ed9a256f901c93e72d-recording1.trace'.
These errors only occur in the CI environment that uses the Docker image and when the trace is set to "on" or "retain-on-failure." This issue is causing the tests to fail with the above error and not producing any logs, making it very difficult to debug.
As our test harness involves many internal systems, I won't be able to share the entire repository. However, I am willing to provide as many files and details as needed to help diagnose the issue. If there is any way I could debug this further, please let me know.
Your assistance in understanding why these errors are occurring and how we can resolve them would be greatly appreciated as we are completely blocked here.
Steps to reproduce:
Expected behavior
I expected the test to run smoothly, either failing or succeeding, and to generate the test results without causing the tests to break.
Actual behavior
I have inspected the contents of the test results folder and confirmed that the folder the test was looking for does not exist. I am attaching the complete text file of the test execution for your reference. The test ultimately failed due to a timeout.
Error file: https://github.com/ibrocodes7/playwright-bug/blob/main/pw-github/error-file.txt
Additional context
I’ve uploaded all these files to this GitHub repository - https://github.com/ibrocodes7/playwright-bug. included are the wrapper file responsible for orchestrating test execution in our CI environment, which sets up environment variables, processes command-line arguments, and initiates Playwright tests. Additionally, I've added 'build-browser-image' Groovy script, Playwright configuration, global setup, fixtures, and 'build.sh' files. Let me know if you need anything else.
Environment
Running npx envinfo --preset playwright does not produce any output in the CI environment, so I have manually gathered and entered the details using individual commands.