-
Notifications
You must be signed in to change notification settings - Fork 793
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
Simplify unit tests runner #4087
Simplify unit tests runner #4087
Conversation
@pracucci I this the approach you had in mind for this issue? |
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.
Thanks for proposing this! The major slowdown is introduced by -race -covermode=atomic
which has been removed in this PR. However, removing -race
also lowers the confidence we get in unit tests so I'm not sure we should remove it.
The idea in the issue was completely removing the |
I see, didn't want to be aggressive removing the file, mainly because of the coverage part. I'll remove that test tool and just use the plain old test CLI. THx! |
- Remove the complex tools/test script in favor of simplicity - Created test and cover tasks in the Makefile that will call go test directly Signed-off-by: Mario de Frutos <mario@defrutos.org>
@pracucci I've made the changes:
I've checked and now is taking 10 minutes when the old script was taking 24 minutes. Mainly because we've removed the coverage part: NewOld |
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.
LGTM (modulo a fix). Thanks!
bdc8a0a
to
0147713
Compare
Co-authored-by: Marco Pracucci <marco@pracucci.com> Signed-off-by: Mario de Frutos <mario@defrutos.org>
Signed-off-by: Mario de Frutos <mario@defrutos.org>
0147713
to
8564d53
Compare
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.
LGTM, thanks!
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.
Thank you!
Signed-off-by: Mario de Frutos mario@defrutos.org
What this PR does:
This PR simplifies how the test tool works reducing significantly the unit test time
Which issue(s) this PR fixes:
Fixes #3579
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]