-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
test(queryClient): Adjust performance threshholds #6937
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit bc6e65e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit bc6e65e:
|
Unfortunately, I'm a bit unsure whether the best approach would be to increase or decrease the threshold & query-count here. Increasing will potentially slow down the pipeline whereas decreasing might lead to false negatives. 500ms felt like a good compromise but apparently wasn't lenient enough. (see #6918 (comment)) @milhamm do you have opinions on this? |
how about a test that tests if execution doesn't grow exponentially instead ? |
I fear we would run into similar flakiness, because the cpu-load might not be stable over the course of the test (eg see the variance in my local tests). Also, the tests would become more complex since it would need some kind of regression algorithm. I would suggest the following plan for now:
|
48715b7
to
9db4d89
Compare
we have retries in vitest enabled |
03ee7b4
to
c86f4c5
Compare
The pipeline was found to sometimes exceed the threshold of 500ms.
c86f4c5
to
e70264b
Compare
There are some unrelated tests that depend on the event loop not being blocked (such as Unless we run them sequentially, there's no feasible way of doing performance-testing IMO. I'll check if there's a good way of marking specific tests for sequential execution in NX, but it might be best to just remove the performance tests for now. |
d2e0b05
to
acebdc4
Compare
174834b
to
bc6e65e
Compare
I've created a PR to remove these tests: #6946 |
The pipeline was found to sometimes exceed the threshold of 500ms. Since I expect the the required time to increase linearly, increase the row count by *1.5 and quadruple the time-threshhold.
Local Tests on my Machine
(yellow is prior to #6918, red is after, all times in ms)