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

Fix robustness test logs by identifing failpoint availability on temporary cluster before creating subtest #18685

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

serathius
Copy link
Member

@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.76%. Comparing base (2b32307) to head (cd1aa92).

Additional details and impacted files

see 19 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #18685      +/-   ##
==========================================
- Coverage   68.78%   68.76%   -0.02%     
==========================================
  Files         420      420              
  Lines       35629    35629              
==========================================
- Hits        24506    24500       -6     
- Misses       9700     9702       +2     
- Partials     1423     1427       +4     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2b32307...cd1aa92. Read the comment docs.

if err != nil {
t.Fatal(err)
}
err = forcestopCluster(c)
Copy link
Contributor

Choose a reason for hiding this comment

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

why not return the cluster and reuse it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because logs will be directed to the different log name. During cluster creation we provide the logger, to correlate logs to tests, we use zaptest.New which takes the *testing.T as argument. If we reuse the cluster they will not be correlated to logs and clusters from all tests scenarios will be mixed.

Copy link
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fuweid, serathius, siyuanfoundation

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fuweid
Copy link
Member

fuweid commented Dec 3, 2024

/retest

@serathius serathius force-pushed the robustness-failpoint-logs branch from fee12d0 to e8e388d Compare December 4, 2024 18:19
…orary cluster before creating subtest

Signed-off-by: Marek Siarkowicz <[email protected]>
@serathius serathius force-pushed the robustness-failpoint-logs branch from e8e388d to cd1aa92 Compare December 4, 2024 18:23
@k8s-ci-robot
Copy link

@serathius: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-etcd-integration-1-cpu-amd64 cd1aa92 link true /test pull-etcd-integration-1-cpu-amd64
pull-etcd-robustness-arm64 cd1aa92 link true /test pull-etcd-robustness-arm64
pull-etcd-robustness-amd64 cd1aa92 link true /test pull-etcd-robustness-amd64

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@serathius
Copy link
Member Author

This fails in CI for some reason. Need to debug more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants