Skip to content
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

[🐞] Potential hang unit test with undici dependency #4373

Closed
ahnpnl opened this issue May 30, 2023 · 1 comment
Closed

[🐞] Potential hang unit test with undici dependency #4373

ahnpnl opened this issue May 30, 2023 · 1 comment
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working

Comments

@ahnpnl
Copy link
Contributor

ahnpnl commented May 30, 2023

Which component is affected?

Qwik Runtime

Describe the bug

I have 2 company projects locating in the same repository, one uses Vue and one uses Qwik. Recently, our CI usually failed due to this error

➤ YN0000: close timed out after 10000ms
➤ YN0000: Failed to terminate worker while running....

After googling a while, I found this issue on Vitest repo vitest-dev/vitest#3077 It seems like undici causes the issue. The workaround was also provided there.

Reproduction

It's a private repo so I can't share. I'm sorry about that

Steps to reproduce

  • Create a repository with 2 projects, one is Qwik and one is either Vue/React/Solid and uses Vitest as test framework.
  • Setup yarn or pnpm workspace
  • Run tests for all workspaces

System Info

System:
    OS: macOS 13.3.1
    CPU: (8) arm64 Apple M1
    Memory: 44.64 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - /opt/homebrew/bin/node
    Yarn: 3.5.0 - /opt/homebrew/bin/yarn
    npm: 9.5.1 - /opt/homebrew/bin/npm
  Browsers:
    Chrome: 113.0.5672.126
    Firefox: 113.0.2
    Safari: 16.4

Additional Information

The issue is quite hard to reproduce. Locally, I had to run tests a few times to see the problem.

@ahnpnl ahnpnl added TYPE: bug Something isn't working STATUS-1: needs triage New issue which needs to be triaged labels May 30, 2023
@ahnpnl ahnpnl closed this as completed May 31, 2023
@ahnpnl
Copy link
Contributor Author

ahnpnl commented May 31, 2023

I found out that the hanging problem occurred due to other tests in other projects which impacted my Qwik project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant