Repository navigation
flashtex build: re-pin vendor/pdf and report failed on output write failure (#779) - #785
Merged
Merged
Conversation
The vendored pdf snapshot predated the exact writer's colour-space fixes, so flashtex build still rejected rgb colour components that main's crates/pdf accepts. Copied with git archive origin/main:crates/pdf; identical to main except PIN. Implementation-Agent: daniel-parent (Claude Opus 5, Commander session) Commit-Executor: daniel-parent Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
A render that succeeded but whose PDF or --v2 write failed printed ok and exited 0. The status is now failed, so the summary line, --json and exit code 1 agree with what is on disk. Regression tests cover a PDF write failure, a --v2-only write failure, and the rgb \textcolor case. Perf digests re-recorded for math-sheet, ps-calculus, twelvept-plain and math-heavy (export.pdf only): the PDF writer bytes changed with the re-pin; rasters of the three fixture cases are identical at 100 dpi. Reviewed: fresh read-only Codex gpt-5.6-luna max, APPROVE after test tightening (exit 1, failed status in summary and JSON). Implementation-Agent: daniel-parent (Claude Opus 5, Commander session) Commit-Executor: daniel-parent Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
This was referenced Sep 17, 2026
ItsAkilesh
pushed a commit
to ItsAkilesh/flashtex
that referenced
this pull request
Sep 18, 2026
…twelvept-plain in CI twelvept-plain: all digests moved with flash-tex#741 (df95d75), which fixed adjacent-list \addvspace (max, not sum; vertical mode after \@endparenv), verified by the pdflatex oracle tests in render-pipeline/tests/adjacent_list_skips.rs. Bisected: the baseline matched through flash-tex#719 and flipped at flash-tex#741. CI never caught it because the case was not in perf.yml's list; it is the only fixture with adjacent same-level lists, so it is added. tikz-heavy: export.pdf now succeeds after flash-tex#785's vendor/pdf re-pin (gs support for pgf constant alpha); qpdf --check clean, real vector paths. The baseline gains that digest (the gate never flags a digest missing from the baseline). Full-corpus gate: OUTPUT CHANGED on exactly the 10 twelvept-plain digests before; OK (549 metrics, no output change) after. Implementation-Agent: claude-opus-5 subagent of daniel-parent Commit-Executor: daniel-parent Co-authored-by: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
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.
Fixes #779.
Problem
With a colour like
\textcolor[rgb]{0.1,0.4,0.8},flashtex buildwrote no PDF but still printedokand exited 0.There were two causes:
render-pipeline/vendor/pdfwas an old snapshot whose exact writer rejected those colour components. Main'scrates/pdfalready handles them.Changes
dfab5fd: re-pins
vendor/pdffromgit archive origin/main:crates/pdf. Apart fromPIN, it is byte-identical to main's crate. The VENDORING.md row is updated.837298e:
buildnow sets the status tofailedwhen the PDF or--v2write fails, so exit code 1, the stderr summary and the--jsonstatus all sayfailed. It adds three tests:a_pdf_write_failure_is_not_reported_as_oka_v2_write_failure_is_not_reported_as_ok, where the PDF still writes but the--v2write fails\textcolorregression inxcolor_oracle.rsBoth CLI tests fail with the
main.rschange reverted and pass with it.Perf digests
Only the
export.pdfdigest changed. It was re-recorded for four cases withmerge_digests.py --case: math-sheet, ps-calculus, twelvept-plain and math-heavy. The layout digests are unchanged.The PDF writer's bytes changed with the re-pin. Rasters of the three fixture cases are identical at 100 dpi. math-heavy is a generated case and wasn't rasterised.
Review
Fresh read-only Codex review (gpt-5.6-luna, max effort), run twice:
Attribution
🤖 Generated with Claude Code