#!/usr/bin/env bash # Runs the gate against the broken tokenizer and records what a failing CI job prints. set -uo pipefail cd "$(dirname "$0")/.." { echo "# mvn test -Dtest=GoldenSetGateTest -Drageval.retriever=bm25-lettersonly" echo mvn -B test -Dtest=GoldenSetGateTest -Drageval.retriever=bm25-lettersonly 2>&1 \ | grep -v -E "Picked up|^WARNING|^\[INFO\] (Download|Copying|Using|---|Nothing|Changes|Compiling)|Progress|^$" \ | sed -n '/Gate run/,/BUILD FAILURE/p' | grep -v -E "^\s+at |Time elapsed|^\[ERROR\] *$|Help 1|re-run Maven|full stack|For more information|-e switch|-X switch|^\[ERROR\] *\[Help" echo echo "exit status of mvn: non-zero (see BUILD FAILURE above)" } > output/08-ci-failure.txt cat output/08-ci-failure.txt