Skip to content

Commit

Permalink
ci: test start mase failure
Browse files Browse the repository at this point in the history
  • Loading branch information
BlairCurrey committed Mar 11, 2025
1 parent cda0dbb commit c5e7a2d
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,21 @@ jobs:
run: pnpm --filter performance testenv:compose up --wait --build -d

- name: Start Mock Account Entity Services
run: pnpm --filter performance start-mases > mases.log 2>&1 &
run: |
pnpm --filter performance start-mases > mases.log 2>&1 &
MASES_PID=$!
sleep 5
if ! ps -p $MASES_PID > /dev/null; then
echo "Mock Account Entity Services failed to start. Check logs:"
cat mases.log
exit 1
fi
- name: Run performance tests
id: perf_test
run: |
pnpm --filter performance run-tests:testenv -k -q --vus 4 --duration 1m | tee performance.log
continue-on-error: true # Don't fail here, allows showing logs
# continue-on-error: true # Don't fail here, allows showing logs

- name: Print MASE logs
if: always()
Expand Down Expand Up @@ -281,9 +289,9 @@ jobs:
console.log("No PR detected, skipping comment.");
}
- name: Fail if performance tests failed
if: steps.perf_test.outcome == 'failure'
run: exit 1
# - name: Fail if performance tests failed
# if: steps.perf_test.outcome == 'failure'
# run: exit 1

node-build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit c5e7a2d

Please sign in to comment.