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

br: Add a new test to check running status when gc safepoint exceeds global checkpoint #55843

Merged
merged 6 commits into from
Sep 27, 2024

Conversation

RidRisR
Copy link
Contributor

@RidRisR RidRisR commented Sep 4, 2024

What problem does this PR solve?

Issue Number: ref #52485

Problem Summary:

  1. Add a unit test to check running status when gc safepoint exceeds global checkpoint
  2. Add a integration test to check if checkpoint remains when log task is paused

What changed and how does it work?

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No need to test
    • I checked and no code files have been changed.

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

None

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-tests-checked release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed do-not-merge/needs-tests-checked labels Sep 4, 2024
Copy link

tiprow bot commented Sep 4, 2024

Hi @RidRisR. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

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.

Copy link

codecov bot commented Sep 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.6330%. Comparing base (eb19c10) to head (20c598f).
Report is 211 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #55843        +/-   ##
================================================
+ Coverage   72.8613%   75.6330%   +2.7716%     
================================================
  Files          1595       1657        +62     
  Lines        449065     477040     +27975     
================================================
+ Hits         327195     360800     +33605     
+ Misses       101574      94668      -6906     
- Partials      20296      21572      +1276     
Flag Coverage Δ
integration 50.5069% <100.0000%> (?)
unit 72.5107% <100.0000%> (+0.5731%) ⬆️

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

Components Coverage Δ
dumpling 52.9478% <ø> (+0.0177%) ⬆️
parser ∅ <ø> (∅)
br 59.1138% <100.0000%> (+13.7382%) ⬆️

@ti-chi-bot ti-chi-bot bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 4, 2024
@RidRisR RidRisR changed the title br: Add a new test to check advacner will run normally even if gc safepoint exceeds global checkpoint br: Add a new test to check running status when gc safepoint exceeds global checkpoint Sep 5, 2024
Copy link
Contributor

@Leavrth Leavrth left a comment

Choose a reason for hiding this comment

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

rest LGTM

br/pkg/streamhelper/advancer.go Show resolved Hide resolved
@ti-chi-bot ti-chi-bot bot added approved needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 19, 2024
Copy link

ti-chi-bot bot commented Sep 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Leavrth, YuJuncen

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

@ti-chi-bot ti-chi-bot bot added lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Sep 26, 2024
Copy link

ti-chi-bot bot commented Sep 26, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-09-19 03:35:37.047738374 +0000 UTC m=+1105006.788162311: ☑️ agreed by Leavrth.
  • 2024-09-26 03:00:15.391451712 +0000 UTC m=+1707685.131875668: ☑️ agreed by YuJuncen.

Copy link

tiprow bot commented Sep 26, 2024

@RidRisR: 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
tidb_parser_test 4a6bce7 link true /test tidb_parser_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-sigs/prow repository. I understand the commands that are listed here.

@ti-chi-bot ti-chi-bot bot merged commit 9435af1 into pingcap:master Sep 27, 2024
22 checks passed
@RidRisR RidRisR deleted the gctest branch September 27, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants