Skip to content
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
28b5abd
Upload FTR reports after each test config completes
maryam-saeidi Oct 6, 2025
4ab4097
temporary: pipeline adjustment
maryam-saeidi Oct 2, 2025
fc0e9cc
temporary: removing jest tests from CI
maryam-saeidi Oct 6, 2025
c2337f6
Add check-event scout command
maryam-saeidi Oct 6, 2025
3e1f974
Check for stats before and after running a config
maryam-saeidi Oct 6, 2025
072add6
Fix check-event env var
maryam-saeidi Oct 7, 2025
275255e
Fix check-event query
maryam-saeidi Oct 7, 2025
e0f86cb
temporary: reducing number of test files
maryam-saeidi Oct 7, 2025
ca195db
Refresh index before query
maryam-saeidi Oct 7, 2025
93fb1a4
Fix index
maryam-saeidi Oct 7, 2025
2489f1a
Skip config when there is already telemetry data
maryam-saeidi Oct 7, 2025
7b6416f
Fix logging
maryam-saeidi Oct 7, 2025
00287dd
Revert "temporary: reducing number of test files"
maryam-saeidi Oct 7, 2025
22a9fdf
Revert "temporary: removing jest tests from CI"
maryam-saeidi Oct 7, 2025
7ac1259
Revert "temporary: pipeline adjustment"
maryam-saeidi Oct 7, 2025
b53270c
Improve log messages
maryam-saeidi Oct 7, 2025
0300adf
Merge branch 'main' into improve-ftr-retry
maryam-saeidi Oct 8, 2025
3dc9673
Use BK metadata to check successful config execution and address revi…
maryam-saeidi Oct 9, 2025
ebfc43a
Add missing fi
maryam-saeidi Oct 9, 2025
e27c24c
Merge branch 'main' into improve-ftr-retry
maryam-saeidi Oct 9, 2025
75ab482
Add missing continue
maryam-saeidi Oct 9, 2025
507199c
Revert check-event cli command
maryam-saeidi Oct 9, 2025
c9e4e0c
Revert scout_upload_report_events.sh changes
maryam-saeidi Oct 9, 2025
2f6bf4e
Merge branch 'main' into improve-ftr-retry
maryam-saeidi Oct 9, 2025
6f21b5c
Suppress metadata warning
maryam-saeidi Oct 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 35 additions & 5 deletions .buildkite/scripts/steps/test/ftr_configs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,16 @@ while read -r config; do
fi

FULL_COMMAND="node scripts/functional_tests --bail --config $config $EXTRA_ARGS"
echo "--- $ $FULL_COMMAND"

CONFIG_EXECUTION_KEY="${config}_executed"
IS_CONFIG_EXECUTION=$(buildkite-agent meta-data get "$CONFIG_EXECUTION_KEY" --default "false" --log-level error)

if [[ "${IS_CONFIG_EXECUTION}" == "true" ]]; then
echo "--- [ already-tested ] $FULL_COMMAND"
continue
else
echo "--- $ $FULL_COMMAND"
fi

start=$(date +%s)

Expand All @@ -80,6 +89,27 @@ while read -r config; do
lastCode=$?
set -e;

# Scout reporter
REPORT_DIR=$(ls -td .scout/reports/scout-ftr-*/ 2>/dev/null | head -n 1)
if [ -n "$REPORT_DIR" ]; then
EVENT_LOG_FILE="${REPORT_DIR}event-log.ndjson"
if [ -f "$EVENT_LOG_FILE" ]; then
# Upload events after running each config
echo "Upload Scout reporter events to AppEx QA's team cluster for config $config"
if [[ "${SCOUT_REPORTER_ENABLED:-}" == "true" ]]; then
node scripts/scout upload-events --dontFailOnError --eventLogPath "$EVENT_LOG_FILE"
else
echo "⚠️ The SCOUT_REPORTER_ENABLED environment variable is not 'true'. Skipping event upload."
fi
else
echo "❌ Could not find event log file '$EVENT_LOG_FILE' for config $config"
buildkite-agent annotate --style 'warning' --context 'scout-reporter' "Could not find event log file for config \`$config\`."
fi
else
echo "❌ Could not find any scout report directory '$REPORT_DIR'."
buildkite-agent annotate --style 'warning' --context 'scout-reporter' "Could not find any scout report directory \`$REPORT_DIR\`."
fi

timeSec=$(($(date +%s)-start))
if [[ $timeSec -gt 60 ]]; then
min=$((timeSec/60))
Expand All @@ -93,7 +123,10 @@ while read -r config; do
duration: ${duration}
result: ${lastCode}")

if [ $lastCode -ne 0 ]; then
if [ $lastCode -eq 0 ]; then
# Test was successful, so mark it as executed
buildkite-agent meta-data set "$CONFIG_EXECUTION_KEY" "true"
else
exitCode=10
echo "FTR exited with code $lastCode"
echo "^^^ +++"
Expand All @@ -114,7 +147,4 @@ echo "--- FTR configs complete"
printf "%s\n" "${results[@]}"
echo ""

# Scout reporter
source .buildkite/scripts/steps/test/scout_upload_report_events.sh

exit $exitCode