fix(rolldown_test): refine injection logic#5639
fix(rolldown_test): refine injection logic#5639situ2001 wants to merge 4 commits intorolldown:mainfrom
Conversation
… acutally running test
…e before acutally running test" This reverts commit 4c012f2.
|
@situ2001 Could you confirm if it solves your problem? |
I have manually run But I think it is not a robust solution as it just delays the patching function by using a fixed timeout. If the main module initializes |
|
It's not the only case. I have also investigated the to partially failed action of main branch. https://github.com/rolldown/rolldown/actions/runs/16769788259/job/47482131558 Both of them are caused by this issue. |
sapphi-red
left a comment
There was a problem hiding this comment.
I wonder why the callback of setTimeout is called before __rolldown_runtime__ is defined. But I think this is good as a temporary solution.
Injection should poll for
__rolldown_runtime__before acutally running test. Otherwise, an error will occur in my Linux x64 machine.