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 f924c06 commit 93f461e
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/ci-core-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
submodules: "recursive"
fetch-depth: 0

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y lsof
- name: Setup environment
run: |
echo ZKSYNC_HOME=$(pwd) >> $GITHUB_ENV
Expand Down Expand Up @@ -302,19 +307,18 @@ jobs:
- name: Shut down Era server (sends the kill command to all era zksync_server proccesses)
run: |
# 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
# Find the PID using ports 3071 or 3075
PIDS=$(lsof -ti :3071 -ti :3075)
# 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
- name: Initialize gateway chain
run: |
Expand Down

0 comments on commit 93f461e

Please sign in to comment.