-
Notifications
You must be signed in to change notification settings - Fork 0
189 lines (175 loc) · 5.95 KB
/
Copy pathci.yml
File metadata and controls
189 lines (175 loc) · 5.95 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
name: CI
on:
workflow_dispatch:
push:
branches: [ master, main ]
pull_request:
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: universal-refiner
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- name: Setup Node 22
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '22'
- name: Install dependencies
run: npm ci --no-fund
- name: Rebuild native modules
run: npm rebuild better-sqlite3
- name: Build
run: npm run build
- name: Run tests
run: npm run test:coverage
acceptance:
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: universal-refiner
strategy:
fail-fast: false
matrix:
model-order:
- primary
- reversed
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '22'
cache: npm
cache-dependency-path: universal-refiner/package-lock.json
- run: npm ci --no-fund
- run: npm rebuild better-sqlite3
- run: npm run build
- name: Run all-tool and provider acceptance
run: npm run test:acceptance
- name: Run fake-model semantic acceptance
env:
PROMPT_REFINER_PRIMARY_MODEL: ${{ matrix.model-order == 'primary' && 'gemma3:12b' || 'gemma3:1b' }}
PROMPT_REFINER_FALLBACK_MODEL: ${{ matrix.model-order == 'primary' && 'gemma3:1b' || 'gemma3:12b' }}
run: npm run acceptance:semantic
- name: Run tracked-turn acceptance
run: npm run acceptance:tracked-turn
- name: Run real stdio MCP acceptance
run: npm run acceptance:stdio-mcp
dashboard-e2e:
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: universal-refiner
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '22'
cache: npm
cache-dependency-path: universal-refiner/package-lock.json
- run: npm ci --no-fund
- run: npm rebuild better-sqlite3
- run: npx playwright install --with-deps chromium
- run: npm run build
- name: Run dashboard browser E2E
run: npm run test:e2e
stress:
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: universal-refiner
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '22'
cache: npm
cache-dependency-path: universal-refiner/package-lock.json
- run: npm ci --no-fund
- run: npm rebuild better-sqlite3
- run: npm run build
- name: Run restart and in-process concurrency tests
run: npm run test:stress
- name: Run multi-process EventStore stress
env:
PROMPT_REFINER_STRESS_WORKERS: '4'
PROMPT_REFINER_STRESS_WRITES: '100'
run: npm run stress:event-store
- name: Run abrupt recovery proof
run: npm run recovery:event-store:abrupt
- name: Run EventStore soak
run: npm run stress:event-store:soak
windows:
runs-on: windows-latest
timeout-minutes: 20
defaults:
run:
working-directory: universal-refiner
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '22'
cache: npm
cache-dependency-path: universal-refiner/package-lock.json
- run: npm ci --no-fund
- run: npm rebuild better-sqlite3
- run: npm run build
- run: npm run test:coverage
- run: npm run test:acceptance
- run: npm run acceptance:semantic
- run: npm run acceptance:tracked-turn
- run: npm run acceptance:stdio-mcp
- run: npm run test:stress
- run: npm run stress:event-store
- run: npm run recovery:event-store:abrupt
- run: npm run stress:event-store:soak
- run: npm run acceptance:package-runtime
supply-chain:
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: universal-refiner
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: '22'
cache: npm
cache-dependency-path: universal-refiner/package-lock.json
- run: npm ci --no-fund
- run: npm run security:audit
- run: npm run security:audit:all
- run: npm run security:secrets
- run: npm run build
- run: npm run package:check
- run: npm run acceptance:package-runtime
release-gate:
if: always()
needs: [build-and-test, acceptance, dashboard-e2e, stress, windows, supply-chain]
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Require every enterprise gate
env:
BUILD: ${{ needs['build-and-test'].result }}
ACCEPTANCE: ${{ needs.acceptance.result }}
DASHBOARD_E2E: ${{ needs['dashboard-e2e'].result }}
STRESS: ${{ needs.stress.result }}
WINDOWS: ${{ needs.windows.result }}
SUPPLY_CHAIN: ${{ needs['supply-chain'].result }}
run: |
test "$BUILD" = "success"
test "$ACCEPTANCE" = "success"
test "$DASHBOARD_E2E" = "success"
test "$STRESS" = "success"
test "$WINDOWS" = "success"
test "$SUPPLY_CHAIN" = "success"