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

[to #462] add version constraint for rawkv tests #463

Merged
merged 4 commits into from
Jan 4, 2022

Conversation

iosmanthus
Copy link
Member

Signed-off-by: iosmanthus myosmanthustree@gmail.com

What problem does this PR solve?

Issue Number: close #462

Problem Description:
Some tests in the master branch are not compatible with older versions of TiKV, we need to add some version constraints to these tests and furthermore, add integration compatibility tests for the master branch.

What is changed and how it works?

Use Assume to ignore some tests with version info reading from ENV.

Check List for Tests

This PR has been tested by at least one of the following methods:

  • Manual test (add detailed scripts or steps below)

Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
@@ -21,6 +21,21 @@
import org.tikv.util.TestUtils;

public class BaseRawKVTest {

protected String getTiKVVersion() {
String tikvVersion = TestUtils.getEnv("TIKV_VERSION");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Who will set the TIKV_VERSION?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Cool

Copy link
Member Author

Choose a reason for hiding this comment

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

Who will set the TIKV_VERSION?

By design, like RAWKV_PD_ADDRESSES, it will be set by the test executor.

Copy link
Collaborator

@marsishandsome marsishandsome left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason
Copy link
Member

zz-jason commented Jan 4, 2022

/merge

@ti-srebot
Copy link
Collaborator

/run-all-tests

@iosmanthus iosmanthus changed the title add version constraint for rawkv tests [partially close #462] add version constraint for rawkv tests Jan 4, 2022
@iosmanthus iosmanthus changed the title [partially close #462] add version constraint for rawkv tests [to close #462] add version constraint for rawkv tests Jan 4, 2022
@iosmanthus iosmanthus changed the title [to close #462] add version constraint for rawkv tests [to #462] add version constraint for rawkv tests Jan 4, 2022
@zz-jason zz-jason merged commit 712509f into tikv:master Jan 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

master branch compatibility tracking issue
4 participants