Skip to content

Commit

Permalink
Merge pull request #126 from Agoric/93-port-debugging
Browse files Browse the repository at this point in the history
chore: remove netstat debugging
  • Loading branch information
turadg authored Apr 19, 2024
2 parents 5b8e92f + 1a0becb commit cf9e09c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/notify-status/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runs:
from: ${{ inputs.from }}
- name: Send GitHub trigger payload
id: slack
uses: slackapi/slack-github-action@v1.24.0
uses: slackapi/slack-github-action@v1
with:
payload: |
{
Expand Down
25 changes: 22 additions & 3 deletions packages/synthetic-chain/public/upgrade-test-scripts/env_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,31 @@ if [[ "$binary" == "agd" ]]; then
sed -i 's/minSubmissionCount": 3/minSubmissionCount": 1/g' "$configdir"/*.json
fi

# XXX race conditions between build stages
await_agd_startable() {
local retries="$1"

local wait="10s"

if agd status >/dev/null 2>&1; then
# agd is running
if [[ $retries -gt 0 ]]; then
echo "Waiting $wait for agd to stop"
sleep $wait

await_agd_startable $((retries - 1))
else
echo "Cannot start agd because it's already running"
return 1
fi
fi
}

startAgd() {
echo "startAgd()"

# XXX debugging https://github.com/Agoric/agoric-3-proposals/issues/93
apt install net-tools
netstat
# precondition check
await_agd_startable 10

agd start --log_level warn "$@" &
AGD_PID=$!
Expand Down

0 comments on commit cf9e09c

Please sign in to comment.