Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/merge-train-stale-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
run: ./ci3/merge_train_stale_check merge-train/spartan '#team-alpha'
run: ./ci3/merge_train_stale_check merge-train/spartan '#team-alpha-ci'

spartan-v5:
name: Check merge-train/spartan-v5
Expand All @@ -36,7 +36,7 @@ jobs:
GH_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
BASE_BRANCH: v5-next
run: ./ci3/merge_train_stale_check merge-train/spartan-v5 '#team-alpha'
run: ./ci3/merge_train_stale_check merge-train/spartan-v5 '#team-alpha-ci'

fairies-v5:
name: Check merge-train/fairies-v5
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/network-healthcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
5. Any errors (level >= 50) or warnings (level 40) in the last 8 hours
6. Bot status if applicable

Create a gist with the full healthcheck report. Then post a concise summary to the #team-alpha channel via respond_to_user. Flag anything that needs attention (stopped bots, missed slots, errors, low peer counts).
Create a gist with the full healthcheck report. Then post a concise summary to the #team-alpha-ci channel via respond_to_user. Flag anything that needs attention (stopped bots, missed slots, errors, low peer counts).

Format the respond_to_user message as a brief network status overview, e.g.:
- testnet: healthy, block 5570, 100 peers
- mainnet: healthy, block 1234, 50 peers
- devnet: WARNING - bot stopped (insufficient balance)
Link to the gist for full details."

./ci3/slack_notify_with_claudebox_kickoff "#team-alpha" \
./ci3/slack_notify_with_claudebox_kickoff "#team-alpha-ci" \
"Starting network healthcheck for: ${NETWORKS}" \
"$PROMPT"
4 changes: 2 additions & 2 deletions ci3/merge_train_failure_slack_notify
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ elif [[ "$REF_NAME" == "merge-train/fairies" ]]; then
elif [[ "$REF_NAME" == "merge-train/fairies-v5" ]]; then
channel="#team-fairies"
elif [[ "$REF_NAME" == "merge-train/spartan" ]]; then
channel="#team-alpha"
channel="#team-alpha-ci"
elif [[ "$REF_NAME" == "merge-train/spartan-v5" ]]; then
channel="#team-alpha"
channel="#team-alpha-ci"
else
exit 0
fi
Expand Down
2 changes: 1 addition & 1 deletion ci3/merge_train_stale_check
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Usage: merge_train_stale_check <merge-train-branch> <slack-channel>
#
# Example:
# merge_train_stale_check merge-train/spartan '#team-alpha'
# merge_train_stale_check merge-train/spartan '#team-alpha-ci'
#
# Required env vars:
# GH_TOKEN — GitHub API token (used by `gh api`)
Expand Down
14 changes: 12 additions & 2 deletions ci3/slack_notify
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@ fi
channel=${2:-"#aztec3-ci"}
data=$(jq -n --arg channel "$channel" --arg text "$1" '{channel: $channel, text: $text}')

curl -X POST https://slack.com/api/chat.postMessage \
# Post to Slack, capturing the API response. Previously the response went to
# /dev/null, so a failed post (most commonly the bot not being a member of the
# target channel -> "not_in_channel", or an invalid channel/token) vanished with
# no trace and could not be troubleshooted. Surface any failure in the CI log.
# Best-effort: log the failure but do not fail the caller.
response=$(curl -sS -X POST https://slack.com/api/chat.postMessage \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-type: application/json" \
--data "$data" &>/dev/null
--data "$data" 2>&1)

if [ "$(jq -r '.ok // false' <<<"$response" 2>/dev/null)" != "true" ]; then
error=$(jq -r '.error // empty' <<<"$response" 2>/dev/null)
echo "slack_notify: failed to post to Slack channel '$channel': ${error:-$response}" >&2
fi
2 changes: 1 addition & 1 deletion scripts/socket-fix-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ ${LINKS}"
${LINKS}"
fi

data=$(jq -n --arg channel "#team-alpha" --arg text "$TEXT" '{channel: $channel, text: $text}')
data=$(jq -n --arg channel "#team-alpha-ci" --arg text "$TEXT" '{channel: $channel, text: $text}')

curl -X POST https://slack.com/api/chat.postMessage \
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
Expand Down
Loading