Skip to content

Commit 22914ab

Browse files
Repair Gate 3 quality and promotion workflows
1 parent 5474aa4 commit 22914ab

21 files changed

Lines changed: 6013 additions & 447 deletions

.github/workflows/bitcode-canon-quality.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ jobs:
2020
- name: Checkout repository
2121
uses: actions/checkout@v4
2222

23-
- name: Run Bitcode spec-quality basics
24-
run: node scripts/run-bitcode-spec-quality.mjs --mode basic
23+
- name: Validate active canon and V28 draft posture
24+
run: |
25+
node scripts/check-bitcode-canonical-inputs.mjs --current-target V27
26+
node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V27 --draft-target V28
27+
node scripts/check-bitcode-spec-family.mjs --version V28 --mode draft --current-target V27
2528
26-
bitcode-full:
27-
name: Bitcode Full Test Suite
29+
bitcode-demonstration-mvp:
30+
name: Bitcode Demonstration MVP
2831
runs-on: ubuntu-latest
2932
needs: bitcode-spec-basics
3033
container:
@@ -34,8 +37,8 @@ jobs:
3437
- name: Checkout repository
3538
uses: actions/checkout@v4
3639

37-
- name: Run full Bitcode protocol-demonstration suite
38-
run: npm --prefix protocol-demonstration run test
40+
- name: Run V28 protocol-demonstration MVP QA
41+
run: npm --prefix protocol-demonstration run test:v28-mvp-qa
3942

4043
bitcode-spec-commit-conformance:
4144
name: Bitcode Spec Commit Conformance
@@ -50,5 +53,13 @@ jobs:
5053
- name: Checkout repository
5154
uses: actions/checkout@v4
5255

53-
- name: Run strict spec conformance for `spec: VN` titles
54-
run: node scripts/run-bitcode-spec-quality.mjs --mode strict-from-title --commit-title "$SPEC_TITLE"
56+
- name: Run V28 strict draft conformance for spec-title changes
57+
run: |
58+
case "$SPEC_TITLE" in
59+
spec:\ V28*|spec:\ v28*)
60+
node scripts/check-bitcode-spec-family.mjs --version V28 --mode draft --current-target V27
61+
;;
62+
*)
63+
echo "Skipping strict spec-title conformance; title is not a V28 spec change."
64+
;;
65+
esac
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Bitcode Gate Quality
2+
3+
on:
4+
push:
5+
branches:
6+
- "v*/gate-*"
7+
- "version/**"
8+
pull_request:
9+
branches:
10+
- "version/**"
11+
workflow_dispatch:
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
gate-quality:
22+
name: Gate Quality
23+
runs-on: ubuntu-latest
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
29+
- name: Setup pnpm
30+
uses: pnpm/action-setup@v4
31+
32+
- name: Setup Node
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: "24"
36+
cache: pnpm
37+
38+
- name: Install dependencies
39+
run: pnpm install --frozen-lockfile
40+
41+
- name: Validate draft canon posture
42+
run: |
43+
test "$(cat BITCODE_SPEC.txt)" = "V27"
44+
node scripts/check-bitcode-spec-family.mjs --version V28 --mode draft --current-target V27
45+
node scripts/check-bitcode-canon-posture-drift.mjs --active-canon V27 --draft-target V28
46+
node scripts/check-bitcode-canonical-inputs.mjs --current-target V27
47+
48+
- name: Validate source casing and imports
49+
run: |
50+
bash scripts/find-uppercase-raw-promptparts.sh
51+
bash scripts/check-import-casing.sh
52+
53+
- name: Type-check gate packages
54+
run: |
55+
pnpm --filter @bitcode/pipeline-asset-pack typecheck
56+
pnpm --filter @bitcode/pipeline-hosts typecheck
57+
58+
- name: Test gate packages
59+
run: |
60+
pnpm --filter @bitcode/pipeline-asset-pack exec jest --config jest.config.cjs --passWithNoTests --forceExit
61+
pnpm --filter @bitcode/pipeline-hosts exec jest --config jest.config.cjs --passWithNoTests --forceExit
62+
63+
- name: Test protocol demonstration
64+
run: npm --prefix protocol-demonstration run test:v28-mvp-qa
65+
66+
- name: Check diff hygiene
67+
run: git diff --check

.github/workflows/ci.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ jobs:
2222

2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626

2727
# Cache node_modules for faster builds
2828
- name: Cache Node.js modules
29-
uses: actions/cache@v3
29+
uses: actions/cache@v4
3030
with:
3131
path: uapi/node_modules
3232
key: ${{ runner.os }}-node-${{ hashFiles('uapi/package-lock.json') }}
3333

3434
- name: Setup Node.js
35-
uses: actions/setup-node@v3
35+
uses: actions/setup-node@v4
3636
with:
3737
node-version: 18
3838

@@ -65,7 +65,7 @@ jobs:
6565
run: npm run build-storybook
6666

6767
- name: Upload Storybook static build
68-
uses: actions/upload-artifact@v3
68+
uses: actions/upload-artifact@v4
6969
with:
7070
name: storybook-static
7171
path: uapi/storybook-static
@@ -80,16 +80,16 @@ jobs:
8080

