Skip to content

Commit

Permalink
adding while loop
Browse files Browse the repository at this point in the history
  • Loading branch information
gzukel committed Mar 26, 2024
1 parent 6093fcd commit 48995fc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/execute_advanced_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,38 @@ jobs:
run: |
make start-e2e-admin-test
# Loop indefinitely until no containers are running
while true; do
# Get the IDs of all running containers
running_containers=$(docker ps -q)
# If no containers are running, exit the loop
if [ -z "$running_containers" ]; then
echo "No running containers. Exiting..."
break
fi
# For each running container, check if it has stopped and log its output
for container_id in $running_containers; do
# Check if the specific container is still running
if [ -z "$(docker ps -q | grep $container_id)" ]; then
# Since the container has stopped, fetch and display its logs
echo "Container $container_id has stopped. Fetching logs:"
docker logs $container_id
echo "-----------------------------------"
fi
done
# Show the current state of running containers
echo "Current running containers:"
docker ps
# Wait a bit before checking again
sleep 5
done
echo "All containers have stopped."
e2e-upgrade-test:
if: ${{ github.event.inputs.e2e-upgrade-test == 'true' }}
runs-on: buildjet-4vcpu-ubuntu-2204
Expand Down
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
* [1814](https://github.com/zeta-chain/node/pull/1814) - fix code coverage ignore for protobuf generated files

### CI
* [1940](https://github.com/zeta-chain/node/pull/1940) - update advanced testing pipeline to not execute tests that weren't selected so they show skipped instead of skipping steps.
* [1945](https://github.com/zeta-chain/node/pull/1945) - update advanced testing pipeline to not execute tests that weren't selected so they show skipped instead of skipping steps.
* [1940](https://github.com/zeta-chain/node/pull/1940) - adjust release pipeline to be created as pre-release instead of latest
* [1867](https://github.com/zeta-chain/node/pull/1867) - default restore_type for full node docker-compose to snapshot instead of statesync for reliability.
* [1891](https://github.com/zeta-chain/node/pull/1891) - fix typo that was introduced to docker-compose and a typo in start.sh for the docker start script for full nodes.
Expand Down

0 comments on commit 48995fc

Please sign in to comment.