Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:

citus:
name: DBMS Tests (Citus)
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -89,6 +89,17 @@ jobs:
psql -c "CREATE EXTENSION citus;" -p 9702 -U $USER -d test
psql -c "SELECT * from citus_add_node('localhost', 9701);" -p 9700 -U $USER -d test
psql -c "SELECT * from citus_add_node('localhost', 9702);" -p 9700 -U $USER -d test
- name: Wait for Citus to be ready
run: |
echo "Waiting for Citus coordinator to be ready..."
for i in {1..30}; do
if psql -p 9700 -U $USER -d test -c "SELECT count(*) FROM pg_dist_node;" >/dev/null 2>&1; then
echo "Citus is ready."
break
fi
echo "Citus not ready yet, retrying..."
sleep 2
done
- name: Run Tests
run: CITUS_AVAILABLE=true mvn -Dtest=TestCitus test

Expand Down
Loading