Skip to content

Commit 67cec70

Browse files
committed
e2e: Ensure e2e.test is built with portable BLST
PR #1714 factored ANR installation into a common script, but in the process removed the CGO configuration for BLST from tests.e2e.sh. The result was sporadic e2e job failure whenever the github worker vm was missing the instructions non-portable BLST required. Ensuring CGO is explicitly configured for portable BLST in tests.e2e.sh should ensure the e2e test binary can once again be built reliably.
1 parent febd3b5 commit 67cec70

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/tests.e2e.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ echo "installing avalanche-network-runner"
2323
ANR_WORKDIR="/tmp"
2424
./scripts/install_anr.sh
2525

26+
27+
# Sourcing constants.sh ensures that the necessary CGO flags are set to
28+
# build the portable version of BLST. Without this, ginkgo may fail to
29+
# build the test binary if run on a host (e.g. github worker) that lacks
30+
# the instructions to build a non-portable BLST.
31+
source ./scripts/constants.sh
32+
2633
#################################
2734
echo "building e2e.test"
2835
# to install the ginkgo binary (required for test build and run)

0 commit comments

Comments
 (0)