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

parser: Fix keywords & keywords not checked in CI #54371

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

breezewish
Copy link
Member

@breezewish breezewish commented Jul 1, 2024

What problem does this PR solve?

Issue Number: ref #48801

Problem Summary:

What changed and how does it work?

In #48807 a new Make action is introduced. However this action is not invoked in CI, nor listed in TiDB Dev Guide, causes mistakes like #54246 (comment).

This PR:

  • Updates the incorrect Keywords list
  • Calls make generate when make parser is called, prevent future mistakes happen again

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. labels Jul 1, 2024
@ti-chi-bot ti-chi-bot added the needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. label Jul 1, 2024
@ti-chi-bot ti-chi-bot bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 1, 2024
@breezewish breezewish changed the title parser: Fix keywords not checked in CI parser: Fix keywords & keywords not checked in CI Jul 1, 2024
Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.0108%. Comparing base (6006822) to head (829988f).
Report is 15 commits behind head on master.

Additional details and impacted files
@@                Coverage Diff                @@
##             master     #54371         +/-   ##
=================================================
- Coverage   72.8342%   56.0108%   -16.8234%     
=================================================
  Files          1530       1652        +122     
  Lines        435975     609080     +173105     
=================================================
+ Hits         317539     341151      +23612     
- Misses        98801     244646     +145845     
- Partials      19635      23283       +3648     
Flag Coverage Δ
integration 36.9098% <ø> (?)
unit 71.8391% <ø> (+0.0200%) ⬆️

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

Components Coverage Δ
dumpling 52.9656% <ø> (ø)
parser ∅ <ø> (∅)
br 52.5377% <ø> (+6.4263%) ⬆️

@ti-chi-bot ti-chi-bot bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Jul 1, 2024
@hawkingrei
Copy link
Member

/retest

Copy link

ti-chi-bot bot commented Jul 1, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dveeden, hawkingrei
Once this PR has been reviewed and has the lgtm label, please assign d3hunter for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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 Jul 1, 2024
Copy link

ti-chi-bot bot commented Jul 1, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-07-01 14:29:21.603151533 +0000 UTC m=+1248288.088640558: ☑️ agreed by hawkingrei.
  • 2024-07-01 15:01:58.760557705 +0000 UTC m=+1250245.246046535: ☑️ agreed by dveeden.

pkg/parser/Makefile Outdated Show resolved Hide resolved
Co-authored-by: Daniël van Eeden <[email protected]>
@breezewish breezewish removed the needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. label Jul 2, 2024
@ti-chi-bot ti-chi-bot added the needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. label Jul 2, 2024
Signed-off-by: Wish <[email protected]>
@breezewish
Copy link
Member Author

/retest

test: fmt parser
sh test.sh

parser: parser.go hintparser.go
Copy link
Contributor

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm needs-cherry-pick-release-7.5 Should cherry pick this PR to release-7.5 branch. 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.

5 participants