SERVER-125626: Explicitly set build events path when inside tests (#52743)

GitOrigin-RevId: 943df5f47e9d7c59e0e4ff2d54fa3bd3bb79d0fc
This commit is contained in:
Sean Lyons 2026-04-28 11:05:47 -04:00 committed by MongoDB Bot
parent bddf22879c
commit 2da3d58c36
2 changed files with 3 additions and 2 deletions

View File

@ -67,6 +67,7 @@ export ENGFLOW_KEY="${workdir}/src/engflow.key"
export ENGFLOW_CERT="${workdir}/src/engflow.cert"
export workdir="$TEMP_DIR" # Change workdir so the script downloads outputs to the temporary dir, rather than task workdir.
export test_label="$TEST_TARGET"
export BEP_FILE="build_events.json"
bash ./evergreen/fetch_remote_test_results.sh
echo ""
unset workdir # Unset workdir, it's a default Evergreen expansion that might confuse a later script.

View File

@ -4,7 +4,7 @@
# bash fetch_remote_test_results.sh
#
# Assumes the following files exist:
# ./src/"build_events.json" Build events JSON containing the records of remote test executions
# ./src/"build_events.json" (or set path in $BEP_FILE) Build events JSON containing the records of remote test executions
# engflow.cert and engflow.key located in either ${workdir}/src or ${HOME}/.engflow/creds
#
# Required environment variables:
@ -285,7 +285,7 @@ function resolve_file() {
return 1
}
BEP_FILE='src/build_events.json'
BEP_FILE="${BEP_FILE:-src/build_events.json}"
if ! [ -f "$ENGFLOW_CERT" ]; then
cert_candidates=(