Skip to content

Commit 6d25cdb

Browse files
dbanks12claude
andcommitted
feat: aztec-kit nightly bump via claudebox dispatch
Add aztec-kit-nightly-bump.yml triggered by Deploy Next Net success. Extend slack_notify_with_claudebox_kickoff with --group, slack_channel, and slack_thread_ts forwarding. Add corresponding inputs to claudebox.yml. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 74b28b6 commit 6d25cdb

3 files changed

Lines changed: 64 additions & 1 deletion

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Aztec Kit Nightly Bump
2+
on:
3+
workflow_run:
4+
workflows: ["Deploy Next Net"]
5+
types: [completed]
6+
7+
jobs:
8+
bump:
9+
if: github.event.workflow_run.conclusion == 'success'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Wait for next-net readiness
15+
run: |
16+
URL="https://next-net.aztec.network:8080"
17+
for i in $(seq 1 20); do
18+
if curl -fsSL --max-time 10 -o /dev/null "$URL" 2>/dev/null; then
19+
echo "next-net is responding"
20+
sleep 30
21+
exit 0
22+
fi
23+
echo "Attempt $i: next-net not ready, retrying in 15s..."
24+
sleep 15
25+
done
26+
echo "::error::next-net not ready within 5 minutes"
27+
exit 1
28+
29+
- name: Trigger nightly bump
30+
env:
31+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
32+
GH_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
33+
run: |
34+
DEPLOY_RUN="${{ github.event.workflow_run.html_url }}"
35+
36+
"$GITHUB_WORKSPACE/ci3/slack_notify_with_claudebox_kickoff" \
37+
"C07R3GTKJ49" \
38+
":rocket: Nightly v5 deploy to next-net succeeded (<${DEPLOY_RUN}|deploy run>). Driving the aztec-kit bump." \
39+
"Deploy-next-net succeeded (run: ${DEPLOY_RUN}). Bump aztec-labs-eng/aztec-kit:
40+
41+
1. Clone aztec-labs-eng/aztec-kit, branch cb/nightly-bump-\$(date -u +%Y%m%d).
42+
2. Export L1 key: test -f \"\$L1_FUNDER_KEY_FILE\" && export L1_FUNDER_KEY=\"\$(cat \"\$L1_FUNDER_KEY_FILE\")\". Stop if missing.
43+
3. Bump: SHELL=/bin/bash CI=1 node scripts/update.js. Commit as chore(nightly): bump @aztec/* to <version>.
44+
4. yarn workspace @aztec-kit/e2e exec playwright install chromium && yarn format && yarn build && yarn test. Amend format changes into bump commit. If bcrypto fails: (cd \"\$HOME/.aztec/versions/<ver>\" && npm rebuild bcrypto --foreground-scripts).
45+
5. (Failure only) Read migration_notes.md from AztecProtocol/aztec-packages next. Fix and commit separately as fix(migration): adapt to <version>.
46+
6. yarn setup:nextnet to deploy contracts. SponsoredFPC is NOT deployed by scripts — ignore it.
47+
7. Open PR against main with label claudebox. Include deploy run link, version, contract addresses. Never include L1_FUNDER_KEY.
48+
8. Return PR URL as final response.
49+
50+
Use create_pr/update_pr MCP tools with repo=aztec-labs-eng/aztec-kit. Call session_status between steps." \
51+
--group "aztec-kit-nightly"

.github/workflows/claudebox.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
description: 'Git ref the session should work against (e.g., origin/merge-train/barretenberg)'
2020
required: false
2121
type: string
22+
group:
23+
description: 'Cloxy group name'
24+
required: false
25+
type: string
2226
slack_channel:
2327
description: 'Slack channel ID to thread status into (set by the kickoff script)'
2428
required: false
@@ -127,6 +131,7 @@ jobs:
127131
REPO: ${{ github.repository }}
128132
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
129133
AUTHOR: ${{ github.event.comment.user.login || github.actor }}
134+
CLAUDEBOX_GROUP: ${{ inputs.group || '' }}
130135
SLACK_CHANNEL: ${{ inputs.slack_channel || '' }}
131136
SLACK_THREAD_TS: ${{ inputs.slack_thread_ts || '' }}
132137
run: |
@@ -143,9 +148,11 @@ jobs:
143148
--arg repo "$REPO" \
144149
--arg run_url "$RUN_URL" \
145150
--arg link "$CLAUDEBOX_LINK" \
151+
--arg group "$CLAUDEBOX_GROUP" \
146152
--arg slack_channel "$SLACK_CHANNEL" \
147153
--arg slack_thread_ts "$SLACK_THREAD_TS" \
148154
'{prompt: $prompt, user: $user, repo: $repo, run_url: $run_url, link: $link, slack_channel: $slack_channel, slack_thread_ts: $slack_thread_ts}
155+
+ (if $group != "" then {group: $group} else {} end)
149156
+ (if $comment_id != "" then {comment_id: ($comment_id | tonumber)} else {} end)
150157
+ (if $run_comment_id != "" then {run_comment_id: ($run_comment_id | tonumber)} else {} end)')
151158

ci3/slack_notify_with_claudebox_kickoff

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -eu
33
# Post a Slack notification and dispatch ClaudeBox to investigate.
44
#
5-
# Usage: slack_notify_with_claudebox_kickoff <channel> <slack_text> <claudebox_prompt> [--link <url>] [--target-ref <ref>]
5+
# Usage: slack_notify_with_claudebox_kickoff <channel> <slack_text> <claudebox_prompt> [--link <url>] [--target-ref <ref>] [--group <name>]
66
#
77
# Requires: SLACK_BOT_TOKEN
88
# Optional: CLAUDEBOX_REPO (default: AztecProtocol/aztec-packages)
@@ -21,10 +21,12 @@ shift 3
2121

2222
link=""
2323
target_ref=""
24+
group=""
2425
while [[ $# -gt 0 ]]; do
2526
case $1 in
2627
--link) link="$2"; shift 2 ;;
2728
--target-ref) target_ref="$2"; shift 2 ;;
29+
--group) group="$2"; shift 2 ;;
2830
*) shift ;;
2931
esac
3032
done
@@ -54,6 +56,9 @@ extra_args=()
5456
if [[ -n "$target_ref" ]]; then
5557
extra_args+=(-f "target_ref=$target_ref")
5658
fi
59+
if [[ -n "$group" ]]; then
60+
extra_args+=(-f "group=$group")
61+
fi
5762
if [[ -n "${CHANNEL_ID:-}" ]]; then
5863
extra_args+=(-f "slack_channel=$CHANNEL_ID")
5964
fi

0 commit comments

Comments
 (0)