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

Makefile: add gotag for make server_check #51057

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

Conversation

winoros
Copy link
Member

@winoros winoros commented Feb 7, 2024

What problem does this PR solve?

Issue Number: close #xxx

Problem Summary:

What changed and how does it work?

There's some error check enabled by gotag intest.

And we're moving tests from Golang's unit test to the integration tests. We need to use the binary which is compiled with the gotag.

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

@winoros winoros added the skip-issue-check Indicates that a PR no need to check linked issue. label Feb 7, 2024
@ti-chi-bot ti-chi-bot bot added release-note-none Denotes a PR that doesn't merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Feb 7, 2024
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Attention: Patch coverage is 94.87179% with 2 lines in your changes missing coverage. Please review.

Project coverage is 57.1887%. Comparing base (d99d445) to head (201d828).

Additional details and impacted files
@@                Coverage Diff                @@
##             master     #51057         +/-   ##
=================================================
- Coverage   72.9567%   57.1887%   -15.7680%     
=================================================
  Files          1611       1771        +160     
  Lines        447502     670719     +223217     
=================================================
+ Hits         326483     383576      +57093     
- Misses       100925     262122     +161197     
- Partials      20094      25021       +4927     
Flag Coverage Δ
integration 37.1686% <89.7435%> (?)
unit 71.9951% <89.7435%> (-0.0719%) ⬇️

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

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

@winoros
Copy link
Member Author

winoros commented Feb 8, 2024

It's so surprising that some tests failed when we added the gotags.
I'll check it later.

@winoros
Copy link
Member Author

winoros commented Feb 18, 2024

/retest

Copy link
Member

@okJiang okJiang left a comment

Choose a reason for hiding this comment

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

Maybe need a issue

Copy link

ti-chi-bot bot commented Feb 26, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-02-11 15:13:12.776350205 +0000 UTC m=+715318.343120096: ☑️ agreed by AilinKid.
  • 2024-02-26 10:25:09.85847818 +0000 UTC m=+871198.606101288: ☑️ agreed by okJiang.

@hawkingrei
Copy link
Member

/retest

4 similar comments
@winoros
Copy link
Member Author

winoros commented Mar 7, 2024

/retest

@hawkingrei
Copy link
Member

/retest

@winoros
Copy link
Member Author

winoros commented Mar 18, 2024

/retest

@winoros
Copy link
Member Author

winoros commented Mar 29, 2024

/retest

@ti-chi-bot ti-chi-bot bot added sig/planner SIG: Planner size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 19, 2024
@winoros
Copy link
Member Author

winoros commented Jul 19, 2024

/hold for a while

@ti-chi-bot ti-chi-bot bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 19, 2024
@@ -308,7 +308,8 @@ func (e *memtableRetriever) setDataForVariablesInfo(ctx sessionctx.Context) erro

func (e *memtableRetriever) setDataForUserAttributes(ctx context.Context, sctx sessionctx.Context) error {
exec := sctx.GetRestrictedSQLExecutor()
chunkRows, _, err := exec.ExecRestrictedSQL(ctx, nil, `SELECT user, host, JSON_UNQUOTE(JSON_EXTRACT(user_attributes, '$.metadata')) FROM mysql.user`)
wrappedCtx := kv.WithInternalSourceType(ctx, kv.InternalTxnOthers)
Copy link
Member Author

Choose a reason for hiding this comment

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

It's a missed one. Found by the intest tag.

@winoros
Copy link
Member Author

winoros commented Jul 19, 2024

QQ_1721402706884
Now that the check_dev can pass.
We know that the failure is caused by
QQ_1721402744264

I'm trying to solve it without enlarging the cache size too much.

@ti-chi-bot ti-chi-bot bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 29, 2024
@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 31, 2024
@winoros
Copy link
Member Author

winoros commented Jul 31, 2024

/retest

Copy link
Contributor

@D3Hunter D3Hunter left a comment

Choose a reason for hiding this comment

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

can you separate the flags which is used for UT/FT and changes normal code path and the flag to control whether enable asserts which is harmless. i don't like the idea that we have to use 2 flags to do it for UT/FT

@ti-chi-bot ti-chi-bot bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 12, 2024
Copy link

ti-chi-bot bot commented Aug 12, 2024

PR needs rebase.

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/test-infra repository.

Comment on lines +1050 to +1068
lSchema := lChild.Schema()
rSchema := rChild.Schema()
// parentused col = t2.a
// leftChild schema = t1.a(t2.a) + and others
// rightChild schema = t3 related + and others
if join, ok := lChild.(*LogicalJoin); ok {
if join.FullSchema != nil {
lSchema = join.FullSchema
}
}
if join, ok := rChild.(*LogicalJoin); ok {
if join.FullSchema != nil {
rSchema = join.FullSchema
}
}
for _, col := range parentUsedCols {
if lChild.Schema().Contains(col) {
if lSchema != nil && lSchema.Contains(col) {
leftCols = append(leftCols, col)
} else if rChild.Schema().Contains(col) {
} else if rSchema != nil && rSchema.Contains(col) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Found by integration test.

@ti-chi-bot ti-chi-bot bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 11, 2024
Copy link

ti-chi-bot bot commented Sep 11, 2024

@winoros: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-br-integration-test 9301a21 link true /test pull-br-integration-test
pull-lightning-integration-test 9301a21 link true /test pull-lightning-integration-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/test-infra repository. I understand the commands that are listed here.

@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 11, 2024
Copy link

ti-chi-bot bot commented Sep 18, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: AilinKid, hawkingrei, lance6716, Leavrth, okJiang
Once this PR has been reviewed and has the lgtm label, please assign zanmato1984 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note-none Denotes a PR that doesn't merit a release note. sig/planner SIG: Planner size/L Denotes a PR that changes 100-499 lines, ignoring generated files. skip-issue-check Indicates that a PR no need to check linked issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants