Skip to content

Commit c872366

Browse files
committed
test(ci): measure actual native Bun setup overhead
1 parent 9f3fc6a commit c872366

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

‎.github/workflows/bun-ci-investigation.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Bun CI owner proof
22

33
on:
44
push:
5-
branches: [investigate/bun-ci-owner-proof-20261102]
5+
branches: [investigate/bun-ci-final-head-only]
66

77
permissions:
88
contents: read
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Bun native setup cost
2+
3+
on:
4+
push:
5+
branches: [investigate/bun-ci-owner-proof-20261102]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
setup-cost:
12+
name: native setup / ${{ matrix.sample }}
13+
runs-on: ubuntu-24.04
14+
timeout-minutes: 5
15+
strategy:
16+
max-parallel: 3
17+
matrix:
18+
sample: [1, 2, 3]
19+
steps:
20+
- name: Start native action timer
21+
id: timer
22+
run: echo "nanoseconds=$(date +%s%N)" >> "$GITHUB_OUTPUT"
23+
- name: Provision the exact native action
24+
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
25+
with:
26+
bun-version: 1.4.4
27+
- name: Record fresh-runner setup cost
28+
run: |
29+
set -euo pipefail
30+
elapsed=$(( $(date +%s%N) - ${{ steps.timer.outputs.nanoseconds }} ))
31+
test "$(bun --version)" = 1.4.4
32+
echo "BUN_CI_SETUP_COST {\"sample\":${{ matrix.sample }},\"nanoseconds\":$elapsed,\"version\":\"1.4.4\",\"kind\":\"fresh standard runner native action plus step boundary; not restored project proof\"}"

0 commit comments

Comments
 (0)