-
Notifications
You must be signed in to change notification settings - Fork 728
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
test: refactor real cluster test and implement cluster id case #8685
Conversation
Signed-off-by: okJiang <819421878@qq.com>
restartTiUP() | ||
checkLabelsAreEqual() | ||
} | ||
// func TestReloadLabel(t *testing.T) { |
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.
these cases will be updated with new style in the next pr
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.
what do you think? Do I need update them in this pr? @rleungx
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.
Both are ok to me.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8685 +/- ##
==========================================
+ Coverage 70.03% 70.08% +0.05%
==========================================
Files 517 517
Lines 79947 79947
==========================================
+ Hits 55989 56033 +44
+ Misses 20382 20346 -36
+ Partials 3576 3568 -8
Flags with carried forward coverage won't be shown. Click here to find out more. |
pull-integration-realcluster-test should be passed after PingCAP-QE/ci#3168 merge |
tests/integrations/realcluster/download_integration_test_binaries.sh
Outdated
Show resolved
Hide resolved
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
Signed-off-by: okJiang <819421878@qq.com>
// --kv.binpath ./third_bin/tikv-server \ | ||
// --db.binpath ./third_bin/tidb-server --tiflash.binpath ./third_bin/tiflash \ | ||
--kv.binpath ./bin/tikv-server \ | ||
--db.binpath ./bin/tidb-server --tiflash.binpath ./bin/tiflash \ |
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.
We will use third_bin after PingCAP-QE/ci#3168 merge
} | ||
|
||
func (s *realClusterSuite) tag() string { | ||
return fmt.Sprintf("pd_real_cluster_test_%s_%d", s.suiteName, s.clusterCnt) |
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.
How about using a random way?
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.
It is not needed at the moment. If using random numbers, we need to maintain an additional array of random numbers.
--pd.config ./tests/integrations/realcluster/pd.toml \ | ||
> `+filepath.Join(curPath, "playground", tag+".log")+` 2>&1 & `) | ||
|
||
time.Sleep(10 * time.Second) |
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.
What the purpose of it compared with waitTiupReady?
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.
To avoid to change the dir before execute tiup playground
. I will add some comments for it.
func (s *realClusterSuite) SetupSuite() { | ||
t := s.T() | ||
|
||
dataDir := filepath.Join(os.Getenv("HOME"), ".tiup", "data", "pd_real_cluster_test_"+s.suiteName+"_*") |
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.
Should we use a tmp dir?
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 directory is the default dir of tiup.
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.
Signed-off-by: okJiang <819421878@qq.com>
ping~ @rleungx |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JmPotato, rleungx The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What problem does this PR solve?
Issue Number: Close #8683, close #8684
What is changed and how does it work?
Check List
Tests
Release note