Skip to content

infoschema: add more tests for infoschema predicate#55591

Merged
ti-chi-bot[bot] merged 3 commits intopingcap:masterfrom
CbcWestwolf:test_infoschema_predicate
Aug 28, 2024
Merged

infoschema: add more tests for infoschema predicate#55591
ti-chi-bot[bot] merged 3 commits intopingcap:masterfrom
CbcWestwolf:test_infoschema_predicate

Conversation

@CbcWestwolf
Copy link
Member

@CbcWestwolf CbcWestwolf commented Aug 22, 2024

What problem does this PR solve?

Issue Number: ref #50305

Problem Summary:

What changed and how does it work?

In pkg/planner/core/memtable_infoschema_extractor_test.go we cover testing all combinations of predicates for each infoschema table. It takes tens of seconds to run TestMemtableInfoschemaExtractor

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. sig/planner SIG: Planner size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Aug 22, 2024
@CbcWestwolf CbcWestwolf marked this pull request as draft August 22, 2024 08:30
@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. 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 Aug 22, 2024
@CbcWestwolf CbcWestwolf marked this pull request as ready for review August 22, 2024 17:11
@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 22, 2024
@CbcWestwolf CbcWestwolf force-pushed the test_infoschema_predicate branch from 1453c83 to 4cc8a71 Compare August 22, 2024 17:25
@codecov
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.2437%. Comparing base (9690dab) to head (2e688f2).
Report is 30 commits behind head on master.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #55591        +/-   ##
================================================
+ Coverage   72.8981%   75.2437%   +2.3456%     
================================================
  Files          1577       1585         +8     
  Lines        440903     451939     +11036     
================================================
+ Hits         321410     340056     +18646     
+ Misses        99759      91485      -8274     
- Partials      19734      20398       +664     
Flag Coverage Δ
integration 49.1738% <100.0000%> (?)
unit 72.0021% <98.7500%> (+0.0486%) ⬆️

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

Components Coverage Δ
dumpling 52.9567% <ø> (ø)
parser ∅ <ø> (∅)
br 54.1995% <ø> (+8.2435%) ⬆️

@ti-chi-bot ti-chi-bot bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 23, 2024
@CbcWestwolf
Copy link
Member Author

PTAL @tangenta @wjhuang2016

@CbcWestwolf
Copy link
Member Author

/retest

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

ti-chi-bot bot commented Aug 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AilinKid, wjhuang2016

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 approved lgtm and removed needs-1-more-lgtm Indicates a PR needs 1 more LGTM. labels Aug 28, 2024
@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 28, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-08-27 08:49:57.900617341 +0000 UTC m=+860193.035067503: ☑️ agreed by wjhuang2016.
  • 2024-08-28 07:49:01.285067825 +0000 UTC m=+942936.419517946: ☑️ agreed by AilinKid.

@CbcWestwolf
Copy link
Member Author

/retest

@ti-chi-bot ti-chi-bot bot merged commit a2c5ff5 into pingcap:master Aug 28, 2024
@CbcWestwolf CbcWestwolf deleted the test_infoschema_predicate branch August 28, 2024 09:28
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. 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.

3 participants