feat: expand test corpus from 2 to 7 formats with 1,794 documents#147
Merged
Conversation
- 80 HTML examples from MDN Learning Area (CC-BY-SA-2.5) - 30 HTML test fixtures from W3C Web Platform Tests (W3C-20150513) - 3 HTML5 Boilerplate templates (MIT) - 113 total standalone HTML files in documents/html/ - Add ATTRIBUTION.json entries for all 3 sources - Remove 3 pre-existing duplicate .doc files to fix check-duplicates.sh
Verified all 10 new attribution entries against actual source repositories: - Rust Book: CC-BY-4.0 -> MIT (dual-licensed MIT/Apache-2.0) - Docusaurus docs: MIT -> CC-BY-4.0 (per LICENSE-docs) - MDN Learning Area: CC-BY-SA-2.5 -> CC0-1.0 (per repo LICENSE) - W3C WPT: W3C-20150513 -> BSD-3-Clause (per LICENSE.md) - LibreOffice RTF: added triple-license note (MPL-2.0/LGPL-3.0+/GPL-3.0+)
Add 892 ODT test fixtures from two new sources: - LibreOffice Writer QA: 275 files (MPL-2.0, odfimport/odfexport/globalfilter) - ODF Toolkit: 617 files (Apache-2.0, DOM/validation/spec compliance tests) Includes odt_gather.py scraper for reproducibility. Removed 10 duplicates and 3 intentionally malformed test files.
…idation unzip handles Unicode ZIP entry paths inconsistently across distros, causing false negatives on CI (ubuntu-latest) for valid ODT files like unicode-path.odt. Python's zipfile module is consistent everywhere.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expand the DocSpec test corpus from 2 formats (DOCX, ODT) and ~256 documents to 7 formats and 1,794 documents — a 7× increase in coverage.
New formats added
Expanded existing format
What's included
scrape/) — Standalone Python scripts per format with shared utilities (rate limiting, robots.txt compliance, magic-byte validation, attribution tracking)check-duplicates.shextended for new extensionsAll CI checks pass
validate-licenses.sh✅ (16/16 SPDX identifiers valid)check-duplicates.sh✅ (no duplicates)check-zip-validity.sh✅ (1,249 ZIP-based files validated)License audit
All 16 attribution entries verified against actual source repository LICENSE files. 4 initial mismatches were found and corrected before this PR (see commit
e89f749).