Annotate testnet buildkite logs with blockexplorer URL (#3964)
automerge
This commit is contained in:
parent
1661a7a55f
commit
3eed6a6090
18
net/net.sh
18
net/net.sh
|
@ -181,6 +181,20 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
annotate() {
|
||||||
|
${BUILDKITE:-false} && {
|
||||||
|
buildkite-agent annotate "$@"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
annotateBlockexplorerUrl() {
|
||||||
|
declare blockstreamer=${blockstreamerIpList[0]}
|
||||||
|
|
||||||
|
if [[ -n $blockstreamer ]]; then
|
||||||
|
annotate --style info --context blockexplorer-url "Block explorer: http://$blockstreamer/"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
supported=("18.04")
|
supported=("18.04")
|
||||||
declare MAYBE_DOCKER=
|
declare MAYBE_DOCKER=
|
||||||
|
@ -332,6 +346,8 @@ sanity() {
|
||||||
declare bootstrapLeader=${fullnodeIpList[0]}
|
declare bootstrapLeader=${fullnodeIpList[0]}
|
||||||
declare blockstreamer=${blockstreamerIpList[0]}
|
declare blockstreamer=${blockstreamerIpList[0]}
|
||||||
|
|
||||||
|
annotateBlockexplorerUrl
|
||||||
|
|
||||||
echo "--- Sanity: $bootstrapLeader"
|
echo "--- Sanity: $bootstrapLeader"
|
||||||
(
|
(
|
||||||
set -x
|
set -x
|
||||||
|
@ -462,6 +478,8 @@ start() {
|
||||||
$metricsWriteDatapoint "testnet-deploy net-fullnodes-started=1"
|
$metricsWriteDatapoint "testnet-deploy net-fullnodes-started=1"
|
||||||
additionalNodeDeployTime=$SECONDS
|
additionalNodeDeployTime=$SECONDS
|
||||||
|
|
||||||
|
annotateBlockexplorerUrl
|
||||||
|
|
||||||
if $updateNodes; then
|
if $updateNodes; then
|
||||||
for ipAddress in "${clientIpList[@]}"; do
|
for ipAddress in "${clientIpList[@]}"; do
|
||||||
stopNode "$ipAddress"
|
stopNode "$ipAddress"
|
||||||
|
|
Loading…
Reference in New Issue