Repository navigation
585 lines (548 loc) · 22.2 KB
/
Copy pathcli-bench-full.yml
File metadata and controls
585 lines (548 loc) · 22.2 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
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
name: CLI benchmark (full)
run-name: >-
${{ github.event_name == 'schedule' && 'CLI benchmark full (scheduled)' ||
format('CLI benchmark full ({0}): {1}', inputs.workloads, github.ref_name) }}
# Report-only comparison of a CLI build with a base build for the workloads that need a running
# local stack or database. Starts only from the `/bench full` pull request command, the Actions UI
# (for any branch), or the weekly schedule; it never runs on a push. The base is the merge base
# with `develop` by default, a release tag when given, and the latest stable release on the
# schedule. Workloads are packed into shards, one runner at a time per workload, and each shard
# compares base and branch on its own machine. The run never blocks a pull request and is not a
# required check.
# See apps/cli/docs/tracing-monitoring.md.
on:
workflow_dispatch:
inputs:
workloads:
description: Which workloads to measure
type: choice
options:
- all
- lightweight
- integration-heavy
default: all
runtime:
description: Container runtime for the integration-heavy workloads
type: choice
options:
- both
- docker
- native
default: both
base:
description: merge-base, or a release tag such as v3.0.0 to compare against
type: string
default: merge-base
schedule:
- cron: "0 3 * * 0"
permissions: {}
# A second run for a branch waits for the first instead of cancelling it, which also takes turns
# between the writers of the integration-heavy comment; a run still waiting when a newer one
# queues never started, so it had written nothing.
concurrency:
group: cli-bench-full-${{ github.ref_name }}
cancel-in-progress: false
# The default `single` cancels a pending run when another is queued.
queue: max
jobs:
# Decides what this run measures and against which base, splits the workloads into shards, and
# marks the pull request's integration-heavy comment as running.
plan:
name: Plan
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
pull-requests: write
outputs:
base_kind: ${{ steps.plan.outputs.base_kind }}
base_tag: ${{ steps.plan.outputs.base_tag }}
pr_number: ${{ steps.plan.outputs.pr_number }}
run_lightweight: ${{ steps.plan.outputs.run_lightweight }}
run_integration: ${{ steps.plan.outputs.run_integration }}
has_shards: ${{ steps.plan.outputs.has_shards }}
matrix: ${{ steps.plan.outputs.matrix }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version-file: ".bun-version"
no-cache: true
- name: Plan
id: plan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
EVENT_NAME: ${{ github.event_name }}
REF_NAME: ${{ github.ref_name }}
INPUT_WORKLOADS: ${{ inputs.workloads }}
INPUT_RUNTIME: ${{ inputs.runtime }}
INPUT_BASE: ${{ inputs.base }}
run: bun .github/scripts/cli-bench/full-plan.ts
- name: Mark the integration-heavy comment as running
if: steps.plan.outputs.pr_number != '' && steps.plan.outputs.run_integration == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ steps.plan.outputs.pr_number }}
MODE: running
KIND: integration-heavy
HEAD_SHA: ${{ github.sha }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}
run: bun .github/scripts/cli-bench/post-comment.ts
# Builds the branch binary, and the base binary from the merge base or the release asset, once
# for every shard.
build:
name: Build binaries
needs: plan
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
permissions:
contents: read
outputs:
branch_build: ${{ steps.outcomes.outputs.branch_build }}
base_build: ${{ steps.outcomes.outputs.base_build }}
merge_base: ${{ steps.base_build.outputs.merge_base }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Setup
uses: ./.github/actions/setup
with:
dependency-firewall-token: ${{ secrets.DF_FIREWALL_TOKEN }}
- name: Prepare benchmark directory
shell: bash
run: |
mkdir -p "$RUNNER_TEMP/bench"
echo "BENCH_DIR=$RUNNER_TEMP/bench" >> "$GITHUB_ENV"
- name: Build branch binary
id: branch_build
continue-on-error: true
shell: bash
run: |
pnpm --filter supabase run build:binary
mkdir -p "$BENCH_DIR/branch"
cp apps/cli/dist/supabase "$BENCH_DIR/branch/supabase"
- name: Build or download base binary
id: base_build
continue-on-error: true
if: steps.branch_build.outcome == 'success'
env:
HUSKY: "0"
BASE_KIND: ${{ needs.plan.outputs.base_kind }}
BASE_TAG: ${{ needs.plan.outputs.base_tag }}
RELEASE_TOKEN: ${{ github.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
shell: bash
run: |
mkdir -p "$BENCH_DIR/base"
if [ "$BASE_KIND" = release ]; then
echo "Base release: $BASE_TAG"
GH_TOKEN="$RELEASE_TOKEN" gh release download "$BASE_TAG" --repo "$GITHUB_REPOSITORY" \
--pattern supabase_linux_amd64.tar.gz --dir "$RUNNER_TEMP/release"
tar -xzf "$RUNNER_TEMP/release/supabase_linux_amd64.tar.gz" -C "$BENCH_DIR/base" supabase
chmod +x "$BENCH_DIR/base/supabase"
exit 0
fi
merge_base="$(git merge-base HEAD origin/develop)"
echo "Merge base: $merge_base"
echo "merge_base=$merge_base" >> "$GITHUB_OUTPUT"
git worktree add "$RUNNER_TEMP/base-src" "$merge_base"
cd "$RUNNER_TEMP/base-src"
# The setup action writes this file only when the Dependency Firewall token is available.
if [ -f "$RUNNER_TEMP/dependency-firewall.npmrc" ]; then
export NPM_CONFIG_USERCONFIG="$RUNNER_TEMP/dependency-firewall.npmrc"
fi
pnpm install --frozen-lockfile
pnpm --filter supabase run build:binary
cp apps/cli/dist/supabase "$BENCH_DIR/base/supabase"
- name: Record build outcomes
id: outcomes
if: always()
env:
BRANCH_OUTCOME: ${{ steps.branch_build.outcome }}
BASE_OUTCOME: ${{ steps.base_build.outcome }}
shell: bash
run: |
echo "branch_build=$([ "$BRANCH_OUTCOME" = success ] && echo ok || echo failed)" >> "$GITHUB_OUTPUT"
echo "base_build=$([ "$BASE_OUTCOME" = success ] && echo ok || echo failed)" >> "$GITHUB_OUTPUT"
- name: Upload binaries
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: cli-bench-full-binaries
path: |
${{ runner.temp }}/bench/base
${{ runner.temp }}/bench/branch
retention-days: 1
if-no-files-found: ignore
# The pull request workloads against the replay server, for dispatches that ask for them (the
# `pull_request` run covers them otherwise).
lightweight:
name: Lightweight commands
needs:
- plan
- build
if: always() && needs.plan.result == 'success' && needs.plan.outputs.run_lightweight == 'true'
runs-on: blacksmith-4vcpu-ubuntu-2404
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup
uses: ./.github/actions/setup
with:
dependency-firewall-token: ${{ secrets.DF_FIREWALL_TOKEN }}
- name: Download binaries
id: binaries
if: needs.build.outputs.branch_build == 'ok' && needs.build.outputs.base_build == 'ok'
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: cli-bench-full-binaries
path: ${{ runner.temp }}/bench
- name: Start replay server
id: replay
continue-on-error: true
if: steps.binaries.outcome == 'success'
shell: bash
run: |
echo "BENCH_DIR=$RUNNER_TEMP/bench" >> "$GITHUB_ENV"
chmod +x "$RUNNER_TEMP/bench/base/supabase" "$RUNNER_TEMP/bench/branch/supabase"
bun apps/cli-e2e/scripts/replay-serve.ts > "$RUNNER_TEMP/bench/replay.log" 2>&1 &
echo "REPLAY_PID=$!" >> "$GITHUB_ENV"
for _ in $(seq 1 60); do
url="$(grep -o 'http://[^"]*' "$RUNNER_TEMP/bench/replay.log" | head -n 1 || true)"
if [ -n "$url" ]; then
echo "REPLAY_URL=$url" >> "$GITHUB_ENV"
exit 0
fi
sleep 0.5
done
echo "replay server did not report a URL" >&2
cat "$RUNNER_TEMP/bench/replay.log" >&2
exit 1
- name: Run benchmark
id: bench
continue-on-error: true
if: steps.replay.outcome == 'success'
shell: bash
run: |
bun apps/cli/scripts/bench-cli.ts \
--base "$BENCH_DIR/base/supabase" \
--branch "$BENCH_DIR/branch/supabase" \
--workloads apps/cli/bench/workloads.pr.json \
--api-url "$REPLAY_URL" \
--trace \
--out "$RUNNER_TEMP/bench/report.json" | tee "$RUNNER_TEMP/bench/report.txt"
- name: Stop replay server
if: always() && env.REPLAY_PID != ''
shell: bash
run: kill "$REPLAY_PID" || true
- name: Write job summary
if: always()
env:
BRANCH_BUILD: ${{ needs.build.outputs.branch_build == 'ok' && 'ok' || 'failed' }}
BASE_BUILD: ${{ needs.build.outputs.base_build == 'ok' && 'ok' || 'failed' }}
REPLAY: ${{ steps.replay.outcome == 'success' && 'ok' || 'failed' }}
MERGE_BASE: ${{ needs.build.outputs.merge_base }}
BASE_REF: ${{ needs.plan.outputs.base_kind == 'release' && needs.plan.outputs.base_tag || 'develop' }}
HEAD_SHA: ${{ github.sha }}
shell: bash
run: |
mkdir -p "$RUNNER_TEMP/bench"
bun apps/cli/scripts/bench-summary.ts \
--section lightweight \
--report "$RUNNER_TEMP/bench/report.json" \
--branch-build "$BRANCH_BUILD" \
--base-build "$BASE_BUILD" \
--replay "$REPLAY" \
--head-sha "$HEAD_SHA" \
--base-ref "$BASE_REF" \
--merge-base "$MERGE_BASE" \
--comment-out "$RUNNER_TEMP/bench/comment.md"
- name: Upload report
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: cli-bench-full-report-lightweight
path: |
${{ runner.temp }}/bench/report.json
${{ runner.temp }}/bench/report.txt
retention-days: 14
if-no-files-found: ignore
- name: Upload comment
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: cli-bench-full-comment-lightweight
path: ${{ runner.temp }}/bench/comment.md
retention-days: 1
if-no-files-found: ignore
# One runner per shard and runtime. Base and branch alternate on the same machine; no other
# workload shares it.
shard:
name: Shard (${{ matrix.runtime }} ${{ matrix.shard }}/${{ matrix.shards }})
needs:
- plan
- build
if: >-
needs.plan.outputs.has_shards == 'true' &&
needs.build.outputs.branch_build == 'ok' && needs.build.outputs.base_build == 'ok'
runs-on: blacksmith-8vcpu-ubuntu-2404
timeout-minutes: 30
permissions:
contents: read
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.plan.outputs.matrix) }}
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# The image and artifact disks are read-only here: this job never commits them.
- name: Setup
uses: ./.github/actions/setup
with:
dependency-firewall-token: ${{ secrets.DF_FIREWALL_TOKEN }}
sticky-disks: "true"
docker-images: ${{ matrix.runtime == 'docker' }}
native-artifacts: ${{ matrix.runtime == 'native' }}
- name: Download binaries
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: cli-bench-full-binaries
path: ${{ runner.temp }}/bench
# A shard that cannot start the replay server fails, and the report job names it as a shard
# that did not finish.
- name: Start replay server
shell: bash
run: |
bench="$RUNNER_TEMP/bench"
chmod +x "$bench/base/supabase" "$bench/branch/supabase"
bun apps/cli-e2e/scripts/replay-serve.ts > "$bench/replay.log" 2>&1 &
echo "REPLAY_PID=$!" >> "$GITHUB_ENV"
for _ in $(seq 1 60); do
url="$(grep -o 'http://[^"]*' "$bench/replay.log" | head -n 1 || true)"
if [ -n "$url" ]; then
echo "REPLAY_URL=$url" >> "$GITHUB_ENV"
exit 0
fi
sleep 0.5
done
echo "replay server did not report a URL" >&2
cat "$bench/replay.log" >&2
exit 1
- name: Run benchmark
env:
RUNTIME: ${{ matrix.runtime }}
SHARD: ${{ matrix.shard }}
WORKLOADS: ${{ matrix.workloads }}
shell: bash
run: |
bench="$RUNNER_TEMP/bench"
cache_args=()
if [ "$RUNTIME" = native ]; then
cache="${XDG_CACHE_HOME:-$HOME/.cache}/supabase-stack-artifacts"
mkdir -p "$cache"
cache_args=(--artifact-cache "$cache")
fi
bun apps/cli/scripts/bench-cli.ts \
--base "$bench/base/supabase" \
--branch "$bench/branch/supabase" \
--workloads apps/cli/bench/workloads.full.json \
--runtime "$RUNTIME" \
--only "$WORKLOADS" \
--api-url "$REPLAY_URL" \
"${cache_args[@]}" \
--trace \
--out "$bench/report-$RUNTIME-$SHARD.json" | tee "$bench/report-$RUNTIME-$SHARD.txt"
- name: Stop replay server
if: always() && env.REPLAY_PID != ''
shell: bash
run: kill "$REPLAY_PID" || true
- name: Upload report
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: cli-bench-full-report-${{ matrix.runtime }}-${{ matrix.shard }}
path: |
${{ runner.temp }}/bench/report-${{ matrix.runtime }}-${{ matrix.shard }}.json
${{ runner.temp }}/bench/report-${{ matrix.runtime }}-${{ matrix.shard }}.txt
retention-days: 14
if-no-files-found: ignore
# Releases /var/lib/docker so the image disk unmounts cleanly.
- name: Stop Docker
if: always() && matrix.runtime == 'docker'
run: sudo systemctl stop docker.socket docker.service
# Combines the shard reports, writes the job summary and the comment.
report:
name: Report
needs:
- plan
- build
- shard
if: always() && needs.plan.result == 'success' && needs.plan.outputs.run_integration == 'true'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup
uses: ./.github/actions/setup
with:
dependency-firewall-token: ${{ secrets.DF_FIREWALL_TOKEN }}
- name: Download shard reports
continue-on-error: true
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: cli-bench-full-report-*-*
path: ${{ runner.temp }}/reports
- name: Merge shard reports
shell: bash
run: |
mkdir -p "$RUNNER_TEMP/bench"
mapfile -t files < <(find "$RUNNER_TEMP/reports" -name 'report-*.json' 2>/dev/null | sort)
if [ "${#files[@]}" -gt 0 ]; then
bun apps/cli/scripts/bench-merge.ts \
--workloads apps/cli/bench/workloads.full.json \
--out "$RUNNER_TEMP/bench/report.json" "${files[@]}"
fi
- name: Write job summary
env:
BRANCH_BUILD: ${{ needs.build.outputs.branch_build == 'ok' && 'ok' || 'failed' }}
BASE_BUILD: ${{ needs.build.outputs.base_build == 'ok' && 'ok' || 'failed' }}
SHARDS: ${{ needs.shard.result }}
MERGE_BASE: ${{ needs.build.outputs.merge_base }}
BASE_REF: ${{ needs.plan.outputs.base_kind == 'release' && needs.plan.outputs.base_tag || 'develop' }}
HEAD_SHA: ${{ github.sha }}
shell: bash
run: |
note=""
if [ "$SHARDS" = failure ] || [ "$SHARDS" = cancelled ]; then
note="Some shards did not finish (for example, the local test server failed to start), so their commands are missing."
fi
bun apps/cli/scripts/bench-summary.ts \
--section integration-heavy \
--report "$RUNNER_TEMP/bench/report.json" \
--note "$note" \
--branch-build "$BRANCH_BUILD" \
--base-build "$BASE_BUILD" \
--head-sha "$HEAD_SHA" \
--base-ref "$BASE_REF" \
--merge-base "$MERGE_BASE" \
--comment-out "$RUNNER_TEMP/bench/comment.md"
- name: Upload report
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: cli-bench-full-merged-report
path: ${{ runner.temp }}/bench/report.json
retention-days: 14
if-no-files-found: ignore
- name: Upload comment
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: cli-bench-full-comment-integration-heavy
path: ${{ runner.temp }}/bench/comment.md
retention-days: 1
if-no-files-found: ignore
# The only jobs that write to the pull request. They run no benchmarked code and read the
# rendered markdown as data; a dispatch uses this file from the dispatched branch, which only
# people with write access can push or dispatch.
comment-lightweight:
name: Post lightweight comment
needs:
- plan
- lightweight
if: always() && needs.plan.outputs.pr_number != '' && needs.plan.outputs.run_lightweight == 'true'
runs-on: ubuntu-latest
timeout-minutes: 5
continue-on-error: true
# Shares its turn with the lightweight benchmark workflow, the other writer of this comment.
concurrency:
group: cli-bench-comment-lightweight-${{ needs.plan.outputs.pr_number }}
cancel-in-progress: false
# The default `single` cancels a pending run when another is queued.
queue: max
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version-file: ".bun-version"
no-cache: true
- name: Download comment
continue-on-error: true
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: cli-bench-full-comment-lightweight
path: ${{ runner.temp }}/bench-comment
- name: Post comment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ needs.plan.outputs.pr_number }}
MODE: upsert
KIND: lightweight
MISSING_BODY: failure
HEAD_SHA: ${{ github.sha }}
BODY_FILE: ${{ runner.temp }}/bench-comment/comment.md
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}
run: bun .github/scripts/cli-bench/post-comment.ts
comment:
name: Post integration-heavy comment
needs:
- plan
- report
if: always() && needs.plan.outputs.pr_number != '' && needs.plan.outputs.run_integration == 'true'
runs-on: ubuntu-latest
timeout-minutes: 5
continue-on-error: true
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version-file: ".bun-version"
no-cache: true
- name: Download comment
continue-on-error: true
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: cli-bench-full-comment-integration-heavy
path: ${{ runner.temp }}/bench-comment
- name: Post comment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ needs.plan.outputs.pr_number }}
MODE: upsert
KIND: integration-heavy
MISSING_BODY: failure
HEAD_SHA: ${{ github.sha }}
BODY_FILE: ${{ runner.temp }}/bench-comment/comment.md
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}
run: bun .github/scripts/cli-bench/post-comment.ts