-
Notifications
You must be signed in to change notification settings - Fork 509
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
fix(dev): ensure socket path is accessable #1115
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1115 +/- ##
==========================================
- Coverage 76.58% 76.55% -0.04%
==========================================
Files 70 70
Lines 7193 7212 +19
Branches 715 718 +3
==========================================
+ Hits 5509 5521 +12
- Misses 1683 1690 +7
Partials 1 1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In preliminary testing, this seems to decrease flakiness in nuxt CI dev server tests.
Is it also worth switching to fsp.access
here too?
https://github.com/unjs/nitro/blob/34d9d1dc074f2c13f6d5c83a50d500d501a725ac/src/dev/server.ts#L97-L99
I am aware this is an important DX fix. However needs to be tested more if we can find a solution without per/request overhead of checking sockets and that this works universally. Delaying to next patch/minor release. |
This issue still seems to be happening even with this fix. |
Tracking via #1454 |
π Linked issue
nuxt/nuxt#15164
β Type of change
π Description
On windows we are facing the issue, that the devServer returns status 503. This is caused by the
existsSync()
call, which returns false if the the api is under load. Withfs.promises.access
I didn't face this problem anymore.π Checklist