Skip to content

Commit a6ea05b

Browse files
committed
show reprod directories in tarball overview
1 parent 549080f commit a6ea05b

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

bot/check-build.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,9 @@ if [[ $USE_CHECK_BUILD_ARTEFACTS_SCRIPT -eq 0 ]]; then
502502
# extract directories/entries from tarball content
503503
modules_entries=$(grep "${prefix}/modules" ${tmpfile})
504504
software_entries=$(grep "${prefix}/software" ${tmpfile})
505-
other_entries=$(cat ${tmpfile} | grep -v "${prefix}/modules" | grep -v "${prefix}/software")
505+
reprod_entries=$(grep "${prefix}/reprod" ${tmpfile})
506+
reprod_shortened=$(echo "{reprod_entries}" | sed -e "s@${prefix}/@@" | awk -F/ '{if (NR >= 4) {print $1 "/" $2 "/" $3 "/" $4}}' | sort -u)
507+
other_entries=$(cat ${tmpfile} | grep -v "${prefix}/modules" | grep -v "${prefix}/software" | grep -v "${prefix}/reprod")
506508
other_shortened=$(echo "${other_entries}" | sed -e "s@^.*${prefix}/@@" | sort -u)
507509
modules=$(echo "${modules_entries}" | grep "/all/.*/.*lua$" | sed -e 's@^.*/\([^/]*/[^/]*.lua\)$@\1@' | sort -u)
508510
software_pkgs=$(echo "${software_entries}" | sed -e "s@${prefix}/software/@@" | awk -F/ '{if (NR >= 2) {print $1 "/" $2}}' | sort -u)
@@ -531,6 +533,16 @@ if [[ $USE_CHECK_BUILD_ARTEFACTS_SCRIPT -eq 0 ]]; then
531533
comment_artifacts_list="${comment_artifacts_list}$(print_br_item '__ITEM__' 'no software packages in tarball')"
532534
fi
533535
comment_artifacts_list="${comment_artifacts_list}</pre>"
536+
comment_artifacts_list="${comment_artifacts_list}$(print_br_item 'reprod directories under ___ITEM___' ${prefix}/reprod)"
537+
comment_artifacts_list="${comment_artifacts_list}<pre>"
538+
if [[ ! -z ${reprod_shortened} ]]; then
539+
while IFS= read -r reprod ; do
540+
comment_artifacts_list="${comment_artifacts_list}$(print_br_item '<code>__ITEM__</code>' ${reprod})"
541+
done <<< "${reprod_shortened}"
542+
else
543+
comment_artifacts_list="${comment_artifacts_list}$(print_br_item '__ITEM__' 'no reprod directories in tarball')"
544+
fi
545+
comment_artifacts_list="${comment_artifacts_list}</pre>"
534546
comment_artifacts_list="${comment_artifacts_list}$(print_br_item 'other under ___ITEM___' ${prefix})"
535547
comment_artifacts_list="${comment_artifacts_list}<pre>"
536548
if [[ ! -z ${other_shortened} ]]; then

0 commit comments

Comments
 (0)