Skip to content

Commit

Permalink
Fail CI if any benches fail (#180)
Browse files Browse the repository at this point in the history
* Fail CI if any benches fail

* More types of traps

* remove intentional exit
  • Loading branch information
KShivendu authored Aug 7, 2024
1 parent 940c206 commit 5cfdb0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/run_ci.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ set -euo pipefail

function handle_err() {
echo "Error occured qdrant_version=${QDRANT_VERSION} engine_name=${ENGINE_NAME} dataset=${DATASETS}"
echo "{failed}={error}" >> $GITHUB_OUTPUT
echo "failed=error" >> $GITHUB_OUTPUT
}

function handle_term() {
echo "Timeout occured qdrant_version=${QDRANT_VERSION} engine_name=${ENGINE_NAME} dataset=${DATASETS}"
echo "{failed}={timeout}" >> $GITHUB_OUTPUT
echo "failed=timeout" >> $GITHUB_OUTPUT
}

trap 'handle_err' ERR
trap 'handle_err' ERR INT EXIT
trap 'handle_term' TERM

# Script, that runs benchmark within the GitHub Actions CI environment
Expand Down

0 comments on commit 5cfdb0b

Please sign in to comment.