forked from pingcap/tidb-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add slow query E2E test (pingcap#1141)
- Loading branch information
1 parent
e8076b5
commit 95daf15
Showing
19 changed files
with
382 additions
and
46 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
set -ex | ||
tidb_version=$1 | ||
mode=$2 | ||
|
||
TIUP_BIN_DIR=$HOME/.tiup/bin/tiup | ||
|
||
if [ $mode = "restart" ]; then | ||
# get process id | ||
pid=$(ps -ef | grep -v start_tiup | grep tiup | grep -v grep | awk '{print $2}') | ||
|
||
for id in $pid | ||
do | ||
# kill tiup-playground | ||
echo "killing $id" | ||
kill -9 $id; | ||
done | ||
else | ||
echo "install tiup" | ||
# Install TiUP | ||
curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh | ||
$TIUP_BIN_DIR update playground | ||
fi | ||
|
||
# Run Tiup | ||
$TIUP_BIN_DIR playground ${tidb_version} --tiflash=0 &> start_tiup.log & |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
{ | ||
"defaultCommandTimeout": 60000, | ||
"defaultCommandTimeout": 120000, | ||
"responseTimeout": 60000, | ||
"requestTimeout": 60000, | ||
"screenshotOnRunFailure": false, | ||
"video": false, | ||
"env": { | ||
"FEATURE_VERSION": "6.0.0" | ||
} | ||
"FEATURE_VERSION": "6.0.0", | ||
"TIDB_VERSION": "nightly" | ||
}, | ||
"experimentalSessionSupport": true, | ||
"viewportWidth": 1500, | ||
"viewportHeight": 1000 | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"root": "/", | ||
"login": "/signin", | ||
"overview": "/overview" | ||
"overview": "/overview", | ||
"slow_query": "/slow_query" | ||
} |
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
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
Oops, something went wrong.