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 bbf7ab2 commit f924c06
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/ci-core-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,19 @@ jobs:
- name: Shut down Era server (sends the kill command to all era zksync_server proccesses)
run: |
# Find the PID using ports 3071 or 3075 using netstat
PIDS=$(netstat -tuln | grep -E ':3071|:3075' | awk '{print $7}' | cut -d'/' -f1)
# If any PIDs are found, kill them
if [ -n "$PIDS" ]; then
echo "Killing process(es) on ports 3071 or 3075 with PID(s): $PIDS"
for PID in $PIDS; do
kill -9 "$PID" || true # Use SIGKILL to ensure termination
done
else
echo "No processes found on ports 3071 or 3075."
fi
# Check if ports 3071 or 3075 are occupied
for PORT in 3071 3075; do
nc -z localhost $PORT
if [ $? -eq 0 ]; then
PID=$(lsof -ti :$PORT)
if [ -n "$PID" ]; then
echo "Killing process on port $PORT with PID: $PID"
kill -9 "$PID" || true
fi
else
echo "Port $PORT is not occupied."
fi
done
- name: Initialize gateway chain
run: |
Expand Down

0 comments on commit f924c06

Please sign in to comment.