-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Fix coverage failures #13693
Fix coverage failures #13693
Conversation
Codecov Report
@@ Coverage Diff @@
## main #13693 +/- ##
==========================================
- Coverage 72.77% 72.70% -0.07%
==========================================
Files 465 465
Lines 37865 37865
==========================================
- Hits 27556 27531 -25
- Misses 8535 8554 +19
- Partials 1774 1780 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
epc, err := e2e.InitEtcdProcessCluster(t, e2e.NewConfigAutoTLS()) | ||
if err != nil { | ||
t.Fatalf("Failed to initilize the etcd cluster: %v", err) | ||
tcs := []struct { |
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.
The change on the e2e test case looks good, but is it related to the the issue of coverage failure?
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 won't ask change on this, but it would be better if we could only fix one thing in one PR next time.
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.
The test linearizableReadTest
indeed causes the coverage test failure. Thanks for the fix.
I will have a deep dive into the coverage test sometime later.
@@ -18,7 +18,7 @@ GO_BUILD_ENV=("CGO_ENABLED=0" "GO_BUILD_FLAGS=${GO_BUILD_FLAGS}" "GOOS=${GOOS}" | |||
toggle_failpoints() { | |||
mode="$1" | |||
if command -v gofail >/dev/null 2>&1; then | |||
run gofail "$mode" server/etcdserver/ server/mvcc/backend/ | |||
run gofail "$mode" server/etcdserver/ server/storage/backend/ |
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.
The change looks good.
But the directory change was made more than half year ago in this commit, why we do not see any issue in such a long time? cc @serathius @ptabor @spzala
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 overall.
Thanks @ahrtr @serathius, sorry I was rushing to the fix without explaining why. There are two sub-problems in the current e2e test of https://github.com/etcd-io/etcd/blob/main/tests/e2e/ctl_v3_kv_no_quorum_test.go.
Regarding #1 problem, I split them into two sub tests to resolve the issue. Regarding #2 problem, if e2e test expects an error, it should match the exact error message from |
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 @chaochn47
Fix issue #13684