8000 Clarify MiniGraf validation comments (main) by adityamukho · Pull Request #1002 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/bench/bindings-report.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ function verifyEvidence(binding, metrics, directory, identity) {
throw new Error('wrong WASI lockfile hash');
}
const rawPath = path.join(directory, 'benchmark/samples.jsonl');
// Keep #839's validator authoritative for sample IDs/counts/iterations and
// the complete/check markers, including rejection of smoke streams.
// Use the #839 validator to check sample IDs, counts, iteration counts,
// and complete/check markers. It rejects smoke streams.
const validation = spawnSync('python3', ['-I', path.join(measuredHarness, 'validate.py'), binding, rawPath], { encoding: 'utf8' });
if (validation.status !== 0) throw new Error(`invalid raw samples: ${validation.stderr || validation.error}`);
const records = read('benchmark/samples.jsonl').trim().split('\n').map(parseMetrics);
Expand Down
3 changes: 2 additions & 1 deletion fuzz/fuzz_targets/corrupt_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
//! - then up to 16 edits of 5 bytes: offset (u32 LE, modulo the file length)
//! and a byte to xor in (0 becomes 1)
//!
//! Checksums are **not** recomputed: the CRCs are the contract under test.
//! Leave the original checksums in place so the test checks whether the reader
//! detects corrupted bytes.
//! Each query must fail or return exactly the answer of the last generation or
//! of the one before it (the meta fallback when the active meta page is
//! damaged), and every query that answers must agree on one generation. A
Expand Down
Loading
0