-
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
tests: add integration2
for tools integration tests
#56486
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #56486 +/- ##
=================================================
- Coverage 73.2357% 56.5504% -16.6853%
=================================================
Files 1626 1752 +126
Lines 448692 636412 +187720
=================================================
+ Hits 328603 359894 +31291
- Misses 99977 252351 +152374
- Partials 20112 24167 +4055
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/retest |
1 similar comment
/retest |
integration2
for tools integration tests
integration2
for tools integration testsintegration2
for tools integration tests
br_integration t1 _tidb_rowid 101 _TIDB_ROWID | ||
br_integration t1 _tidb_rowid 1 AUTO_INCREMENT | ||
Destination Size BackupTS Queue Time Execution Time | ||
/tmp/t1_550838d3-0672-45d9-8e57-894755fe0478 3695 453145470351704099 2024-10-11 10:13:06 2024-10-11 10:13:06 |
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 not print this msg, because it has some unstable result
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 used 'enableResultLog' to control it, now it's gone. Thanks!
Destination Size BackupTS Queue Time Execution Time | ||
/tmp/t1_550838d3-0672-45d9-8e57-894755fe0478 3695 453145470351704099 2024-10-11 10:13:06 2024-10-11 10:13:06 | ||
Destination Size BackupTS Cluster TS Queue Time Execution Time | ||
/tmp/t1_550838d3-0672-45d9-8e57-894755fe0478 3695 453145470351704099 453145471282315315 2024-10-11 10:13:10 2024-10-11 10:13:10 |
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.
ditto
INSERT INTO t2(a, b) VALUES (1, 1), (2, 2), (3, 3); | ||
SELECT (c & 31) as inc FROM t2 ORDER BY inc; | ||
|
||
--dump_and_import t2 AS tt2 |
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.
Split it to two commands dump
and import
is better.
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 want it to provide an easiest way to performance 'backup' and 'restore' without any detail(for example, the syntax of BACKUP/RESTORE, the arguments of BR binary, local path of backup data...).
For integration tests with more details, many other ways like our internal testing framework can be used.
But still, maybe we can provide two new commands for dump
and import
.
INSERT INTO t1 (b) VALUES (1), (2), (3); | ||
SHOW TABLE t1 NEXT_ROW_ID; | ||
|
||
--backup_and_restore t1 AS tt1 |
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.
Split it to two commands backup
and restore
is better.
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.
Ditto as dump
and import
.
@@ -0,0 +1,91 @@ | |||
#! /usr/bin/env bash |
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 file seems a little bit unreasonable here.
If we want test it on local env, maybe tiup is a better choose. If we want test it on ci env, maybe add it to ci repo is better.
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 a copy of https://github.com/pingcap/tidb/blob/master/br/tests/download_integration_test_binaries.sh
This is used mainly by CI, but I want it available for local env, too.
Also, this script guarantees we always use latest builds for all components, which is hard to archive for TiUP nightly.
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.
But this shell always downloads centos7 image which can't work under MacOS env.
Using tiup means that users can manually set up the test environment through 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.
I'll refine it later to make it work in MacOS.
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.
And better add third_bin
path into .gitignore
file
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Defined2014, hawkingrei 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 |
[LGTM Timeline notifier]Timeline:
|
/retest |
/retest |
What problem does this PR solve?
Issue Number: ref #56556
Problem Summary:
Please check #56556.
What changed and how does it work?
This is the first try of #56556. Rather than updating
tests/integrationtest
, currently I addedintegrationtest2
so that the existing test scripts/test cases could be stable enough.In the future, I will try to merge
integrationtest2
intointegrationtest
when this is stable and mature enough.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.