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

*: move XXInfo/Job, etc, out from model pkg in parser to meta #55754

Merged
merged 16 commits into from
Sep 4, 2024

Conversation

D3Hunter
Copy link
Contributor

@D3Hunter D3Hunter commented Aug 29, 2024

What problem does this PR solve?

Issue Number: ref #54436

Problem Summary:

What changed and how does it work?

Check List

Tests

  • Unit test, only move code, reusing existing cases
  • 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

change other model

change

change

to meta model

parser
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/invalid-title component/dumpling This is related to Dumpling of TiDB. sig/planner SIG: Planner size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 29, 2024
Copy link

tiprow bot commented Aug 29, 2024

Hi @D3Hunter. 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 Aug 29, 2024

Codecov Report

Attention: Patch coverage is 96.25668% with 14 lines in your changes missing coverage. Please review.

Project coverage is 57.1025%. Comparing base (0583e84) to head (ccf71f4).
Report is 9 commits behind head on master.

Additional details and impacted files
@@                Coverage Diff                @@
##             master     #55754         +/-   ##
=================================================
- Coverage   72.7958%   57.1025%   -15.6933%     
=================================================
  Files          1588       1748        +160     
  Lines        443469     631574     +188105     
=================================================
+ Hits         322827     360645      +37818     
- Misses       100772     246003     +145231     
- Partials      19870      24926       +5056     
Flag Coverage Δ
integration 39.5556% <81.4016%> (?)
unit 71.9101% <88.2352%> (+0.0035%) ⬆️

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

Components Coverage Δ
dumpling 52.9567% <100.0000%> (ø)
parser ∅ <ø> (∅)
br 62.9097% <100.0000%> (+17.4785%) ⬆️

@@ -2302,29 +2302,21 @@ func (n *ResourceGroupOption) Restore(ctx *format.RestoreCtx) error {
return nil
}

type RunawayOptionType int
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@D3Hunter D3Hunter changed the title [WIPMove job structs [WIP]*: move model pkg in parser to meta Aug 29, 2024
@ti-chi-bot ti-chi-bot bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. and removed do-not-merge/invalid-title labels Aug 29, 2024
@D3Hunter
Copy link
Contributor Author

/retest

Copy link

tiprow bot commented Aug 30, 2024

@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@D3Hunter D3Hunter changed the title [WIP]*: move model pkg in parser to meta *: move model pkg in parser to meta Aug 30, 2024
@ti-chi-bot ti-chi-bot bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 30, 2024
Copy link

ti-chi-bot bot commented Aug 30, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-08-30 01:47:40.157213433 +0000 UTC m=+1094055.291663555: ☑️ agreed by lance6716.
  • 2024-08-30 08:32:08.5942795 +0000 UTC m=+1253.112332424: ☑️ agreed by joccau.

Copy link
Contributor

@windtalker windtalker left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Collaborator

@lcwangchao lcwangchao left a comment

Choose a reason for hiding this comment

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

If you move model pkg out of parser, I'm not sure whether some other repos that depencies on the parser will break...

@bb7133 could you take a look?

@D3Hunter
Copy link
Contributor Author

D3Hunter commented Sep 3, 2024

If you move model pkg out of parser, I'm not sure whether some other repos that depencies on the parser will break...

@bb7133 could you take a look?

I checked some outer dependency of parser, they only depends on AST and model.CIStr, those part are not moved. I have already described it in the PR, ptal

@D3Hunter D3Hunter changed the title *: move model pkg in parser to meta *: move XXInfo/Job, etc, out from model pkg in parser to meta Sep 3, 2024
@D3Hunter D3Hunter mentioned this pull request Sep 3, 2024
53 tasks
Copy link

@yudongusa yudongusa left a comment

Choose a reason for hiding this comment

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

LGTM.

@ti-chi-bot ti-chi-bot bot added the approved label Sep 3, 2024
Copy link

ti-chi-bot bot commented Sep 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 3pointer, hawkingrei, joccau, lance6716, lcwangchao, tangenta, tiancaiamao, windtalker, yudongusa

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

@D3Hunter
Copy link
Contributor Author

D3Hunter commented Sep 3, 2024

/retest

Copy link

tiprow bot commented Sep 3, 2024

@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@D3Hunter
Copy link
Contributor Author

D3Hunter commented Sep 3, 2024

/retest

Copy link

tiprow bot commented Sep 3, 2024

@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@D3Hunter
Copy link
Contributor Author

D3Hunter commented Sep 4, 2024

/test pull-lightning-integration-test

Copy link

tiprow bot commented Sep 4, 2024

@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test pull-lightning-integration-test

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.

@ti-chi-bot ti-chi-bot bot merged commit 3176b9c into pingcap:master Sep 4, 2024
27 checks passed
@D3Hunter D3Hunter deleted the move-job-structs branch September 4, 2024 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved component/dumpling This is related to Dumpling of TiDB. lgtm release-note-none Denotes a PR that doesn't merit a release note. sig/planner SIG: Planner size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants