Skip to content

Calling the same import glob multiple times results in stalling build #1349

@jzjones

Description

@jzjones

Describe the bug

I noticed that one of our svelte github actions builds were stalling, eventually narrowed it down to this. Check this repo for a minimal reproduction: https://github.com/jzjones/vite-build-issue

Notice that the build step in the action times out after 15 mins.

It seems to be triggered by having multiple call sites of the same glob import. I'm sure this is most likely some kind of deadlock in vite/rolldown, however I wasn't able to reproduce it without vite-plugin-svelte. Note that this seems to only occur when the runner has <= 2 vCPUs (ubuntu-latest private runner, or ubuntu-slim runner), so smells like a concurrency deadlock in rolldown somewhere.

Happy to file it elsewhere if someone can help me reproduce it without vite-plugin-svelte.

This issue has the potential to totally break CI for an entire project, and the hanging build gives no indication of where the issue originated.

Reproduction URL

https://github.com/jzjones/vite-build-issue

Reproduction

No response

Logs

System Info

ubuntu-latest private runner, or ubuntu-slim runner

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageAwaiting triage by a project member

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions