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
CI timeout: NUnit.Framework.Assertions.CollectionAssertTest.PerformanceTests #2555
Comments
Going to have to fix before 3.10 because it's as high as 312ms on .NET Core on Travis and it's keeping four tests from passing each time. @nunit/framework-team Should I raise it to 1000ms, or make the tests explicit, or send a test parameter to skip when running in CI? |
What about using warnings instead of asserts? As a performance test, we may not want it failing our build anyway and with a warning, we could keep the values more reasonable. The downside is if we just stop worrying about it because it's only a warning. |
I really like that idea! |
Here's yet another use case for |
Ah, sorry! Thought we were talking about an Assert on the duration... I'd do an adhoc fix here and then discuss possible enhancements... Adhoc:
Enhancements
I hate to see us add a feature without a bunch of discussion first, in order to make sure we don't later come back and make a breaking change. |
Possible Enhancement 4: |
Nope. It looks good to me for fixing this problem. If we don't have an issue for creating a more granular way to measure duration, we should probably create one. I'd like it if we looked at alternatives rather than being biased by the existing implementation. 😸 I do like the general idea of having a helper class with constraints we need for our tests. I'm thinking of |
As you know we have mine, but the more alternatives we look at the better as far as I'm concerned. Do you want to start a higher-level issue so we can start a new discussion? |
Another alternative to compare is a more widely applicable attribute |
Actually I've lost track of that issue. |
Here it is: #2021
😂 I forgot I said that... turns out I like making things pretty 😜 |
But isn't that one about Timeout? |
It asks to consider both I've since decided that timeout is only for logic and to prevent CI from running for an hour, never performance testing. So I personally have no need for that to be granular though we could do it for consistency with MaxTime if we wanted. Also, the work @bmolnar2 kindly contributed is only for |
Both Rob and I pointed out that TImeout and MaxTime already have meaning in NUnit and the meanings are different. We all (I thought) decided to leave that one about Timeout, and the title still indicates "Dynamic TImeout." Can you point me to the PR for Has.Maxtime? Restating the (existing) definitions:
Both exist as attributes which gives them the scope of an entire test. Both could exist at some more granular level (one or more statements) but I don't see much use for Timeout in that context. Maxtime OTOH is potentially useful for "poor man's performance testing." If you agree that the focus should be on MaxTIme, I can create a separate issue or we can try to clearly re-dedicate the existing issue to be about MaxTIme and not TImeout by renaming it and adding a comment that restarts the discussion... hopefully. |
See #2616 |
It's only .NET Framework 3.5 for most CI errors, it seems.
https://ci.appveyor.com/project/CharliePoole/nunit/build/3.9.0-dev-04713#L1241
Just need to bump up the timeout, I think.
The text was updated successfully, but these errors were encountered: