Skip to content

server: fix test for clienterrors#25278

Merged
ti-chi-bot merged 2 commits intopingcap:masterfrom
morgo:fix-tests
Jun 9, 2021
Merged

server: fix test for clienterrors#25278
ti-chi-bot merged 2 commits intopingcap:masterfrom
morgo:fix-tests

Conversation

@morgo
Copy link
Contributor

@morgo morgo commented Jun 9, 2021

What problem does this PR solve?

Issue Number: close #25056 and close #23977

Problem Summary:

In all known cases of this test failure, it is on checking that the warning count is correct, and not the error count.

I believe the root cause is because clienterrrors is populated on the network send event, and because the result set was not explicitly read (and there is one in the event of a warning) it's possible that the warning count had not been updated yet.

The fixed code makes a deliberate attempt to read the data into a fake string, but do nothing with it.

What is changed and how it works?

What's Changed:

Improved test stability (flaky test)

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Unit test

Side effects

  • None

Release note

  • No release note

@ti-chi-bot ti-chi-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 9, 2021
@github-actions github-actions bot added the sig/sql-infra SIG: SQL Infra label Jun 9, 2021
@morgo morgo requested a review from a team June 9, 2021 05:00
Copy link
Contributor

@xhebox xhebox left a comment

Choose a reason for hiding this comment

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

Reasonable to me. And we can always reopen the issue if it is not fixed.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jun 9, 2021
@ti-chi-bot
Copy link
Member

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • tangenta
  • xhebox

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

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

Details

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jun 9, 2021
@bb7133
Copy link
Member

bb7133 commented Jun 9, 2021

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: 8e54328

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 9, 2021
@ti-chi-bot
Copy link
Member

@morgo: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

Details

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 ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot merged commit e29496c into pingcap:master Jun 9, 2021
@morgo morgo deleted the fix-tests branch June 9, 2021 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sig/sql-infra SIG: SQL Infra size/S Denotes a PR that changes 10-29 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unstable test FAIL: tidb_test.go:1024: tidbTestSuite.TestClientErrors flaky test: runTestInfoschemaClientErrors

5 participants