Skip to content
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

Merged
merged 7 commits into from
Oct 18, 2022
Merged

Conversation

serathius
Copy link
Member

@serathius serathius changed the title Simplify e2e coverage Simplify e2e coverage code Oct 17, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #14596 (4fa4bc3) into main (bf6a1d7) will decrease coverage by 0.20%.
The diff coverage is n/a.

@@            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     
Flag Coverage Δ
all 75.43% <ø> (-0.21%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/storage/mvcc/watchable_store.go 85.14% <0.00%> (-8.34%) ⬇️
client/v3/namespace/watch.go 87.87% <0.00%> (-6.07%) ⬇️
server/etcdserver/api/v3rpc/util.go 70.96% <0.00%> (-3.23%) ⬇️
server/etcdserver/api/v3rpc/member.go 93.54% <0.00%> (-3.23%) ⬇️
server/etcdserver/cluster_util.go 70.35% <0.00%> (-3.17%) ⬇️
server/etcdserver/api/v3rpc/interceptor.go 74.47% <0.00%> (-3.13%) ⬇️
server/proxy/grpcproxy/watch.go 92.48% <0.00%> (-2.90%) ⬇️
server/etcdserver/api/v3rpc/watch.go 84.76% <0.00%> (-2.86%) ⬇️
server/etcdserver/api/v3election/election.go 71.79% <0.00%> (-2.57%) ⬇️
client/v3/concurrency/election.go 79.68% <0.00%> (-2.35%) ⬇️
... and 9 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@serathius serathius force-pushed the simplify-e2e-coverage branch from 4fa4bc3 to 1b3f301 Compare October 17, 2022 12:10
env := mergeEnvVariables(envVars)
switch {
case strings.HasSuffix(cmd, "/etcd"):
cmd = cmd + "_test"
Copy link
Member

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 _testsuffix was added in the first place?

cc @ptabor

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ahrtr ahrtr merged commit e24402d into etcd-io:main Oct 18, 2022
@serathius serathius deleted the simplify-e2e-coverage branch June 15, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants