Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoucheng361 committed Apr 19, 2024
1 parent 022b705 commit 30be626
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/hypo/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ def restore(self, put_back, threads, user='root'):
)
@precondition(lambda self: self.should_run('compact'))
def compact(self, entry, threads, user='root'):
result1 = self.cmd1.do_compact(entry=entry, thread=threads, user=user)
result2 = self.cmd2.do_compact(entry=entry, thread=threads, user=user)
result1 = self.cmd1.do_compact(entry=entry, threads=threads, user=user)
result2 = self.cmd2.do_compact(entry=entry, threads=threads, user=user)
assert self.equal(result1, result2), f'\033[31mcompact:\nresult1 is {result1}\nresult2 is {result2}\033[0m'

@rule(
Expand Down
8 changes: 5 additions & 3 deletions .github/scripts/start_meta_engine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ start_meta_engine(){
elif [ "$meta" == "badger" ]; then
sudo go get github.com/dgraph-io/badger/v3
elif [ "$meta" == "mariadb" ]; then
docker run -p 127.0.0.1:3306:3306 --name mdb -e MARIADB_ROOT_PASSWORD=root -d mariadb:latest
sleep 10
if lsof -i:3306; then
echo "mariadb is already running"
else
docker run -p 127.0.0.1:3306:3306 --name mdb -e MARIADB_ROOT_PASSWORD=root -d mariadb:latest
sleep 10
elif [ "$meta" == "tidb" ]; then
retry install_tidb
mysql -h127.0.0.1 -P4000 -uroot -e "set global tidb_enable_noop_functions=1;"
Expand All @@ -124,7 +127,6 @@ start_meta_engine(){
mysql -h127.0.0.1 -P2881 -uroot -e "ALTER SYSTEM SET _ob_enable_prepared_statement=TRUE;"
elif [ "$meta" == "postgres" ]; then
echo "start postgres"
lsof -i:5432
if lsof -i:5432; then
echo "postgres is already running"
else
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/command2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ jobs:
run: |
sudo META1=redis META2=${{matrix.meta}} .github/scripts/command/random.sh test_run_examples
- name: Remove unused software
run: |
echo "before remove unused software"
sudo df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
echo "after remove unused software"
sudo df -h
- name: Run All
timeout-minutes: 60
run: |
Expand Down

0 comments on commit 30be626

Please sign in to comment.