Commit 173e7f2
authored
feat: external opcode metadata for archive sources (#180)
## Summary
- Adds `opcodes` and `opcodes_file` fields to the archive source config,
allowing opcode count data to be provided via an external JSON file when
not using EEST fixtures
- Opcode data is written to `opcode_count` at the top level of each test
in `summary.json`, and the UI opcode heatmap/test detail views now read
from this unified field (with fallback to `eest.info.opcode_count` for
backward compatibility)
- Adds archive source documentation to `docs/configuration.md` and
`config.example.yaml` which were previously missing
## Config example
```yaml
source:
archive:
file: https://github.com/.../artifacts/6222084759
opcodes: "opcodes_tracing.json"
# Optional: separate archive for the opcodes file
opcodes_file: https://github.com/.../artifacts/6222074312
steps:
test:
- "perf-devnet-3/testing/*.txt"
```
## Test plan
- [x] `go build ./pkg/executor/... ./pkg/config/...` compiles
- [x] `go test ./pkg/executor/... ./pkg/config/...` passes
- [x] `golangci-lint run` passes on changed packages
- [x] TypeScript type-checks with `npx tsc --noEmit`
- [x] Manual: run with archive source + opcodes config, verify
`summary.json` contains `opcode_count` per test
- [x] Manual: verify UI opcode heatmap renders for non-EEST suite1 parent 58f1170 commit 173e7f2
10 files changed
Lines changed: 390 additions & 25 deletions
File tree
- docs
- pkg
- config
- executor
- ui/src
- api
- components/suite-detail
- pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
133 | 153 | | |
134 | 154 | | |
135 | 155 | | |
| |||
141 | 161 | | |
142 | 162 | | |
143 | 163 | | |
144 | | - | |
| 164 | + | |
145 | 165 | | |
146 | 166 | | |
147 | 167 | | |
| |||
154 | 174 | | |
155 | 175 | | |
156 | 176 | | |
157 | | - | |
| 177 | + | |
158 | 178 | | |
159 | 179 | | |
160 | 180 | | |
| |||
163 | 183 | | |
164 | 184 | | |
165 | 185 | | |
166 | | - | |
| 186 | + | |
167 | 187 | | |
168 | 188 | | |
169 | 189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
299 | 299 | | |
300 | 300 | | |
301 | 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 | + | |
302 | 342 | | |
303 | 343 | | |
304 | 344 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
| 339 | + | |
338 | 340 | | |
339 | 341 | | |
340 | 342 | | |
| |||
0 commit comments