test(corpus): reproducer fixtures for section-drop bugs (#95/#96/#97) - #98
Merged
Conversation
Two PII-free synthetic fixtures under tests/fixtures/pdfs/unknown/ that reproduce the parsing regressions tracked in #95, #96, and #97 (children of section-extraction epic #94). Both rendered from hand-authored HTML via headless Chrome (Skia/PDF), same method as the existing chromium two-column fixture; synthetic personas, @example.com, reserved (408) 555-01xx phones. - student-projects-activities-singlecol.pdf — single-column resume, section order Education -> Projects -> Experience -> Activities. Reproduces all three children: no projects field (#95), no achievements/activities field (#96), and an education range "Sep 2024 - July 2025" that parses to year:"2024" only, dropping the end date (#97). Baked snapshot shows experienceCount:2 (only the real Experience entries) with projects/activities absent. - two-column-achievements-sidebar.pdf — two-column resume with an ACHIEVEMENTS / STRENGTHS sidebar. two_column trigger fires, no achievements field, 4 clean Experience entries (sidebar not bleeding): the two-column boundary variant of #96. No education section, so educationCount:0 is correct (this fixture does not exercise #97). Snapshots are keys/counts-only (no field values) per PII policy; they capture today's buggy output, so the bake-fixtures diff will prove the fix once #94/#95/#96/#97 land. Refs #94 Refs #95 Refs #96 Refs #97
4 tasks
s-annam
added a commit
that referenced
this pull request
Jun 25, 2026
…gs (#98) Two PII-free synthetic fixtures under tests/fixtures/pdfs/unknown/ that reproduce the parsing regressions tracked in #95, #96, and #97 (children of section-extraction epic #94). Both rendered from hand-authored HTML via headless Chrome (Skia/PDF), same method as the existing chromium two-column fixture; synthetic personas, @example.com, reserved (408) 555-01xx phones. - student-projects-activities-singlecol.pdf — single-column resume, section order Education -> Projects -> Experience -> Activities. Reproduces all three children: no projects field (#95), no achievements/activities field (#96), and an education range "Sep 2024 - July 2025" that parses to year:"2024" only, dropping the end date (#97). Baked snapshot shows experienceCount:2 (only the real Experience entries) with projects/activities absent. - two-column-achievements-sidebar.pdf — two-column resume with an ACHIEVEMENTS / STRENGTHS sidebar. two_column trigger fires, no achievements field, 4 clean Experience entries (sidebar not bleeding): the two-column boundary variant of #96. No education section, so educationCount:0 is correct (this fixture does not exercise #97). Snapshots are keys/counts-only (no field values) per PII policy; they capture today's buggy output, so the bake-fixtures diff will prove the fix once #94/#95/#96/#97 land. Refs #94 Refs #95 Refs #96 Refs #97
s-annam
added a commit
that referenced
this pull request
Jun 28, 2026
…gs (#98) Two PII-free synthetic fixtures under tests/fixtures/pdfs/unknown/ that reproduce the parsing regressions tracked in #95, #96, and #97 (children of section-extraction epic #94). Both rendered from hand-authored HTML via headless Chrome (Skia/PDF), same method as the existing chromium two-column fixture; synthetic personas, @example.com, reserved (408) 555-01xx phones. - student-projects-activities-singlecol.pdf — single-column resume, section order Education -> Projects -> Experience -> Activities. Reproduces all three children: no projects field (#95), no achievements/activities field (#96), and an education range "Sep 2024 - July 2025" that parses to year:"2024" only, dropping the end date (#97). Baked snapshot shows experienceCount:2 (only the real Experience entries) with projects/activities absent. - two-column-achievements-sidebar.pdf — two-column resume with an ACHIEVEMENTS / STRENGTHS sidebar. two_column trigger fires, no achievements field, 4 clean Experience entries (sidebar not bleeding): the two-column boundary variant of #96. No education section, so educationCount:0 is correct (this fixture does not exercise #97). Snapshots are keys/counts-only (no field values) per PII policy; they capture today's buggy output, so the bake-fixtures diff will prove the fix once #94/#95/#96/#97 land. Refs #94 Refs #95 Refs #96 Refs #97
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.
What
Adds two PII-free synthetic PDF fixtures (+ baked
*.expected.jsonsnapshots) undertests/fixtures/pdfs/unknown/that reproduce the parser regressions tracked by the children of epic #94. No parser changes — this lands the reproducers first so the fixes in #95/#96/#97 have a regression target.student-projects-activities-singlecolEducation → Projects → Experience → Activitiestwo-column-achievements-sidebarACHIEVEMENTS/STRENGTHSsidebarEvidence (today's buggy output, captured in the snapshots)
studentsnapshot has noprojectsinfieldsPopulated;experienceCount: 2(only the real Experience entries — project entries vanish, not mis-bucketed).achievementsfield in either snapshot; two-col firestwo_columnwith 4 clean Experience entries (sidebar not bleeding).student: education rangeSep 2024 - July 2025parses toyear: "2024"only (end date dropped); the range text also bleeds unstripped intoinstitution.Method & PII
Hand-authored HTML → headless Chrome
--print-to-pdf(Skia/PDF), same path as the existingchromium-two-column-sidebarfixture. Synthetic personas (Maya Lin / Jordan Avery),@example.com, reserved(408) 555-0123/0145phones (valid NANP area code +555exchange +0100–0199subscriber → passlibphonenumber-js, never ring). Verified clean across all four layers — body text, Info dict, full-binarystrings, and the counts-only snapshots. Source numbers absent everywhere.When #94/#95/#96/#97 land,
npm run bake-fixturesre-bake diff proves each fix.Refs #94
Refs #95
Refs #96
Refs #97