Skip to content

Commit 5b15bbc

Browse files
authored
feat(ci): two-branch CI — changed-files-only PR lane, full-suite release lane, release-branch cuts, cancellation watchdog (#4486)
1 parent c4701a9 commit 5b15bbc

19 files changed

Lines changed: 994 additions & 313 deletions

.github/workflows/android-compile.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,17 @@ on:
6565
required: false
6666

6767
permissions:
68+
# `actions: read` lets scripts/ci-cancel-aware.sh poll the run status so
69+
# cancelled builds inside container jobs stop themselves (docker exec
70+
# swallows the runner's signals).
71+
actions: read
6872
contents: read
6973
pull-requests: read
7074

75+
env:
76+
# Consumed by scripts/ci-cancel-aware.sh's cancellation watchdog.
77+
GH_TOKEN: ${{ github.token }}
78+
7179
concurrency:
7280
group: ${{ github.workflow }}-${{ inputs.build_ref || github.event.pull_request.number || github.head_ref || github.ref }}
7381
cancel-in-progress: true

.github/workflows/build-desktop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ jobs:
129129
# Keep in sync with DEFAULT_TELEGRAM_BOT_USERNAME_* in channels/controllers/ops.rs
130130
OPENHUMAN_TELEGRAM_BOT_USERNAME: ${{ inputs.telegram_bot_username }}
131131
VITE_TELEGRAM_BOT_USERNAME: ${{ inputs.telegram_bot_username }}
132+
env:
133+
# Consumed by scripts/ci-cancel-aware.sh's cancellation watchdog.
134+
GH_TOKEN: ${{ github.token }}
132135
steps:
133136
- name: Checkout build ref
134137
uses: actions/checkout@v5

.github/workflows/e2e-agent-review.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ name: E2E (Linux) - agent-review
1111
on:
1212
workflow_dispatch:
1313
permissions:
14+
# `actions: read` lets scripts/ci-cancel-aware.sh poll the run status so
15+
# cancelled builds inside container jobs stop themselves (docker exec
16+
# swallows the runner's signals).
17+
actions: read
1418
contents: read
19+
env:
20+
# Consumed by scripts/ci-cancel-aware.sh's cancellation watchdog.
21+
GH_TOKEN: ${{ github.token }}
22+
1523
concurrency:
1624
group: e2e-agent-review-${{ github.event.pull_request.number || github.head_ref || github.ref }}
1725
cancel-in-progress: true

.github/workflows/e2e-playwright.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@ on:
55
workflow_dispatch: {}
66

77
permissions:
8+
# `actions: read` lets scripts/ci-cancel-aware.sh poll the run status so
9+
# cancelled builds inside container jobs stop themselves (docker exec
10+
# swallows the runner's signals).
11+
actions: read
812
contents: read
913
packages: read
1014

15+
env:
16+
# Consumed by scripts/ci-cancel-aware.sh's cancellation watchdog.
17+
GH_TOKEN: ${{ github.token }}
18+
1119
concurrency:
1220
group: ${{ github.workflow }}-${{ github.ref }}
1321
cancel-in-progress: true

.github/workflows/e2e-reusable.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,17 @@ on:
6464
default: mega-flow
6565

6666
permissions:
67+
# `actions: read` lets scripts/ci-cancel-aware.sh poll the run status so
68+
# cancelled builds inside container jobs stop themselves (docker exec
69+
# swallows the runner's signals).
70+
actions: read
6771
contents: read
6872
packages: read
6973

74+
env:
75+
# Consumed by scripts/ci-cancel-aware.sh's cancellation watchdog.
76+
GH_TOKEN: ${{ github.token }}
77+
7078
jobs:
7179
# Selected-spec gate for PR/push (full=false). The full-suite path lives in
7280
# `e2e-linux-full` below, which fans out across 4 parallel shards via

.github/workflows/e2e.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,18 @@ on:
3939
default: mega-flow
4040

4141
permissions:
42+
# `actions: read` lets scripts/ci-cancel-aware.sh poll the run status so
43+
# cancelled builds inside container jobs stop themselves (docker exec
44+
# swallows the runner's signals).
45+
actions: read
4246
contents: read
4347
packages: read
4448
pull-requests: read
4549

50+
env:
51+
# Consumed by scripts/ci-cancel-aware.sh's cancellation watchdog.
52+
GH_TOKEN: ${{ github.token }}
53+
4654
concurrency:
4755
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}
4856
cancel-in-progress: true

.github/workflows/ios-appstore.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,16 @@ on:
2121
default: true
2222

2323
permissions:
24+
# `actions: read` lets scripts/ci-cancel-aware.sh poll the run status so
25+
# cancelled builds inside container jobs stop themselves (docker exec
26+
# swallows the runner's signals).
27+
actions: read
2428
contents: read
2529

30+
env:
31+
# Consumed by scripts/ci-cancel-aware.sh's cancellation watchdog.
32+
GH_TOKEN: ${{ github.token }}
33+
2634
concurrency:
2735
group: ios-appstore-${{ github.ref }}
2836
cancel-in-progress: false

.github/workflows/ios-compile.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@ on:
55
workflow_dispatch:
66

77
permissions:
8+
# `actions: read` lets scripts/ci-cancel-aware.sh poll the run status so
9+
# cancelled builds inside container jobs stop themselves (docker exec
10+
# swallows the runner's signals).
11+
actions: read
812
contents: read
913
pull-requests: read
1014

15+
env:
16+
# Consumed by scripts/ci-cancel-aware.sh's cancellation watchdog.
17+
GH_TOKEN: ${{ github.token }}
18+
1119
concurrency:
1220
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref || github.ref }}
1321
cancel-in-progress: true

0 commit comments

Comments
 (0)