Commit c618b9c
authored
status.ts's storeIntegrityChecks and migrate-cli.ts's STORES are both meant to
enumerate every durable local SQLite store in the package -- each file's own
comment says to keep it in sync with the other. Both listed the same sixteen
stores, but orb-export.sqlite3 (the opt-in Orb telemetry export's per-instance
HMAC secret and export cursor, #4277/#5681) was never added when it shipped.
The effect: a corrupted orb-export.sqlite3 was invisible to
`loopover-miner doctor`'s per-store integrity sweep, and `loopover-miner
migrate` never brought it up to date, unlike every other store the package
ships. Same gap class already fixed for policy-doc-cache (#7238),
ranked-candidates + deny-hook-synthesis (#8008/#8036), and four earlier
omissions (#6768).
Adds the store to both lists using each list's existing entry shape
(no restructuring): ["orb-export", resolveOrbExportDbPath(env)] in status.ts
and { name, resolveDbPath, open } in migrate-cli.ts. Both resolver/opener
signatures already match the sibling entries, so no casts are needed.
Updates the two tests that pin the lists exactly -- the migrate test's
store-name array (now seventeen, same order) and the doctor test's
store-integrity check names -- and adds a #8318 regression assertion beside
the existing #6768/#8008 ones.
1 parent d09fbe2 commit c618b9c
4 files changed
Lines changed: 14 additions & 1 deletion
File tree
- packages/loopover-miner/lib
- test/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
381 | 382 | | |
382 | 383 | | |
383 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
384 | 388 | | |
385 | 389 | | |
386 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | | - | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
0 commit comments