Skip to content

Commit

Permalink
ci: fix HTAP and replication test
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyang01 committed Dec 5, 2024
1 parent f436506 commit 7195cdb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/mysql-htap-maxscale-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
run: |
cd devtools/htap-setup-mysql/maxscale
docker compose up -d --wait
sleep 10
- name: Verify HTAP setup
run: |
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/replication-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,21 @@ jobs:
- name: Verify initial replication
run: |
# Query source data
# Query source data & MyDuck data
if [ "${{ matrix.source }}" = "mysql" ]; then
docker exec source-db mysql -uroot -proot test \
-e "SELECT * FROM items ORDER BY id;" > source_data.csv
-e "SELECT * FROM items ORDER BY id;" | tee source_data.csv
docker exec myduck psql -U postgres -h 127.0.0.1 \
-c "\COPY (SELECT * FROM test.items ORDER BY id) TO STDOUT WITH CSV;" | tee myduck_data.csv
else
docker exec source-db psql -U postgres -h 127.0.0.1 test \
-c "\COPY (SELECT * FROM items ORDER BY id) TO STDOUT WITH CSV;" | tee source_data.csv
fi
# Query MyDuck data through Postgres interface
docker exec myduck psql -U postgres -h 127.0.0.1 \
-c "\COPY (SELECT * FROM items ORDER BY id) TO STDOUT WITH CSV;" | tee myduck_data.csv
docker exec myduck psql -U postgres -h 127.0.0.1 \
-c "\COPY (SELECT * FROM items ORDER BY id) TO STDOUT WITH CSV;" | tee myduck_data.csv
fi
# Compare data using DuckDB
duckdb --csv -c "
Expand Down

0 comments on commit 7195cdb

Please sign in to comment.