ReviewOS

also looking at this

pantry-pm/pantry

fix: hydrate durable registry snapshots before serving writes

#244
Merged chris wants to merge codex/wildloop-registry-rollout into main
11 files +202 -35
packages/registry/src/build-status.test.tsmodified+5-4
Changes to packages/registry/src/build-status.test.ts
@@ -1,3 +1,4 @@
1import { S3RequestError } from './storage/aws-client'
12import { describe, expect, it } from 'bun:test'
23import { BuildStatusStore } from './storage/build-status'
34
@@ -7,7 +8,7 @@ function mockBucket() {
78 const client = {
89 async getObjectBuffer(_bucket: string, key: string): Promise<Buffer> {
910 const value = objects.get(key)
10 if (!value) throw new Error('S3 GET failed: 404 Not Found')
11 if (!value) throw new S3RequestError('GET', 404, 'NoSuchKey')
1112 return value
1213 },
1314 async putObject(input: { key: string, body: Buffer | string }): Promise<void> {
@@ -74,7 +75,7 @@ describe('BuildStatusStore partial coverage', () => {
7475 const client = {
7576 async getObjectBuffer(_bucket: string, key: string): Promise<Buffer> {
7677 const value = objects.get(key)
77 if (!value) throw new Error('S3 GET failed: 404 Not Found')
78 if (!value) throw new S3RequestError('GET', 404, 'NoSuchKey')
7879 return value
7980 },
8081 async putObject(input: { key: string, body: Buffer | string }): Promise<void> {
@@ -135,7 +136,7 @@ describe('BuildStatusStore partial coverage', () => {
135136 const client = {
136137 async getObjectBuffer(_bucket: string, key: string): Promise<Buffer> {
137138 const value = objects.get(key)
138 if (!value) throw new Error('S3 GET failed: 404 Not Found')
139 if (!value) throw new S3RequestError('GET', 404, 'NoSuchKey')
139140 return value
140141 },
141142 async putObject(input: { key: string, body: Buffer | string }): Promise<void> {
@@ -196,7 +197,7 @@ describe('BuildStatusStore retired platforms', () => {
196197 const client = {
197198 async getObjectBuffer(_bucket: string, key: string): Promise<Buffer> {
198199 const value = objects.get(key)
199 if (!value) throw new Error('S3 GET failed: 404 Not Found')
200 if (!value) throw new S3RequestError('GET', 404, 'NoSuchKey')
200201 return value
201202 },
202203 async putObject(input: { key: string, body: Buffer | string }): Promise<void> {