Skip to content

Commit

Permalink
fix run.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Jun 16, 2023
1 parent 16511ee commit 9a4d1cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ jobs:
path: |
/tmp/ceresdb-stdout.log
recover-test:
name: recover-test
recovery-test:
name: recovery-test
runs-on: ubuntu-latest
timeout-minutes: 120
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ run-prom:
cd prom && ./run-tests.sh

run-recovery: clean build-ceresdb kill-old-process
cd recovery && sh ./run.sh && sh ./run.sh shard_based
cd recovery && ./run.sh && ./run.sh shard_based
2 changes: 1 addition & 1 deletion integration_tests/prom/remote-query.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def remote_query(ts):
# uppercase table
r = execute_pql(table2 + '{tag1="v1"}[5m]')
result = r['data']['result']
assert result == [{'metric': {'__name__': table2, 'tag1': 'v1', 'tag2': 'v2'}, 'values': [[ts-5, '10'], [ts, '110']]}]
assert result == [{'metric': {'__name__': table2, 'tag1': 'v1', 'tag2': 'v2'}, 'values': [[ts-4, '10'], [ts, '110']]}]

def main():
ts = now()
Expand Down
4 changes: 2 additions & 2 deletions integration_tests/recovery/run.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ BINARY_PATH=${ROOT}/../../target/debug/ceresdb-server
SERVER_HTTP_ENDPOINT=127.0.0.1:5440

CONFIG_FILE=${ROOT}/../../docs/minimal.toml
if [[ ${1} == "shard_based" ]]; then
if [ ${1} == 'shard_based' ]; then
CONFIG_FILE=${ROOT}/../config/shard-based-recovery.toml
fi

Expand All @@ -25,7 +25,7 @@ python3 ./check.py -ts ${NOW}

echo "Flush, restart and check..."
curl -XPOST ${SERVER_HTTP_ENDPOINT}/debug/flush_memtable
echo "\nflush finish..."
echo "\nFlush finish..."
killall ceresdb-server | true
nohup ${BINARY_PATH} --config ${CONFIG_FILE} &
sleep 10
Expand Down

0 comments on commit 9a4d1cd

Please sign in to comment.