forked from elizaOS/eliza
-
Notifications
You must be signed in to change notification settings - Fork 0
420 lines (391 loc) · 16.6 KB
/
Copy pathdevelop-full.yml
File metadata and controls
420 lines (391 loc) · 16.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
# This workflow is the sole develop-push validation authority. It cancels the
# complete read-only graph for a superseded tip and reuses a surface verdict
# only when immutable cached evidence matches that surface's exact input digest.
name: Develop Full
on:
push:
branches: [develop]
concurrency:
group: develop-full
cancel-in-progress: true
permissions:
contents: read
jobs:
plan:
name: Exact-input impact plan
runs-on: ubuntu-24.04
timeout-minutes: 15
outputs:
run_canonical: ${{ steps.resolve.outputs.run_canonical }}
run_chat_shell: ${{ steps.resolve.outputs.run_chat_shell }}
run_cloud_gateway_discord: ${{ steps.resolve.outputs.run_cloud_gateway_discord }}
run_cloud: ${{ steps.resolve.outputs.run_cloud }}
run_dev_smoke: ${{ steps.resolve.outputs.run_dev_smoke }}
run_docker: ${{ steps.resolve.outputs.run_docker }}
run_secrets: ${{ steps.resolve.outputs.run_secrets }}
run_quality: ${{ steps.resolve.outputs.run_quality }}
run_platform_smoke: ${{ steps.resolve.outputs.run_platform_smoke }}
run_scenarios: ${{ steps.resolve.outputs.run_scenarios }}
run_tests: ${{ steps.resolve.outputs.run_tests }}
run_ui_core: ${{ steps.resolve.outputs.run_ui_core }}
run_ui_extended: ${{ steps.resolve.outputs.run_ui_extended }}
run_ui_stories: ${{ steps.resolve.outputs.run_ui_stories }}
digest_canonical: ${{ steps.impact.outputs.digest_canonical }}
digest_chat_shell: ${{ steps.impact.outputs.digest_chat_shell }}
digest_cloud_gateway_discord: ${{ steps.impact.outputs.digest_cloud_gateway_discord }}
digest_cloud: ${{ steps.impact.outputs.digest_cloud }}
digest_dev_smoke: ${{ steps.impact.outputs.digest_dev_smoke }}
digest_docker: ${{ steps.impact.outputs.digest_docker }}
digest_secrets: ${{ steps.impact.outputs.digest_secrets }}
digest_quality: ${{ steps.impact.outputs.digest_quality }}
digest_platform_smoke: ${{ steps.impact.outputs.digest_platform_smoke }}
digest_scenarios: ${{ steps.impact.outputs.digest_scenarios }}
digest_tests: ${{ steps.impact.outputs.digest_tests }}
digest_ui_core: ${{ steps.impact.outputs.digest_ui_core }}
digest_ui_extended: ${{ steps.impact.outputs.digest_ui_extended }}
digest_ui_stories: ${{ steps.impact.outputs.digest_ui_stories }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
fetch-depth: 0
submodules: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: "24.15.0"
- name: Compute exact input closures
id: impact
env:
BASE_SHA: ${{ github.event.before }}
HEAD_SHA: ${{ github.sha }}
run: >-
node packages/scripts/develop-impact-evidence.mjs plan
--base "$BASE_SHA"
--head "$HEAD_SHA"
--expected .develop-evidence/expected.json
--github-output "$GITHUB_OUTPUT"
-
name: Restore canonical evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/canonical
key: develop-evidence-v1-canonical-${{ steps.impact.outputs.digest_canonical }}
-
name: Restore chat-shell evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/chat-shell
key: develop-evidence-v1-chat-shell-${{ steps.impact.outputs.digest_chat_shell }}
-
name: Restore cloud-gateway-discord evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/cloud-gateway-discord
key: develop-evidence-v1-cloud-gateway-discord-${{ steps.impact.outputs.digest_cloud_gateway_discord }}
-
name: Restore cloud evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/cloud
key: develop-evidence-v1-cloud-${{ steps.impact.outputs.digest_cloud }}
-
name: Restore dev-smoke evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/dev-smoke
key: develop-evidence-v1-dev-smoke-${{ steps.impact.outputs.digest_dev_smoke }}
-
name: Restore docker evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/docker
key: develop-evidence-v1-docker-${{ steps.impact.outputs.digest_docker }}
-
name: Restore secrets evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/secrets
key: develop-evidence-v1-secrets-${{ steps.impact.outputs.digest_secrets }}
-
name: Restore quality evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/quality
key: develop-evidence-v1-quality-${{ steps.impact.outputs.digest_quality }}
-
name: Restore platform-smoke evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/platform-smoke
key: develop-evidence-v1-platform-smoke-${{ steps.impact.outputs.digest_platform_smoke }}
-
name: Restore scenarios evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/scenarios
key: develop-evidence-v1-scenarios-${{ steps.impact.outputs.digest_scenarios }}
-
name: Restore tests evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/tests
key: develop-evidence-v1-tests-${{ steps.impact.outputs.digest_tests }}
-
name: Restore ui-core evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/ui-core
key: develop-evidence-v1-ui-core-${{ steps.impact.outputs.digest_ui_core }}
-
name: Restore ui-extended evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/ui-extended
key: develop-evidence-v1-ui-extended-${{ steps.impact.outputs.digest_ui_extended }}
-
name: Restore ui-stories evidence
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/ui-stories
key: develop-evidence-v1-ui-stories-${{ steps.impact.outputs.digest_ui_stories }}
- name: Resolve reusable evidence
id: resolve
run: >-
node packages/scripts/develop-impact-evidence.mjs resolve
--expected .develop-evidence/expected.json
--evidence .develop-evidence/reused
--github-output "$GITHUB_OUTPUT"
canonical:
needs: plan
if: needs.plan.outputs.run_canonical == 'true'
uses: ./.github/workflows/ci.yml
secrets: inherit
chat-shell:
needs: plan
if: needs.plan.outputs.run_chat_shell == 'true'
uses: ./.github/workflows/chat-shell-gestures.yml
secrets: inherit
cloud-gateway-discord:
needs: plan
if: needs.plan.outputs.run_cloud_gateway_discord == 'true'
uses: ./.github/workflows/cloud-gateway-discord.yml
secrets: inherit
cloud:
needs: plan
if: needs.plan.outputs.run_cloud == 'true'
uses: ./.github/workflows/cloud-tests.yml
secrets: inherit
dev-smoke:
needs: plan
if: needs.plan.outputs.run_dev_smoke == 'true'
uses: ./.github/workflows/dev-smoke.yml
with:
concurrency_scope: develop-full
secrets: inherit
docker:
needs: plan
if: needs.plan.outputs.run_docker == 'true'
uses: ./.github/workflows/docker-ci-smoke.yml
with:
concurrency_scope: develop-full
secrets: inherit
secrets:
needs: plan
if: needs.plan.outputs.run_secrets == 'true'
uses: ./.github/workflows/gitleaks.yml
secrets: inherit
quality:
needs: plan
if: needs.plan.outputs.run_quality == 'true'
uses: ./.github/workflows/quality.yml
secrets: inherit
platform-smoke:
needs: plan
if: needs.plan.outputs.run_platform_smoke == 'true'
uses: ./.github/workflows/platform-smoke.yml
scenarios:
needs: plan
if: needs.plan.outputs.run_scenarios == 'true'
uses: ./.github/workflows/scenario-pr.yml
with:
concurrency_scope: develop-full
secrets: inherit
tests:
needs: plan
if: needs.plan.outputs.run_tests == 'true'
uses: ./.github/workflows/test.yml
secrets: inherit
ui-core:
needs: plan
if: needs.plan.outputs.run_ui_core == 'true'
uses: ./.github/workflows/ui-e2e-gate.yml
with:
concurrency_scope: develop-full
secrets: inherit
ui-extended:
needs: plan
if: needs.plan.outputs.run_ui_extended == 'true'
uses: ./.github/workflows/ui-fixture-e2e.yml
with:
concurrency_scope: develop-full
secrets: inherit
ui-stories:
needs: plan
if: needs.plan.outputs.run_ui_stories == 'true'
uses: ./.github/workflows/ui-story-gate.yml
secrets: inherit
complete:
name: Complete manifest
if: ${{ always() && needs.plan.result == 'success' }}
needs:
- plan
- canonical
- chat-shell
- cloud-gateway-discord
- cloud
- dev-smoke
- docker
- secrets
- quality
- platform-smoke
- scenarios
- tests
- ui-core
- ui-extended
- ui-stories
runs-on: ubuntu-24.04
timeout-minutes: 20
env:
SURFACE_RESULTS: >-
{"canonical":"${{ needs.canonical.result }}","chat-shell":"${{ needs.chat-shell.result }}","cloud-gateway-discord":"${{ needs.cloud-gateway-discord.result }}","cloud":"${{ needs.cloud.result }}","dev-smoke":"${{ needs.dev-smoke.result }}","docker":"${{ needs.docker.result }}","secrets":"${{ needs.secrets.result }}","quality":"${{ needs.quality.result }}","platform-smoke":"${{ needs.platform-smoke.result }}","scenarios":"${{ needs.scenarios.result }}","tests":"${{ needs.tests.result }}","ui-core":"${{ needs.ui-core.result }}","ui-extended":"${{ needs.ui-extended.result }}","ui-stories":"${{ needs.ui-stories.result }}"}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
fetch-depth: 0
submodules: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: "24.15.0"
- name: Recompute expected manifest
env:
BASE_SHA: ${{ github.event.before }}
HEAD_SHA: ${{ github.sha }}
run: >-
node packages/scripts/develop-impact-evidence.mjs plan
--base "$BASE_SHA"
--head "$HEAD_SHA"
--expected .develop-evidence/expected.json
- name: Restore or publish canonical evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/canonical
key: develop-evidence-v1-canonical-${{ needs.plan.outputs.digest_canonical }}
- name: Restore or publish chat-shell evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/chat-shell
key: develop-evidence-v1-chat-shell-${{ needs.plan.outputs.digest_chat_shell }}
- name: Restore or publish cloud-gateway-discord evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/cloud-gateway-discord
key: develop-evidence-v1-cloud-gateway-discord-${{ needs.plan.outputs.digest_cloud_gateway_discord }}
- name: Restore or publish cloud evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/cloud
key: develop-evidence-v1-cloud-${{ needs.plan.outputs.digest_cloud }}
- name: Restore or publish dev-smoke evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/dev-smoke
key: develop-evidence-v1-dev-smoke-${{ needs.plan.outputs.digest_dev_smoke }}
- name: Restore or publish docker evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/docker
key: develop-evidence-v1-docker-${{ needs.plan.outputs.digest_docker }}
- name: Restore or publish secrets evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/secrets
key: develop-evidence-v1-secrets-${{ needs.plan.outputs.digest_secrets }}
- name: Restore or publish quality evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/quality
key: develop-evidence-v1-quality-${{ needs.plan.outputs.digest_quality }}
- name: Restore or publish platform-smoke evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/platform-smoke
key: develop-evidence-v1-platform-smoke-${{ needs.plan.outputs.digest_platform_smoke }}
- name: Restore or publish scenarios evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/scenarios
key: develop-evidence-v1-scenarios-${{ needs.plan.outputs.digest_scenarios }}
- name: Restore or publish tests evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/tests
key: develop-evidence-v1-tests-${{ needs.plan.outputs.digest_tests }}
- name: Restore or publish ui-core evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/ui-core
key: develop-evidence-v1-ui-core-${{ needs.plan.outputs.digest_ui_core }}
- name: Restore or publish ui-extended evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/ui-extended
key: develop-evidence-v1-ui-extended-${{ needs.plan.outputs.digest_ui_extended }}
- name: Restore or publish ui-stories evidence
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
with:
path: .develop-evidence/reused/ui-stories
key: develop-evidence-v1-ui-stories-${{ needs.plan.outputs.digest_ui_stories }}
- name: Require one current green row per surface
run: >-
node packages/scripts/develop-impact-evidence.mjs record
--expected .develop-evidence/expected.json
--evidence .develop-evidence/reused
--observed .develop-evidence/observed.json
--results-env SURFACE_RESULTS
- name: Upload exact manifest evidence
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: develop-full-manifest-${{ github.sha }}
path: |
.develop-evidence/expected.json
.develop-evidence/observed.json
if-no-files-found: error
retention-days: 14
handoff-effects:
name: Hand off exact green SHA for durable reconciliation
needs: complete
if: ${{ needs.complete.result == 'success' }}
runs-on: ubuntu-24.04
timeout-minutes: 2
permissions:
actions: write
contents: read
steps:
- name: Dispatch non-cancelable effect reconciliation
env:
GH_TOKEN: ${{ github.token }}
SOURCE_RUN_ID: ${{ github.run_id }}
SOURCE_SHA: ${{ github.sha }}
run: |
set -euo pipefail
response="$(
gh api --method POST \
-H 'Accept: application/vnd.github+json' \
-H 'X-GitHub-Api-Version: 2026-03-10' \
"/repos/$GITHUB_REPOSITORY/actions/workflows/develop-reconcile.yml/dispatches" \
-f ref=develop \
-F return_run_details=true \
-f "inputs[source_sha]=$SOURCE_SHA" \
-f "inputs[source_run_id]=$SOURCE_RUN_ID"
)"
reconcile_run_id="$(jq -er '.workflow_run_id | select(type == "number" and . > 0)' <<< "$response")"
echo "Handed $SOURCE_SHA to reconciliation run $reconcile_run_id"