@@ -53,16 +53,7 @@ while read -r config; do
5353 fi
5454
5555 FULL_COMMAND=" node scripts/functional_tests --bail --config $config $EXTRA_ARGS "
56-
57- CONFIG_EXECUTION_KEY=" ${config} _executed"
58- IS_CONFIG_EXECUTION=$( buildkite-agent meta-data get " $CONFIG_EXECUTION_KEY " --default " false" --log-level error)
59-
60- if [[ " ${IS_CONFIG_EXECUTION} " == " true" ]]; then
61- echo " --- [ already-tested ] $FULL_COMMAND "
62- continue
63- else
64- echo " --- $ $FULL_COMMAND "
65- fi
56+ echo " --- $ $FULL_COMMAND "
6657
6758 start=$( date +%s)
6859
@@ -89,27 +80,6 @@ while read -r config; do
8980 lastCode=$?
9081 set -e;
9182
92- # Scout reporter
93- REPORT_DIR=$( ls -td .scout/reports/scout-ftr-* / 2> /dev/null | head -n 1)
94- if [ -n " $REPORT_DIR " ]; then
95- EVENT_LOG_FILE=" ${REPORT_DIR} event-log.ndjson"
96- if [ -f " $EVENT_LOG_FILE " ]; then
97- # Upload events after running each config
98- echo " Upload Scout reporter events to AppEx QA's team cluster for config $config "
99- if [[ " ${SCOUT_REPORTER_ENABLED:- } " == " true" ]]; then
100- node scripts/scout upload-events --dontFailOnError --eventLogPath " $EVENT_LOG_FILE "
101- else
102- echo " ⚠️ The SCOUT_REPORTER_ENABLED environment variable is not 'true'. Skipping event upload."
103- fi
104- else
105- echo " ❌ Could not find event log file '$EVENT_LOG_FILE ' for config $config "
106- buildkite-agent annotate --style ' warning' --context ' scout-reporter' " Could not find event log file for config \` $config \` ."
107- fi
108- else
109- echo " ❌ Could not find any scout report directory '$REPORT_DIR '."
110- buildkite-agent annotate --style ' warning' --context ' scout-reporter' " Could not find any scout report directory \` $REPORT_DIR \` ."
111- fi
112-
11383 timeSec=$(( $(date +% s)- start))
11484 if [[ $timeSec -gt 60 ]]; then
11585 min=$(( timeSec/ 60 ))
@@ -123,10 +93,7 @@ while read -r config; do
12393 duration: ${duration}
12494 result: ${lastCode} " )
12595
126- if [ $lastCode -eq 0 ]; then
127- # Test was successful, so mark it as executed
128- buildkite-agent meta-data set " $CONFIG_EXECUTION_KEY " " true"
129- else
96+ if [ $lastCode -ne 0 ]; then
13097 exitCode=10
13198 echo " FTR exited with code $lastCode "
13299 echo " ^^^ +++"
@@ -147,4 +114,7 @@ echo "--- FTR configs complete"
147114printf " %s\n" " ${results[@]} "
148115echo " "
149116
117+ # Scout reporter
118+ source .buildkite/scripts/steps/test/scout_upload_report_events.sh
119+
150120exit $exitCode
0 commit comments