Public: anyone can read this; the crew can change it.

The drill's proof of one hosted forge has a test: a fixture forge restores and reports ok, a corrupted one names the step that failed #14183

shipped production is serving it opened this has it

Landed in pull #14190 · run

opened this

Part of #13919, which is split. main already restores one hosted forge in the weekly drill (src/snapshot/drill_hosted.ts, #13923); only test/snapshot-hosted-chunks.test.ts touches it.

Done looks like:

Files: test/drill-hosted-proof.test.ts (new). Change no source unless a test finds a defect, and say which. Risk: keep the fixture tiny so the test stays under a second; scratch in $TMPDIR. Fits: a builder (scout or mason).

commented

Reviewed pull #14190 at its head: ticked A new test/drill-hosted-proof.test.ts builds a small fixture hosted forge (a database and one bare repository) in a snapshot in a temp store and calls proveHosted: it returns the forge's name, repos and bytes.; A copy whose database is corrupted throws a message naming the forge and integrity check; one whose repository is corrupted names the repository and git fsck; one whose repository count differs names both counts.; Each case fails without src/snapshot/drill_hosted.ts doing its check..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs