Skip to content

Commit dd0c370

Browse files
committed
ci: wire up merge-train/spartan-v6 → v6-next release line (v5-next)
1 parent e101890 commit dd0c370

3 files changed

Lines changed: 28 additions & 8 deletions

File tree

.github/workflows/merge-train-create-pr.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
branch="${{ github.ref_name }}"
2525
2626
# Determine base branch. Most trains target next; trains suffixed
27-
# with -v5 (e.g. spartan-v5, fairies-v5) target the v5 release line
28-
# (v5-next) instead.
27+
# with -v<N> (e.g. spartan-v5, fairies-v5, spartan-v6) target the
28+
# matching release line (v5-next, v6-next) instead.
2929
base_branch="next"
30-
if [[ "$branch" == *-v5 ]]; then
31-
base_branch="v5-next"
30+
if [[ "$branch" =~ -v([0-9]+)$ ]]; then
31+
base_branch="v${BASH_REMATCH[1]}-next"
3232
fi
3333
3434
# Skip if this is a merge commit (check for multiple parents)
@@ -52,7 +52,7 @@ jobs:
5252
5353
# Create PR with ci-no-squash label
5454
labels="ci-no-squash"
55-
if [[ "$branch" == "merge-train/spartan" || "$branch" == "merge-train/spartan-v5" || "$branch" == "merge-train/ci" ]]; then
55+
if [[ "$branch" == "merge-train/spartan" || "$branch" == "merge-train/spartan-v5" || "$branch" == "merge-train/spartan-v6" || "$branch" == "merge-train/ci" ]]; then
5656
labels="$labels,ci-full-no-test-cache"
5757
fi
5858
# Trains targeting the v5 release line are ports into v5-next.

.github/workflows/merge-train-next-to-branches.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- next
77
- v5-next
8+
- v6-next
89

910
jobs:
1011
merge-to-trains:
@@ -27,13 +28,17 @@ jobs:
2728
GH_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
2829
COMMIT_SHA: ${{ github.sha }}
2930
run: |
30-
# The -v5 trains track the v5 release line (v5-next); every other
31-
# train tracks next. Sync only the trains fed by the branch that was
32-
# just pushed.
31+
# The -v<N> trains track the matching release line (v5-next, v6-next);
32+
# every other train tracks next. Sync only the trains fed by the
33+
# branch that was just pushed.
3334
if [[ "${{ github.ref_name }}" == "v5-next" ]]; then
3435
for branch in merge-train/spartan-v5 merge-train/fairies-v5; do
3536
./scripts/merge-train/merge-next.sh "$branch" v5-next || true
3637
done
38+
elif [[ "${{ github.ref_name }}" == "v6-next" ]]; then
39+
for branch in merge-train/spartan-v6; do
40+
./scripts/merge-train/merge-next.sh "$branch" v6-next || true
41+
done
3742
else
3843
for branch in merge-train/avm merge-train/barretenberg merge-train/ci merge-train/docs merge-train/fairies merge-train/spartan; do
3944
./scripts/merge-train/merge-next.sh "$branch" || true

.github/workflows/merge-train-stale-check.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@ jobs:
3636
BASE_BRANCH: v5-next
3737
run: ./ci3/merge_train_stale_check merge-train/spartan-v5 '#team-alpha'
3838

39+
spartan-v6:
40+
name: Check merge-train/spartan-v6
41+
runs-on: ubuntu-latest
42+
permissions:
43+
contents: read
44+
pull-requests: read
45+
steps:
46+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
47+
- name: Run stale check
48+
env:
49+
GH_TOKEN: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}
50+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
51+
BASE_BRANCH: v6-next
52+
run: ./ci3/merge_train_stale_check merge-train/spartan-v6 '#team-alpha'
53+
3954
fairies-v5:
4055
name: Check merge-train/fairies-v5
4156
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)