-
Notifications
You must be signed in to change notification settings - Fork 181
Larger keys for intmap and intset #790
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
Conversation
So in We're using Since |
Migration to |
@treeowl How do you feel about migrating to |
I know nothing about test frameworks, so I'm very happy to let other people
decide.
…On Thu, Aug 5, 2021 at 11:45 AM Simon Jakobi ***@***.***> wrote:
@treeowl <https://github.com/treeowl> How do you feel about migrating to
tasty?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#790 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOOF7M3ODBK73O3NMNFTSDT3KW2PANCNFSM5A2K3OXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Oh yeah, this discussion. Someone came up with something pretty decent (I think) for my little toy |
Now that I've merged #796, can you do what you want with test case sizes here? Ideally, I like to run tests three ways:
The three ways should be tweaked to run in the same amount of time (give or take an order of magnitude or so). This should be almost as good as SmallCheck for the small cases, but also be likely to catch glaring mistakes in large ones. |
I'd feel more comfortable about this if we tested with multiple sizes. See treeowl/compact-sequences@585bfac for a commit doing so elsewhere. |
OK, I'll look into this. Just for calibration, this (on my local machine)
is about 3 min on CI. Runtime does increase strongly with max-size. |
now the test run takes 25 min in CI (for each ghc version). that's too much? |
Ouch. Yeah, that seems excessive. Did you limit that to just |
no, I applied globally. jwaldmann@3a3929d In theory, your method (lots of small, some large, etc.) should be fine for all tests? |
Yeah, it should work, but it's pricy. |
I did restrict the test sets that get larger parameters. It's still expensive, and the programming gets ugly. I am not an expert at tasty's not-quite-regexps, and CI's not-quite-bash. OTOH, perhaps 20 min (per GHC version) isn't too bad. If it catches bugs? The contributor can run faster tests locally. The maintainer needs days to accept the PR, anyway. Which is fine. (Though, a more clever CI would use that waiting time to run extra tests ... or even write some...) |
Looking over the conversation, it's not clear whether everything is resolved. Could you possibly update? |
9991a87
to
b74aea4
Compare
I'm on it (just did a rebase). I wanted to take up #787 again. I was benchmarking NFA-DFA conversion with several [EDIT] see https://gitlab.imn.htwk-leipzig.de/waldmann/fdaln/-/blob/master/DFA.hs |
The large keys part of this is obsolete (#788 (comment)), but this PR also bumps the quickcheck args. Not sure if we still want to do that? |
Closing for now. Bumping the number of quickcheck tests seems like a good idea, so we can still do that. It will probably need to be configured via the |
as discussed in #788 .
I have no idea on how to best pass the "-a N" option for testing. Does it go in haskell-ci.yml, or in cabal.haskell-ci? or in containers.cabal?
or in the source? That seems easiest to do, and most stable (independent from build/CI tooling) but it would ignore command-line options, which is bad? https://hackage.haskell.org/package/test-framework-0.8.2.0/docs/Test-Framework-Runners-Console.html#v:defaultMainWithArgs
Adding
--test-option="-a 10000"
does seem to increase CI build times - quite drastically. Or, they weren't very stable to begin with.