-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Relay plugin causes sporadic errors #42
Comments
This sounds like sharing the same root cause to #32 . The problem is as already shared in the comment, it's tricky to dig into as there's no easy way to repro at all. @nickskotny or @dgreif , by any chance is it possible to configure CI to run debug build of plugin + swc/core to capture better backtrace? I'm aware it is not an easy ask as it'll noticeably slows down runtime performance. I have a backlog swc-project/swc#4177 to improve this but haven't made progress yet. |
I can definitely set that up. I can just configure it in a branch and kick of N builds. If I do 10-20 builds, at least one of them usually fails. Just let me know what flags I need to pass 😄 |
It needs to use custom swc / plugin binary as it is compile time configured. I do not think we have automatic way to publish this, probably need one-off way like using git dependencies in npm instead. I'll try to check and get back. Mind let me know which binary CI actually uses? |
Yep, |
Copying comment from discord:
It looks like there are some unknown issues around linux images on the CI. We can't conclude this yet, but would like to wrap up current issue and encourage to try different base images. |
@kwonoj I was not able to get a conclusive reproduction environment set up, but I'm confident that we are not seeing similar issues when using One other piece of info, I set up our Webpack build to use SWC running on the same old |
Edit: message moved to its own issue: #177 |
@kaelig I'm not certain the error you are experiencing is related. So far, we have only been experience errors like |
Good point, I opened this issue instead: #177 |
@kwonoj we've been having a lot of success using
@swc/plugin-relay
so far, but it seems to sporadically fail in our CI environment. I've updated@swc/core
,@swc/jest
and@swc/plugin-relay
but am still experiencing issues. Without@swc/plugin-relay
, the tests pass every time. With@swc/plugin-relay
, our Jest tests can fail in two different ways:Unfortunately I can't recreate this locally so I can't provide a reproduction repo for you to see it in. Hopefully something in the stack trace stands out 😄. One note, the end index
9725912
is exactly the same in all cases of this error, while the slice length4780000
can vary.The text was updated successfully, but these errors were encountered: