Skip to content

Add trace logging and test timeout to diagnose CI hang #878

Add trace logging and test timeout to diagnose CI hang

Add trace logging and test timeout to diagnose CI hang #878

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Build
run: dotnet build Foundatio.AWS.slnx --configuration Release
- name: Start Services
run: docker compose up -d && docker compose up ready || true
- name: Wait for LocalStack
run: |
echo "Waiting for LocalStack to be ready..."
for i in {1..30}; do
if curl -s http://localhost:4566/_localstack/health | grep -q '"sqs": "running"'; then
echo "LocalStack SQS is ready"
break
fi
echo "Waiting... ($i/30)"
sleep 2
done
curl -s http://localhost:4566/_localstack/health || true
- name: Run Tests with Timeout
run: |
echo "Starting tests with 10 minute timeout..."
dotnet test Foundatio.AWS.slnx --configuration Release --no-build --timeout 10m --verbosity detailed 2>&1 || true
timeout-minutes: 12