Signed-off-by: Arindam Nayak <arindam.nayak@outlook.com>
This commit is contained in:
Arindam Nayak 2020-07-09 16:38:09 +05:30
Родитель 1a800d9777
Коммит 47bce654e1
4 изменённых файлов: 31 добавлений и 3 удалений

19
.github/workflows/pitr_test_docker.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,19 @@
name: PITR test
on: [push, pull_request]
jobs:
build:
name: PITR Test
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: Check out code
uses: actions/checkout@v2
- name: Setup tmate session
uses: mxschmitt/action-tmate@v2

Просмотреть файл

@ -6,13 +6,17 @@ ripple=https://github.com/google/mysql-ripple.git
#download bazel
curl $bazel --output bazel -L
chmod +x bazel
ls -l
#download ripple and build it
#download ripple and build it
git clone $ripple
cd mysql-ripple
bazel build :all
cp ../bazel .
./bazel build :all
# copy rippled and delete dependent directory
pwd
ls
cp bazel-bin/rippled ../.
cd -
rm -rf mysql-ripple

Просмотреть файл

@ -1,12 +1,14 @@
package pitr
import (
"flag"
"os/exec"
"strings"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"vitess.io/vitess/go/test/endtoend/cluster"
)
const (
@ -14,6 +16,9 @@ const (
)
func TestPointInTimeRecovery(t *testing.T) {
defer cluster.PanicHandler(nil)
flag.Parse()
tmpProcess := exec.Command(
binlogServer,
"--version",

Просмотреть файл

@ -271,7 +271,7 @@
"Args": ["vitess.io/vitess/go/test/endtoend/recovery/pitr"],
"Command": [],
"Manual": false,
"Shard": 25,
"Shard": 26,
"RetryMax": 0,
"ExtraDockerArg" : "rippled",
"Tags": [