Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/eval.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Run build
run: pnpm build
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
smoke-tests:
name: Run Smoke Tests Against Local Server
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -42,8 +42,8 @@ jobs:
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

Expand All @@ -55,7 +55,7 @@ jobs:
WRANGLER_PID=$!
echo "WRANGLER_PID=$WRANGLER_PID" >> $GITHUB_ENV
echo "Waiting for server to start (PID: $WRANGLER_PID)..."

# Wait for server to be ready (up to 2 minutes)
MAX_ATTEMPTS=24
ATTEMPT=0
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
ATTEMPT=$((ATTEMPT+1))
sleep 5
done

if [ $ATTEMPT -eq $MAX_ATTEMPTS ]; then
echo "❌ Server failed to start after $MAX_ATTEMPTS attempts"
echo "📋 Full wrangler.log:"
Expand All @@ -99,22 +99,22 @@ jobs:
working-directory: packages/smoke-tests
run: |
echo "🧪 Running smoke tests against local server at $PREVIEW_URL"

# Give server a bit more time to stabilize after startup
echo "⏳ Waiting 5 seconds for server to stabilize..."
sleep 5

# Verify server is still responding before running tests
if ! curl -s -f -o /dev/null http://localhost:8788/; then
echo "❌ Server is not responding before tests!"
echo "📋 Wrangler log:"
cat ../mcp-cloudflare/wrangler.log
exit 1
fi

echo "✅ Server is responding, running tests..."
pnpm test:ci || TEST_EXIT_CODE=$?

# If tests failed, show server logs for debugging
if [ "${TEST_EXIT_CODE:-0}" -ne 0 ]; then
echo "❌ Tests failed with exit code ${TEST_EXIT_CODE}"
Expand All @@ -136,4 +136,4 @@ jobs:
run: |
if [ ! -z "$WRANGLER_PID" ]; then
kill $WRANGLER_PID || true
fi
fi
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Run build
run: pnpm build

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/token-cost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
run: pnpm install --frozen-lockfile

- name: Build tool definitions
run: pnpm -w run build
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
workflow: token-cost.yml
branch: main
name_is_regexp: true
name: 'token-stats-.*'
name: "token-stats-.*"
path: main-stats
search_artifacts: true

Expand Down
Loading