Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNested imports while importing higher than 2 level modules will panic #27029
Comments
|
With doing some investigation, I can confirm this is a regression after #26395 merged. So, the issue is
In #26395, we moved away from the recursive checking and checking if the dependencies are fetching or not by checking only 3 levels (in the above example, it will check I believe we can fix this issue if we can fix #26903 which means we make our implementation more spec-compliant and remove the checking. However, I think WebGPU project needs the testing page to work and the #26903 needs more investigation. So, I think the quickest way for now is let's rollback to use the recursive checking way. I've tried locally and confirm the recursive way works fine and I also created a wpt test for it so that we won't miss this case again while trying to fix #26903. @jdm @Manishearth does that make sense to you let's fix it to use with recursive checking module status and then remove the checking in #26903? |
|
Reverting to a more-correct version sounds sensible to me. |
|
Yeah, this was kinda why I was concerned about the GC approach |
Yeah! I can see the problem now >_< Hope I can fix #26903 soon... |
Fix nested modules while imported under more than 3 levels This is kind of workaround to fix the issue but #26903 should provide much better solution to remove the checking. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #27029 - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Fix nested modules while imported under more than 3 levels This is kind of workaround to fix the issue but #26903 should provide much better solution to remove the checking. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #27029 - [x] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
A different panic when running the live test-suite at http://gpuweb-cts-glsl.github.io/standalone/. The code rests in branch
glsl-dependentat https://github.com/gpuweb/cts/tree/glsl-dependent. This one's intermittent though.@jdm iirc, I reported a similar error while running my test example initially. You fixed it on that occasion. I wonder if this one's related.
Originally posted by @kunalmohan in #25439 (comment)