Skip to content

Commit 6dffe8e

Browse files
committed
Add debugging statements to figure where the CI workflow is erroring
1 parent af085ba commit 6dffe8e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/stack_size.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
5454
sha256sum $bin
5555
done
5656
57+
echo "Verifying artifacts are equivalent"
58+
5759
sha256() {
5860
sha256sum "$1" | cut -d' ' -f1
5961
}
@@ -66,6 +68,8 @@ jobs:
6668
fi
6769
done
6870
71+
echo "Verified artifacts are equivalent"
72+
6973
read_stack() {
7074
STACK_INFO=$(readelf "$1" -l | grep STACK -A1)
7175
MEMSZ=$(echo "$STACK_INFO" | tail -n1 | sed -E s/^[[:space:]]*//g | cut -f2 -d' ')
@@ -77,15 +81,21 @@ jobs:
7781
exit 2
7882
fi
7983
84+
echo "Verified \`read_stack\` agrees the binary started with 0"
85+
8086
UPDATED_STACK=$(read_stack monerod-chelf)
8187
if [ "$UPDATED_STACK" -ne "$STACK" ]; then
8288
echo "Updated \`PT_GNU_STACK\` ($UPDATED_STACK) wasn't 8 MB ($STACK)"
8389
exit 3
8490
fi
8591
92+
echo "Verified \`read_stack\` agrees the binary's stack is now 8 MB"
93+
8694
# Only one byte should be different due to the bit pattern of 8 MB
8795
BYTES_DIFFERENT=$(cmp -l monerod monerod-chelf | wc -l)
8896
if [ "$BYTES_DIFFERENT" -ne 1 ]; then
8997
echo "More than one byte was different between the two binaries"
9098
exit 4
9199
fi
100+
101+
echo "Verified only a single byte is different between the two binaries"

0 commit comments

Comments
 (0)