From 28ad8acfd2a4aac6ce98e88177701d48cdccaa1b Mon Sep 17 00:00:00 2001 From: Agent Date: Thu, 2 Apr 2026 07:58:39 +0000 Subject: [PATCH] fix: use port 3001 to avoid port conflicts --- .woodpecker/smoke-init.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.woodpecker/smoke-init.yml b/.woodpecker/smoke-init.yml index 5dc9567..77eeefd 100644 --- a/.woodpecker/smoke-init.yml +++ b/.woodpecker/smoke-init.yml @@ -31,11 +31,8 @@ steps: - name: smoke-init image: python:3-alpine commands: - - apk add --no-cache bash curl jq git coreutils procps - # Kill any existing mock server on port 3000 - - fuser -k 3000/tcp 2>/dev/null || true - - sleep 1 # wait for port to be released - - python3 tests/mock-forgejo.py & + - apk add --no-cache bash curl jq git + - MOCK_FORGE_PORT=3001 python3 tests/mock-forgejo.py & # Wait for mock to be ready - - for i in $(seq 1 30); do curl -sf http://localhost:3000/api/v1/version >/dev/null 2>&1 && break || sleep 1; done - - bash tests/smoke-init.sh + - for i in $(seq 1 30); do curl -sf http://localhost:3001/api/v1/version >/dev/null 2>&1 && break || sleep 1; done + - SMOKE_FORGE_URL=http://localhost:3001 bash tests/smoke-init.sh