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 TestLabelerRuleTTL stable #8723

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

okJiang
Copy link
Member

@okJiang okJiang commented Oct 16, 2024

What problem does this PR solve?

Issue Number: Close #8687

What is changed and how does it work?

see #8687 (comment)

Check List

Tests

  • Unit test
  • Integration test

Release note

None.

Signed-off-by: okJiang <819421878@qq.com>
@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/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 16, 2024
@okJiang
Copy link
Member Author

okJiang commented Oct 16, 2024

/retest

Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.00%. Comparing base (f7c8e43) to head (794aac9).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8723      +/-   ##
==========================================
- Coverage   70.03%   70.00%   -0.03%     
==========================================
  Files         517      517              
  Lines       79947    79947              
==========================================
- Hits        55989    55967      -22     
- Misses      20382    20413      +31     
+ Partials     3576     3567       -9     
Flag Coverage Δ
unittests 70.00% <ø> (-0.03%) ⬇️

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

@@ -341,7 +341,7 @@ func TestKeyRange(t *testing.T) {
func TestLabelerRuleTTL(t *testing.T) {
re := require.New(t)
store := endpoint.NewStorageEndpoint(kv.NewMemoryKV(), nil)
labeler, err := NewRegionLabeler(context.Background(), store, time.Millisecond*10)
labeler, err := NewRegionLabeler(context.Background(), store, time.Minute)
Copy link
Contributor

Choose a reason for hiding this comment

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

Will it be too long?

Copy link
Member Author

Choose a reason for hiding this comment

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

This test case don't need to test GC.

@ti-chi-bot ti-chi-bot bot added needs-1-more-lgtm Indicates a PR needs 1 more LGTM. approved labels Oct 18, 2024
@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Oct 18, 2024
Copy link
Contributor

ti-chi-bot bot commented Oct 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lhy1024, 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:

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

Copy link
Contributor

ti-chi-bot bot commented Oct 18, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-10-18 03:43:55.206901256 +0000 UTC m=+588232.355811081: ☑️ agreed by lhy1024.
  • 2024-10-18 07:10:41.403383876 +0000 UTC m=+600638.552293705: ☑️ agreed by rleungx.

Copy link
Contributor

ti-chi-bot bot commented Oct 18, 2024

@okJiang: The following test 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-integration-realcluster-test 794aac9 link false /test pull-integration-realcluster-test

Full PR test history. Your PR dashboard.

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/test-infra repository. I understand the commands that are listed here.

@ti-chi-bot ti-chi-bot bot merged commit c43acaa into tikv:master Oct 18, 2024
23 of 25 checks passed
@okJiang okJiang deleted the fix-TestLabelerRuleTTL branch October 18, 2024 07:24
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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TestLabelerRuleTTL is flaky
3 participants