ci: run perf asserts in CI (backend quality & benchmark jobs)

This commit is contained in:
GitHub Actions
2025-12-04 20:58:18 +00:00
parent 05cb8046d6
commit cecf0ef9d6
5 changed files with 705 additions and 3 deletions

View File

@@ -50,3 +50,14 @@ jobs:
fail-on-alert: false
# Enable Job Summary for PRs
summary-always: true
- name: Run Perf Asserts
working-directory: backend
env:
PERF_MAX_MS_GETSTATUS_P95: 500ms
PERF_MAX_MS_GETSTATUS_P95_PARALLEL: 1500ms
PERF_MAX_MS_LISTDECISIONS_P95: 2000ms
run: |
echo "## 🔍 Running performance assertions (TestPerf)" >> $GITHUB_STEP_SUMMARY
go test -run TestPerf -v ./internal/api/handlers -count=1 | tee perf-output.txt
exit ${PIPESTATUS[0]}