Skip to content

Commit

Permalink
(fix): test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Raid Ateir committed Oct 23, 2024
1 parent fe16190 commit 7364f73
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci-core-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ jobs:
- name: Shut down Era server (sends the kill command to all era zksync_server proccesses)
run: |
# Allow script to continue even if a command fails
set +e
# Find all processes in the same group as ERA_PID
PIDS=$(pgrep -g $(ps -o pgid= $ERA_PID))
Expand All @@ -324,13 +327,26 @@ jobs:
if [ ${#PIDS_ARRAY[@]} -gt 0 ]; then
echo "Killing PIDs: ${PIDS_ARRAY[*]}"
for PID in "${PIDS_ARRAY[@]}"; do
kill -2 "$PID" # Sends SIGINT to gracefully terminate each related process
kill -2 "$PID" || true # Sends SIGINT to gracefully terminate each related process
done
# # Give processes a moment to terminate
# sleep 5
# # Check if any processes are still running and force kill if needed
# REMAINING_PIDS=$(pgrep -g $(ps -o pgid= $ERA_PID))
# if [ -n "$REMAINING_PIDS" ]; then
# echo "Force killing remaining PIDs: $REMAINING_PIDS"
# kill -9 $REMAINING_PIDS || true
# fi
else
echo "No processes found in the same group as ERA_PID: $ERA_PID"
fi
# Ensure the script exits successfully even if the processes were terminated
# Restore error handling
set -e
# Ensure the script exits successfully
exit 0
- name: Initialize gateway chain
Expand Down

0 comments on commit 7364f73

Please sign in to comment.