Skip to content

Commit a5895c7

Browse files
committed
remove the prefix
1 parent bac6795 commit a5895c7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/slowest_tests/update-slowest-times-issue.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ function skip_job() {
2828
return 1
2929
}
3030

31+
# Remove common prefix from the name
32+
function remove_prefix() {
33+
name=$1
34+
echo $name | sed -e 's/^ubuntu-latest test py3.12 : fast-compile 0 : float32 0 : //'
35+
}
36+
3137
all_times=""
3238
echo "$jobs" | jq -c '.[]' | while read -r job; do
3339
id=$(echo $job | jq -r '.id')
@@ -50,6 +56,8 @@ echo "$jobs" | jq -c '.[]' | while read -r job; do
5056

5157
echo $times
5258

59+
name=$(remove_prefix $name)
60+
5361
top="<details><summary>$name</summary>\n\n\n\`\`\`"
5462
bottom="\`\`\`\n\n</details>"
5563

0 commit comments

Comments
 (0)