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

Question/Suggestion: Keep an expected test duration log and guide CI users in using it #958

Closed
nagisa opened this issue Sep 14, 2023 · 1 comment

Comments

@nagisa
Copy link

nagisa commented Sep 14, 2023

It is not uncommon to have test suites where most of the tests run very quickly, and then there are a couple of heavy-weights as well. It is not uncommon that I see my test suite run to go for longer than it needs to because these heavy-weight tests ended up being started after many of the smaller tests have been completed – this is effectively a prime example of a long tail.

I wonder if it would make sense for nextest to keep information about how long tests run for and order the test execution accordingly – starting from the longest-running tests. Bonus points if there are mechanisms (similar to the test archive) to save this information between CI runs so that CI utilization can be optimized.

Perhaps nextest already has such functionality? If it does, please point me at something I can learn to set something like this up! I read through the documentation and experimented a little with nextest invocations to see if it does anything like this already, but I wasn't able to make any conclusions here.

@sunshowers
Copy link
Member

Thanks -- yes, that would be really cool. This is similar to #905 except it's the opposite.

The big challenge is actually maintaining a log of test execution times, which is not something that nextest does at the moment. There are subtle details that need to be addressed to make that happen, and it's just work that needs to be done.

I'll close this in favor of #905.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants