-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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 e2e coverage code #14596
Simplify e2e coverage code #14596
Conversation
Codecov Report
@@ Coverage Diff @@
## main #14596 +/- ##
==========================================
- Coverage 75.64% 75.43% -0.21%
==========================================
Files 457 457
Lines 37213 37213
==========================================
- Hits 28149 28072 -77
- Misses 7310 7372 +62
- Partials 1754 1769 +15
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Marek Siarkowicz <[email protected]>
Signed-off-by: Marek Siarkowicz <[email protected]>
Signed-off-by: Marek Siarkowicz <[email protected]>
Signed-off-by: Marek Siarkowicz <[email protected]>
Signed-off-by: Marek Siarkowicz <[email protected]>
Signed-off-by: Marek Siarkowicz <[email protected]>
…arios Signed-off-by: Marek Siarkowicz <[email protected]>
4fa4bc3
to
1b3f301
Compare
env := mergeEnvVariables(envVars) | ||
switch { | ||
case strings.HasSuffix(cmd, "/etcd"): | ||
cmd = cmd + "_test" |
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.
Do you understand why the _test
suffix was added in the first place?
cc @ptabor
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.
Yes, the coverage scenario compiles separate binaries with _test
suffix.
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 was thinking removing the suffix "_test" may cause some issue. I just realized that you do not remove the suffix, which is hard coded in initBinPathCov
.
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
cc @ahrtr @spzala @ptabor