File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -403,7 +403,11 @@ def show_section(section):
403403 follow = 'top'
404404 )
405405
406- @app .route ('/list/<key>' )
406+ # <path:key> (not <key>) so branch-qualified history keys like
407+ # `history_<hash>_merge-train/spartan` route correctly. WSGI decodes %2F to /
408+ # in PATH_INFO before Flask routes, so percent-encoding can't rescue a plain
409+ # <key> converter — only <path:key> matches segments containing /.
410+ @app .route ('/list/<path:key>' )
407411@optional_auth
408412def get_list (key ):
409413 value = get_list_as_string (key )
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,10 +236,8 @@ 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.
241239function track_test_history {
242- track_test " history_${test_hash}${TARGET_BRANCH: +_${ TARGET_BRANCH// \/ / _} } " " $1 " ${2:- }
240+ track_test " history_${test_hash}${TARGET_BRANCH: +_$TARGET_BRANCH } " " $1 " ${2:- }
243241}
244242
245243function track_test_failed {
You can’t perform that action at this time.
0 commit comments