Skip to content
Open
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
15 changes: 15 additions & 0 deletions .github/fuzzing/fuzz-mdx-sanitizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,21 @@ for (let i = 0; i < ITERATIONS; i++) {
}
}

// Structured, single-line JSON summary — always emitted (pass or fail) so
// CI tooling can grep a machine-readable record instead of parsing the
// free-text lines above. Mirrors the VALIDATE_FORMULAE_SUMMARY /
// FUZZ_SUMMARY pattern already used in sibling repos.
const status = failures > 0 ? 'failed' : 'passed'
console.log(
`FUZZ_MDX_SUMMARY: ${JSON.stringify({
seed: SEED,
iterations: ITERATIONS,
corpus: corpus.length,
failures,
status,
})}`,
)

if (failures > 0) {
console.error(`\nFAILED: ${failures} violation(s) found`)
process.exit(1)
Expand Down
Loading