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

test: make TestPreparingProgress stable #8966

Merged
merged 7 commits into from
Jan 2, 2025

Conversation

okJiang
Copy link
Member

@okJiang okJiang commented Jan 2, 2025

What problem does this PR solve?

Issue Number: Close #8693

What is changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test

Release note

None.

@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has signed the dco. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 2, 2025
@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Jan 2, 2025
Signed-off-by: okJiang <[email protected]>
@okJiang
Copy link
Member Author

okJiang commented Jan 2, 2025

/retest

Copy link

codecov bot commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.25%. Comparing base (0bfa31f) to head (dd1773d).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8966      +/-   ##
==========================================
- Coverage   76.34%   76.25%   -0.10%     
==========================================
  Files         465      465              
  Lines       70537    70547      +10     
==========================================
- Hits        53853    53796      -57     
- Misses      13344    13394      +50     
- Partials     3340     3357      +17     
Flag Coverage Δ
unittests 76.25% <ø> (-0.10%) ⬇️

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

resp *http.Response
)
testutil.Eventually(re, func() bool {
//nolint:bodyclose
Copy link
Contributor

Choose a reason for hiding this comment

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

why ignore this lint? you can place defer resp.Body.Close() into this function.

Copy link
Member

Choose a reason for hiding this comment

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

+1

Copy link
Member Author

Choose a reason for hiding this comment

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

It is closed in L1108 already

Copy link
Contributor

ti-chi-bot bot commented Jan 2, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bufferflies, rleungx

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:
  • OWNERS [bufferflies,rleungx]

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

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Jan 2, 2025
Copy link
Contributor

ti-chi-bot bot commented Jan 2, 2025

[LGTM Timeline notifier]

Timeline:

  • 2025-01-02 07:07:45.066610929 +0000 UTC m=+593400.422615467: ☑️ agreed by rleungx.
  • 2025-01-02 07:43:32.259319014 +0000 UTC m=+595547.615323554: ☑️ agreed by bufferflies.

@okJiang
Copy link
Member Author

okJiang commented Jan 2, 2025

/retest

1 similar comment
@okJiang
Copy link
Member Author

okJiang commented Jan 2, 2025

/retest

@okJiang
Copy link
Member Author

okJiang commented Jan 2, 2025

/retest

@ti-chi-bot ti-chi-bot bot merged commit 41919ad into tikv:master Jan 2, 2025
25 checks passed
@okJiang okJiang deleted the fix-TestPreparingProgress branch January 2, 2025 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved dco-signoff: yes Indicates the PR's author has signed the dco. lgtm release-note-none Denotes a PR that doesn't merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestPreparingProgress is flaky
3 participants