Skip to content

feat(fuzz): route generated Atheris corpora - #1200

Open
gaborbernat wants to merge 3 commits into
tox-dev:mainfrom
gaborbernat:fix/atheris-corpus-delivery-1014
Open

gaborbernat wants to merge 3 commits into
tox-dev:mainfrom
gaborbernat:fix/atheris-corpus-delivery-1014

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

Generated inputs need the parsing context of their executable owner. Atheris reads corpus files as byte inputs, while the qualified public consumers distinguish document, fragment and incremental operations. This follow-up routes exact generated HTML, XML and CSS bytes into those target directories.

A separate manifest links each admitted file to its hash, executed callback, qualified exports and generating production origins and bindings. Document seeds also reach the incremental parser and tokenizer; declaration and selector profiles retain their input contracts. Documented input rejections stay outside admitted target directories, and unexpected comparison failures remain findings.

The whole-stylesheet consumer passes the decoded input to the public minifier and attaches its sheet after parsing the fixed HTML context, preserving embedded </style> text. It reuses the numeric fixpoint and supported CSS semantic checks. Generated selectors that need another DOM context require their own bindings; protected failure headers and the remaining buffer clauses stay outside this component. Refs #1014.

@gaborbernat gaborbernat added the enhancement New feature or request label Oct 7, 2026
@gaborbernat
gaborbernat marked this pull request as ready for review October 7, 2026 05:27
@codspeed

codspeed Bot commented Oct 7, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 5.02%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 1 regressed benchmark
✅ 580 untouched benchmarks
⏩ 32 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_feature[select-relative-sibling] 43.2 µs 45.5 µs -5.02%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing gaborbernat:fix/atheris-corpus-delivery-1014 (23a63d6) with main (9ff1626)

Open in CodSpeed

Footnotes

  1. 32 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant