-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Build hangs indefinitely after updating TypeScript to 4.9.3 #51592
Comments
It doesn't look like tsc is running when the job timed out, from my reading of the log. It ran at line 23 and then other stuff runs. I'd need a more definitive blame than this to investigate further. |
Are there any flags of options we can pass to tsc to get a more useful debug log? |
tsc is called directly only once. Rest of the usage is through rollup. |
If tsc runs and finishes I'm not sure what you're expecting from a log. If rollup is hanging, I'd recommend logging an issue at their repo. |
We didn't update rollup or any plugin, we updated TypeScript to 4.9.
I've added I've done another run with even more diagnostics enabled : "diagnostics": true,
"explainFiles": true,
"extendedDiagnostics": true, Here it is also clear that the build run on macos is doing much more than on other platforms. There are ±60k log lines when it gets stuck instead of ±36k on the other platforms. Please let me know how to provide more info on this issue. |
@RyanCavanaugh can you let me know which info I can provide to help you investigate? To reproduce this locally you should be able to follow these steps and get the same issue :
|
May be #51627 helps with your issue. Do you want to give that a try |
I couldn’t reproduce with those steps on an Intel Mac. |
🤔 tricky I've let it run again to make sure I wasn't encountering some glitch before :
Result is the same. Build hangs indefinitely.
I will try to gather as much info as I can about the env in those runners. |
Managed to track it down to this commit : 7ab89e5 Unfortunately it is a massive merge commit :/ But everything after that one fails, everything before it is fine. |
Can you try setting |
Did a couple of runs with this setting and I still saw failures : config I added : csstools/postcss-plugins@4e91ce9
Is there a way to disable file watching completely? |
i am not sure who is starting file watching in your case. so i dont know how to disable it,. |
It seems that the rollup plugin for typescript always creates This snippet seems to detect that Typescript has started or finished : https://github.com/rollup/plugins/blob/master/packages/typescript/src/watchProgram.ts#L81-L97 I wished the maintainer of the rollup showed more interest in this issue. I am going to ask my colleague who was able to reproduce locally to provide more info first. |
I can no longer reproduce this issue when testing with the latest commit currently on the main branch. Haven't pinpointed the commit yet where the issue went away.
Still waiting on that. |
This commit is the first one that works fine : e50bb07 It doesn't make any sense to me. I ran the tests so many times now and on that commit it works consistently. Normally I am quite good at finding root causes but this issue really has me stumped. To pinpoint this commit I took this steps :
"typescript": "git://github.com/microsoft/TypeScript.git#<commit>"
},
"overrides": {
"typescript": "$typescript"
}, Is the git history maybe not linear? |
I can no longer reproduce this on TypeScript Thank you all for taking a look at this and providing insights! |
I've experienced this going from 4.8 to 4.9 also. I don't yet have anything more to add which is why I'm commenting rather than creating a new issue. After about 10 minutes, my machine runs out of memory and |
Bug Report
Since upgrading to
4.9.3
we are seeing frequent occurrences of a "stuck build":Example build that is currently stuck : https://github.com/csstools/postcss-plugins/actions/runs/3500523561/jobs/5863287052
I think it is related to updating TypeScript but I can be wrong about that.
🔎 Search Terms
build hangs infinite
🕗 Version & Regression Information
4.9.3
🙁 Actual behavior
build hangs and never finished
🙂 Expected behavior
build does not hang
The text was updated successfully, but these errors were encountered: