File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Env: REF_NAME=${REF_NAME:-} CURRENT_VERSION=${CURRENT_VERSION:-} CI_FULL=${CI_FU
3636Date: $( date)
3737System: ARCH=$( arch) CPUS=$( nproc --all) MEM=$( free -h | awk ' /^Mem:/{print $2}' ) HOSTNAME=$( hostname)
3838Resources: CPU_LIST=$CPU_LIST CPUS=$CPUS MEM=$MEM TIMEOUT=$TIMEOUT
39- History: $DASHBOARD_URL /list/history_$test_hash ${TARGET_BRANCH: +_$TARGET_BRANCH }
39+ History: $DASHBOARD_URL /list/history_$test_hash ${TARGET_BRANCH: +_${ TARGET_BRANCH// \/ / _} }
4040
4141EOF
4242
Original file line number Diff line number Diff line change @@ -236,8 +236,10 @@ function track_test {
236236 redis_cli LTRIM $list_key 0 $max_lines & > /dev/null
237237}
238238
239+ # Slashes in TARGET_BRANCH (e.g. merge-train/spartan) are replaced with underscores
240+ # so the key is safe to embed in the /list/<key> dashboard URL.
239241function track_test_history {
240- track_test " history_${test_hash}${TARGET_BRANCH: +_$TARGET_BRANCH } " " $1 " ${2:- }
242+ track_test " history_${test_hash}${TARGET_BRANCH: +_${ TARGET_BRANCH// \/ / _} } " " $1 " ${2:- }
241243}
242244
243245function track_test_failed {
You can’t perform that action at this time.
0 commit comments