-
Notifications
You must be signed in to change notification settings - Fork 468
Sometimes build tests don't complete #5394
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
If the build tests are run in sequence, and not in parallel, they always complete. |
I took a look at this, I can reproduce with some test suite like super errors, ~1 out of every 10 runs:
When it hangs, the callback to So I took a look at the processes that remain running (
So, either something broken here: Or The only related issue I could find is nodejs/node#40189. |
So you hit the mystery hanging bug. |
Long shot: wondering whether this could be implicated #5206 |
I had not noticed there was parallelism left within a single test. var bsc = path.join(__dirname,'..','..','..','darwinarm64', 'bsc.exe') speeds up the tests a lot and removed the hanging. |
@jchavarri this solved it for me: #5469 Even if one wants to do this, the logic should be used in the other build tests too. Though a bunch of tests call |
It appears that the trigger is child_process.execFileSync(exe, delegate_args, { stdio: "inherit" }); Again not completely sure why but, this seems relevant https://www.freecodecamp.org/news/node-js-child-processes-everything-you-need-to-know-e69498fe970a/ |
That's the kind of thing I had in mind, except: bsc itself is untouchable. |
Why is that? removed changes in a373cb7. |
It's the most run thing in production. So any change there is dangerous. From perf to corner cases or anything. |
The other build tests, it would be good to go back to being able to run them in parallel. |
I thought for production projects ninja rules would point to bsc.exe directly. If it's calling bsc node script, that'd be very bad for performance 😱 |
Fair point. We just need to double check it's the case. |
let me know if d16bf32 is what you had in mind. There might be some additional cleanup in |
Experience that on my m1 laptop, every few time build tests run, they stop halfway through and never progress.
It might be what's happening here too:https://github.com/rescript-lang/rescript-compiler/actions/runs/2390862882
The text was updated successfully, but these errors were encountered: