Re-enable API benchmark script in CI
Summary
Re-enable the API benchmark script that was disabled in September 2024 (MR !717 (merged)).
Status: Pipeline still failing with script_failure despite all tests passing. Needs further investigation.
Changes Made
-
c1e9fea2 - Re-enabled the
api-benchmark-scriptthat was commented out during PostgREST migration -
62dd9535 - Added conditional check to skip
csv-report-parserifbenchmark.csvdoesn't exist (PostgREST doesn't support server-side timing) -
7dae2b1a - Fixed
$HIVEMIND_BENCHMARKS_IDS_FILEvariable reference, reduced iterations from 5 to 1
Investigation Findings
- All benchmark tests pass (JUnit shows
failures="0") -
benchmark.csvis never created because PostgREST doesn't support request timing - Script still fails despite tests passing
Recommendations
To unblock:
- Remove
set -etemporarily to identify failing command - Check job trace in GitLab web UI for actual error
Long-term:
- Update
tavern-time-requestlibrary to record full round-trip timing - Consider if benchmarks are still valuable without server-side timing
- Alternative: use PostgreSQL
log_min_duration_statementfor timing
Files Modified
scripts/ci/start-api-benchmarks.sh
Edited by Dan Notestein