Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

checker/:ignore unnecessary privilege for different task modes (#372) #374

Merged
merged 9 commits into from
Nov 26, 2019

Conversation

sre-bot
Copy link

@sre-bot sre-bot commented Nov 25, 2019

cherry-pick #372 to release-1.0


What problem does this PR solve?

Now we check all the privileges when we start dm which is unreasonable. For task mode full we don't need replication privilege while for task mode increment we don't need dump privilege.

What is changed and how it works?

Add unnecessary privilege check to ignore checking items for different task modes.

Check List

Tests

  • Unit test
  • Integration test

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation
  • Need to be included in the release note

@sre-bot sre-bot added priority/normal Minor change, requires approval from ≥1 primary reviewer needs-update-docs Should update docs after this PR is merged. Remove this label once the docs are updated needs-update-release-note This PR should be added into release notes. Remove this label once the release notes are updated type/cherry-pick This PR is just a cherry-pick (backport) labels Nov 25, 2019
Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

LGTM

@lichunzhu
Copy link
Contributor

/run-all-tests tidb=release-3.0

@csuzhangxc csuzhangxc added the status/LGT1 One reviewer already commented LGTM label Nov 25, 2019
@WangXiangUSTC
Copy link
Contributor

/run-all-tests tidb=release-3.0

1 similar comment
@csuzhangxc
Copy link
Member

/run-all-tests tidb=release-3.0

@lichunzhu
Copy link
Contributor

/run-unit-tests tidb=release-3.0

@codecov
Copy link

codecov bot commented Nov 26, 2019

Codecov Report

❗ No coverage uploaded for pull request base (release-1.0@2b6a323). Click here to learn what that means.
The diff coverage is 37.5%.

@@               Coverage Diff                @@
##             release-1.0       #374   +/-   ##
================================================
  Coverage               ?   57.3472%           
================================================
  Files                  ?        158           
  Lines                  ?      16074           
  Branches               ?          0           
================================================
  Hits                   ?       9218           
  Misses                 ?       5949           
  Partials               ?        907

@WangXiangUSTC
Copy link
Contributor

LGTM

@WangXiangUSTC WangXiangUSTC added status/LGT2 Two reviewers already commented LGTM, ready for merge and removed status/LGT1 One reviewer already commented LGTM labels Nov 26, 2019
@lichunzhu lichunzhu merged commit b99f0b7 into pingcap:release-1.0 Nov 26, 2019
@ericsyh ericsyh added this to the v1.0.3 milestone Dec 3, 2019
@csuzhangxc csuzhangxc removed the needs-update-release-note This PR should be added into release notes. Remove this label once the release notes are updated label Mar 13, 2020
@csuzhangxc csuzhangxc added the already-update-release-note The release note is updated. Add this label once the release note is updated label Mar 13, 2020
@csuzhangxc csuzhangxc added already-update-docs The docs related to this PR already updated. Add this label once the docs are updated and removed needs-update-docs Should update docs after this PR is merged. Remove this label once the docs are updated labels Jun 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
already-update-docs The docs related to this PR already updated. Add this label once the docs are updated already-update-release-note The release note is updated. Add this label once the release note is updated priority/normal Minor change, requires approval from ≥1 primary reviewer status/LGT2 Two reviewers already commented LGTM, ready for merge type/cherry-pick This PR is just a cherry-pick (backport)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants