-
Notifications
You must be signed in to change notification settings - Fork 20
Parallelise HelpCmd golden tests #1103
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
Nice!
Do you observe isues in nix / hydra? If not, I'd happily approve - otherwise it's a blocker. We have GHA tests limited to 1 thread, so that shouldn't be an issue there I think. |
I haven't seen any issues in CI because of what you say that it is limited to 1 thread. It does make the |
But tests in hydra aren't limited to 1 thread, are they? But we're not using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in the end I'm against the change. Making tests unreliably fail in the local environment will be very confusing for anyone working on the codebase.
Exactly
100%, I could try to find some simple solution to that if that is the only issue |
@carbolymer, turns out fixing the issue with |
@palas Nice catch! If it makes your solution stable in all cases, then I'm approving. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
Before optimization: 28.315 s
After Optimization: 20.663 s
Squash the commits
unless isWin32 $ do | ||
test_golden_HelpCmds :: IO TestTree | ||
test_golden_HelpCmds = | ||
-- These tests are not run on Windows because the cardano-cli usage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
c19b61d
to
8b3bedb
Compare
Parallelise HelpCmd golden tests
Parallelise HelpCmd golden tests
Changelog
Context
This is a proposal to parallelise help golden test generation. In my computer, it reduces the execution times from 27 seconds to 3.
How to trust this PR
Don't trust it
Checklist