-
Notifications
You must be signed in to change notification settings - Fork 727
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
tests/realcluster: support local real cluster test #7578
Conversation
Signed-off-by: husharp <jinhao.hu@pingcap.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/test pull-integration-realcluster-test |
1 similar comment
/test pull-integration-realcluster-test |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #7578 +/- ##
==========================================
+ Coverage 74.79% 74.82% +0.03%
==========================================
Files 457 457
Lines 50415 50397 -18
==========================================
+ Hits 37710 37712 +2
+ Misses 9372 9356 -16
+ Partials 3333 3329 -4
Flags with carried forward coverage won't be shown. Click here to find out more. |
/test pull-integration-realcluster-test |
Signed-off-by: husharp <jinhao.hu@pingcap.com>
ca21676
to
23685b9
Compare
/test pull-integration-realcluster-test |
Signed-off-by: husharp <jinhao.hu@pingcap.com>
25b93d9
to
93fcfa1
Compare
/test ? |
@HuSharp: The following commands are available to trigger required jobs:
The following commands are available to trigger optional jobs:
Use
In response to this:
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. |
/test pull-integration-realcluster-test |
else | ||
color-green "using existing binaries..." | ||
$TIUP_BIN_DIR playground nightly --kv 3 --tiflash 1 --db 1 --pd 3 --without-monitor \ | ||
--pd.binpath ./bin/pd-server --kv.binpath ./bin/tikv-server --db.binpath ./bin/tidb-server --tiflash.binpath ./bin/tiflash --tag pd_test \ |
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.
Does the user need to move tidb/tikv/tiflash binaries to the current bin path?
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.
Currently, we download the binaries via the ci
repo https://github.com/PingCAP-QE/ci/blob/main/pipelines/tikv/pd/latest/pull_integration_realcluster_test.groovy#L57- L65 in pd/bin
to download the binary.
This approach reduces the cost of learning for developers. However, these packages can only be downloaded by the ci, which means that it is not possible to run locally.
To solve this problem, I would like to load the packages via tiup instead of downloading them by self.
- Because for example, tiflash is a bit tricky to download packages
https://github.com/PingCAP-QE/ci/blob/main/scripts/artifacts/download_pingcap_artifact.sh#L101 - maybe I can give more information in annotation, or do you have any advice? :)
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.
I see. Maybe we provider some flags to specify bin paths for other components?
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.
I'm not sure whether we need to support this feature
I think both methods start the test in essentially the same way?
- cp binary file to directory
- specific binpath flags
cc @JmPotato
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.
Yes, It's both OK to me.
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.
I think we could keep the current implementation since it's most used in the CI environment.
Signed-off-by: husharp <jinhao.hu@pingcap.com>
Signed-off-by: husharp <jinhao.hu@pingcap.com>
69ea471
to
7a77e32
Compare
/test pull-integration-realcluster-test |
/test pull-integration-realcluster-test |
/test pull-integration-realcluster-test 5 |
/merge |
@CabinfeverB: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
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. |
This pull request has been accepted and is ready to merge. Commit hash: 87095d6
|
@HuSharp: Your PR was out of date, I have automatically updated it for you. 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. 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. |
What problem does this PR solve?
Issue Number: ref #7298
What is changed and how does it work?
Currently, we download the binaries via the ci repo PingCAP-QE/ci@main/pipelines/tikv/pd/latest/pull_integration_realcluster_test.groovy#L57- L65 in pd/bin to download the binary.
This approach reduces the cost of learning for developers. However, these packages can only be downloaded by the ci, which means that it is not possible to run locally.
To solve this problem, I would like to load the packages via tiup instead of downloading them by self.
PingCAP-QE/ci@main/scripts/artifacts/download_pingcap_artifact.sh#L101
Check List
Tests
Release note