-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
testkit: add a WithTiKV flag to support run unit test on real TiKV #35647
Merged
Merged
Changes from 5 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
9fd0506
testkit: add a WithTiKV flag to support run unit test on real TiKV
tiancaiamao 3ffc0da
make fmt
tiancaiamao 5428e53
Merge branch 'master' into with-tikv
hawkingrei c7a8381
Merge branch 'master' into with-tikv
hawkingrei 3c62d35
Merge branch 'master' into with-tikv
hawkingrei 3d04b56
Merge branch 'master' into with-tikv
tiancaiamao e3013f6
Merge branch 'master' into with-tikv
tiancaiamao 9c4b37d
Merge branch 'master' into with-tikv
tiancaiamao d06791c
address comment
tiancaiamao 3af0aca
Merge branch 'master' into with-tikv
tiancaiamao 5843ab4
Merge branch 'master' into with-tikv
tiancaiamao 3abe83a
Merge branch 'master' into with-tikv
xhebox 53a13b9
Merge branch 'master' into with-tikv
xhebox f33c2e0
go fmt
tiancaiamao a8eaa77
Merge branch 'master' into with-tikv
tiancaiamao 21850c3
fix gcworker package import circle dependency
tiancaiamao d03ba52
Merge branch 'master' into with-tikv
tiancaiamao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, @tisonkun has moved the real-tikv test case on here. If you would like to run the real-tikv test case. all are under the same folder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The background is, I need to test the paging protocol with the real tikv.
So I need rewrite all the test case or move them all?
A more reasonable solution is just add a flag ... if you don't use it, it doesn't change anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch just add a flag, which won't affect CI settings. The reason I move all with real tikv tests to a dedicated test is for tagging tests in CI env.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tiancaiamao would you like to change CI logic? Or adding these code for conveniently running tests with real tikv locally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also,
with-tikv
is a string flag while its help info said"whether tests run with real TiKV"
, which is confusing...Perhaps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to see the full changes, it's in my branch https://github.com/tiancaiamao/tidb/tree/test-with-tikv
But not all the test cases can run under TiKV, I check and document the result here:
https://pingcap.feishu.cn/docx/doxcnEzyRXsTdCJ2EE6EZwIP2oe
I'm not adding a new CI pipeline, I just make the code base more friendly for those who want to run some test cases with a real TiKV.