Skip to content

robustness: save report data before validation#21665

Open
henrybear327 wants to merge 2 commits into
etcd-io:mainfrom
henrybear327:robustness/save_before_validation
Open

robustness: save report data before validation#21665
henrybear327 wants to merge 2 commits into
etcd-io:mainfrom
henrybear327:robustness/save_before_validation

Conversation

@henrybear327
Copy link
Copy Markdown
Contributor

Robustness reports used to be saved only when validation failed, that can leave no client or server artifacts to reproduce the run locally for debugging if the validation got killed by OOM on CI.

This commit proposes that we save artifacts immediately after scenario traffic completes (before validation starts).

Successful runs remove the per-test report directory unless PERSIST_RESULTS is set.

@k8s-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: henrybear327
Once this PR has been reviewed and has the lgtm label, please assign jmhbnz for approval. For more information see the Code Review Process.

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

Details 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

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.34%. Comparing base (c867abd) to head (518ad0d).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files

see 22 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #21665      +/-   ##
==========================================
+ Coverage   70.30%   70.34%   +0.04%     
==========================================
  Files         425      426       +1     
  Lines       35145    35139       -6     
==========================================
+ Hits        24708    24720      +12     
+ Misses       9044     9032      -12     
+ Partials     1393     1387       -6     

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 c867abd...518ad0d. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread tests/robustness/report/report.go Outdated
Comment thread tests/robustness/report/report_test.go Outdated
Comment thread tests/robustness/main_test.go Outdated
@henrybear327 henrybear327 force-pushed the robustness/save_before_validation branch 2 times, most recently from 9b95016 to 72f4746 Compare April 27, 2026 12:43
@henrybear327 henrybear327 force-pushed the robustness/save_before_validation branch from 72f4746 to 0174c93 Compare April 27, 2026 12:57
@henrybear327 henrybear327 requested a review from serathius April 27, 2026 12:57
@henrybear327 henrybear327 force-pushed the robustness/save_before_validation branch from 0174c93 to 18243cd Compare May 2, 2026 17:15
Comment thread tests/robustness/report/report.go
Comment thread tests/robustness/main_test.go Outdated
@henrybear327 henrybear327 force-pushed the robustness/save_before_validation branch 3 times, most recently from e0f2351 to 852cbcd Compare May 5, 2026 22:32
@henrybear327 henrybear327 requested a review from serathius May 5, 2026 22:37
@henrybear327
Copy link
Copy Markdown
Contributor Author

/retest

1 similar comment
@henrybear327
Copy link
Copy Markdown
Contributor Author

/retest

Comment thread tests/antithesis/test-template/robustness/traffic/main.go Outdated
Robustness reports used to be saved only when validation failed, that
can leave no client or server artifacts to reproduce the run locally for
debugging if the validation got killed by OOM on CI.

This commit proposes that we save artifacts immediately after scenario
traffic completes (before validation starts).

Successful runs remove the per-test report directory unless
PERSIST_RESULTS is set.

Signed-off-by: Chun-Hung Tseng <henrytseng@google.com>
@henrybear327 henrybear327 force-pushed the robustness/save_before_validation branch from 852cbcd to a90a242 Compare May 7, 2026 09:21
@k8s-ci-robot k8s-ci-robot added size/L and removed size/M labels May 7, 2026
Comment thread tests/robustness/report/report.go Outdated
Co-authored-by: Marek Siarkowicz <marek.siarkowicz@protonmail.com>
r.visualize = visualize
}

func (r *TestReport) ReportData() error {
Copy link
Copy Markdown
Member

@serathius serathius May 7, 2026

Choose a reason for hiding this comment

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

Suggested change
func (r *TestReport) ReportData() error {
func (r *TestReport) ReporEtcdtData() error {

What data we report?

return err
}
for server, dataPath := range r.ServersDataPath {
r.logger.Info("Saving robustness test report", zap.String("path", path))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

But the function was meant to save data?

@k8s-ci-robot
Copy link
Copy Markdown

@henrybear327: 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-robustness-amd64 518ad0d link true /test pull-etcd-robustness-amd64
pull-etcd-verify 518ad0d link true /test pull-etcd-verify
pull-etcd-unit-test-386 518ad0d link true /test pull-etcd-unit-test-386
pull-etcd-unit-test-amd64 518ad0d link true /test pull-etcd-unit-test-amd64
pull-etcd-coverage-report 518ad0d link true /test pull-etcd-coverage-report

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.

Details

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.

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.

3 participants