8181
steps:
8282
- name: Checkout repository
83-
uses: actions/checkout@v3
83+
uses: actions/checkout@v4
8484

8585
- name: Cache Node.js modules
86-
uses: actions/cache@v3
86+
uses: actions/cache@v4
8787
with:
8888
path: uapi/node_modules
8989
key: ${{ runner.os }}-node-${{ hashFiles('uapi/package-lock.json') }}
9090

9191
- name: Setup Node.js
92-
uses: actions/setup-node@v3
92+
uses: actions/setup-node@v4
9393
with:
9494
node-version: 18
9595

@@ -102,13 +102,13 @@ jobs:
102102
run: npm test -- --coverage
103103

104104
- name: Upload coverage report
105-
uses: actions/upload-artifact@v3
105+
uses: actions/upload-artifact@v4
106106
with:
107107
name: coverage-report
108108
path: uapi/coverage
109109

110110
- name: Upload coverage to Codecov (mocks)
111-
uses: codecov/codecov-action@v3
111+
uses: codecov/codecov-action@v5
112112
with:
113113
flags: mocks
114114
directory: ./uapi/coverage
@@ -139,16 +139,16 @@ jobs:
139139

140140
steps:
141141
- name: Checkout repository
142-
uses: actions/checkout@v3
142+
uses: actions/checkout@v4
143143

144144
- name: Cache Node.js modules
145-
uses: actions/cache@v3
145+
uses: actions/cache@v4
146146
with:
147147
path: uapi/node_modules
148148
key: ${{ runner.os }}-node-${{ hashFiles('uapi/package-lock.json') }}
149149

150150
- name: Setup Node.js
151-
uses: actions/setup-node@v3
151+
uses: actions/setup-node@v4
152152
with:
153153
node-version: 18
154154

@@ -224,26 +224,26 @@ jobs:
224224
# Upload artifacts so that PR authors/reviewers can inspect results
225225
# ------------------------------------------------------------------
226226
- name: Upload Playwright HTML Report
227-
uses: actions/upload-artifact@v3
227+
uses: actions/upload-artifact@v4
228228
with:
229229
name: playwright-html-report
230230
path: uapi/playwright-report
231231

232232
- name: Upload Playwright Artifacts (screenshots, traces, videos)
233-
uses: actions/upload-artifact@v3
233+
uses: actions/upload-artifact@v4
234234
with:
235235
name: playwright-artifacts
236236
path: uapi/test-results
237237

238238
# Jest coverage from this job (real DB) can override/merge with mocks if desired
239239
- name: Upload coverage (real-db) report
240-
uses: actions/upload-artifact@v3
240+
uses: actions/upload-artifact@v4
241241
with:
242242
name: coverage-report-real-db
243243
path: uapi/coverage
244244

245245
- name: Upload coverage to Codecov (real-db)
246-
uses: codecov/codecov-action@v3
246+
uses: codecov/codecov-action@v5
247247
with:
248248
flags: real-db
249249
directory: ./uapi/coverage
@@ -257,7 +257,7 @@ jobs:
257257
runs-on: ubuntu-latest
258258
needs: lint-build
259259
steps:
260-
- uses: actions/checkout@v3
260+
- uses: actions/checkout@v4
261261
- uses: reviewdog/action-actionlint@v1
262262
with:
263263
github_token: ${{ secrets.GITHUB_TOKEN }}
@@ -267,6 +267,7 @@ jobs:
267267
# --------------------------------------------------------------------------
268268
codeql-analysis:
269269
name: CodeQL Analysis
270+
if: ${{ vars.ENABLE_ADVANCED_CODEQL == '1' }}
270271
permissions:
271272
actions: read
272273
security-events: write
@@ -276,15 +277,15 @@ jobs:
276277
matrix:
277278
language: [ 'javascript-typescript' ]
278279
steps:
279-
- uses: actions/checkout@v3
280+
- uses: actions/checkout@v4
280281
- name: Initialize CodeQL
281-
uses: github/codeql-action/init@v2
282+
uses: github/codeql-action/init@v4
282283
with:
283284
languages: ${{ matrix.language }}
284285
- name: Autobuild
285-
uses: github/codeql-action/autobuild@v2
286+
uses: github/codeql-action/autobuild@v4
286287
- name: Perform CodeQL Analysis
287-
uses: github/codeql-action/analyze@v2
288+
uses: github/codeql-action/analyze@v4
288289

289290
# --------------------------------------------------------------------------
290291
# 6. GitHub Super-Linter (Markdown, YAML, Shell, etc.)

.github/workflows/docs-refresh.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919

2020
- name: Setup pnpm
2121
uses: pnpm/action-setup@v4
22-
with:
23-
version: 9
2422

2523
- name: Install dependencies
2624
run: pnpm install --frozen-lockfile
@@ -35,4 +33,3 @@ jobs:
3533
git status --porcelain
3634
exit 1
3735
fi
38-

.github/workflows/ga1.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)