-
Notifications
You must be signed in to change notification settings - Fork 757
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
🐛 BUG: Unexplainable behavior with x-dev-env
- worker hangs after first request in GH Actions
#7635
Comments
Can you describe more about your setup here? Are you running Alternatively, it seems like you could:
...such that what you're testing is actually running on Cloudflare, using real resources, closest to what you'll see in production, etc.? |
Correct. We are spinning up a local stack and running top-level tests against it. It's better to say - we work E2E tests in a way we work during the local dev.
While it's possible to deploy all workers to preview, its unclear:
There are more questions than answers the current documentation or examples provide. I would be more than happy to use "the real CloudFlare" for the "real testing", and likely today I already can do that for the
|
Hiya, we're looking into the main issue with x-dev-env, but also very interested in the issues you're having with #7251. If you have the time, would you be able to create a separate issue with a minimal repro that demonstrates the issues you're having? we can double check your setup, and its definitely a feature we'd like to be stable...! 🫠 thank you! 🧡 |
Which Cloudflare product(s) does this pertain to?
Wrangler
What versions are you using?
3.86.0 [Wrangler]
What operating system and version are you using?
Mac Sonoma 14.7.1
Please provide a link to a minimal reproduction
No response
Describe the Bug
We were trying to update
wrangler
for quite a while and here are some very weird problems we've experienced.mcr.microsoft.com/playwright:v1.48.1-focal
)3.78.10
--x-dev-env=false
, or it would not work3.86.1
any newer version dont work.--log-level=debug
which somehow resolve the problem (tests are passing 9 out of 10)We run 7 workers in parallel, with the last one - "gateway" starting after all. Here are logs from the area of interest
v3.78.10
v3.86.0 and
--x-dev-env=false
3.86.1 (without
-x-dev-env
)It does not matter which URL to try. It will handle the first request, but none other.
"hangs" mean that Playwright can establish a connection to get a resource (
widget.js
) but will never get anything.v3.99.0
v3.99.0 and
--log-level=debug
output is too verbose, but I found an interesting difference between adding
debug
for everybody or just gatewayAdding logs makes test just a little slower, so we are ok to processed with this solution, but I dont really understand what can be a problem here
My main consern here is a call to
/cdn-cgi/ProxyWorker/pause
In a working scenario the last message related to
ProxyWorker
isplay
We had a long history with wrangler flakes in CI, so it runs quite "reliable"
Every service will eventually produce the
/cdn-cgi/ProxyWorker/pause
message, and it's somehow a matter of luck of the last message is/cdn-cgi/ProxyWorker/play
In the "good scenario" this is what I can see in the logs right after gateway start
A log of
pause
requests, but the very last one isplay
.Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: