Skip to content

Commit 5cfdb0b

Browse files
authored
Fail CI if any benches fail (qdrant#180)
* Fail CI if any benches fail * More types of traps * remove intentional exit
1 parent 940c206 commit 5cfdb0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/run_ci.sh

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ set -euo pipefail
55

66
function handle_err() {
77
echo "Error occured qdrant_version=${QDRANT_VERSION} engine_name=${ENGINE_NAME} dataset=${DATASETS}"
8-
echo "{failed}={error}" >> $GITHUB_OUTPUT
8+
echo "failed=error" >> $GITHUB_OUTPUT
99
}
1010

1111
function handle_term() {
1212
echo "Timeout occured qdrant_version=${QDRANT_VERSION} engine_name=${ENGINE_NAME} dataset=${DATASETS}"
13-
echo "{failed}={timeout}" >> $GITHUB_OUTPUT
13+
echo "failed=timeout" >> $GITHUB_OUTPUT
1414
}
1515

16-
trap 'handle_err' ERR
16+
trap 'handle_err' ERR INT EXIT
1717
trap 'handle_term' TERM
1818

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

0 commit comments

Comments
 (0)