Skip to content

Commit 9db6c8d

Browse files
committed
wait for YB to start
1 parent 2041db8 commit 9db6c8d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,16 @@ jobs:
246246
-p 0:5433 -p 0:9042 \
247247
yugabytedb/yugabyte:2024.1.2.0-b77 bin/yugabyted start --daemon=false
248248
249+
- name: Wait for YugabyteDB to start
250+
run: |
251+
while true; do
252+
status=$(docker exec ${{ env.CONTAINER_NAME }} bin/yugabyted status);
253+
echo $status;
254+
echo $status | grep Running && break;
255+
sleep 1;
256+
done
257+
shell: bash
258+
249259
- name: Get the dynamically assigned ports
250260
id: get-ports
251261
run: |
@@ -259,11 +269,11 @@ jobs:
259269
260270
- name: Run tests
261271
env:
262-
CURIO_HARMONYDB_HOSTS: ${{ env.CONTAINER_NAME }} # Use the container's name for DB hosts
272+
#CURIO_HARMONYDB_HOSTS: ${{ env.CONTAINER_NAME }} # Use the container's name for DB hosts
263273
CURIO_HARMONYDB_PORT: ${{ steps.get-ports.outputs.postgres_port }} # Use the dynamically allocated PostgreSQL port
264274
CURIO_INDEXDB_PORT: ${{ steps.get-ports.outputs.ycql_port }} # Use the dynamically allocated YCQL port
265275
run: |
266-
echo "Using YugabyteDB Container Name: $CURIO_HARMONYDB_HOSTS"
276+
#echo "Using YugabyteDB Container Name: $CURIO_HARMONYDB_HOSTS"
267277
echo "Using Postgres Port: $CURIO_HARMONYDB_PORT"
268278
echo "Using YCQL Port: $CURIO_INDEXDB_PORT"
269279
# Run the tests using the YugabyteDB container

0 commit comments

Comments
 (0)