Add pdfmanagement-testphase to TinyTeX bundle#482
Conversation
The `latex-lab` package (added in 16ccf03) provides `\DocumentMetadata` support for PDF/A and PDF/UA standards. However, `latex-lab` loads `pdfmanagement-testphase` at runtime, and this package is not declared as a TeX Live dependency of `latex-lab`, so it doesn't get pulled in automatically when `latex-lab` is installed. This causes a slow auto-install (~10+ minutes on Windows) the first time a PDF/A document is compiled with TinyTeX, because tlmgr needs to update itself and then search for and install the missing package. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
cde6ab1 to
761eb0f
Compare
Why
|
yihui
left a comment
There was a problem hiding this comment.
That's okay to me. It will be nice if we could know in the future when this "testphase" package is no longer needed so we can remove it from the list accordingly (I'm not sure if we can tell it from our current GHA checks).
Thanks!
Hi @cderv,
I noticed that pdf-standard tests were taking a long time and timing out.
It's due to indirectly required package
pdfmanagement-testphase.So I asked DeepWiki how to add another package to
tinytex.Summary
pdfmanagement-testphasetotools/pkgs-yihui.txtThe
latex-labpackage (added in 16ccf03) provides\DocumentMetadatasupport for PDF/A and PDF/UA standards. However,latex-labloadspdfmanagement-testphaseat runtime, and this package is not declared as a TeX Live dependency oflatex-lab, so it doesn't get pulled in automatically when the TinyTeX bundle is built.This causes a slow auto-install (~10+ minutes on Windows) the first time a PDF/A document is compiled with TinyTeX, because
tlmgrneeds to update itself and then search for and install the missing package. We noticed this causing consistent CI timeouts in Quarto's test suite on Windows (example).Process followed
Per DeepWiki guidance for adding a package to the TinyTeX bundle:
pdfmanagement-testphasetotools/pkgs-yihui.txtin alphabetical ordertools/sort.Rcan be run to verify alphabetical order and deduplicate againstpkgs-custom.txttools/test-packages.Ris the full validation script (compiles test documents and verifies packages) — CI workflow.github/workflows/required-latex-pkgs.yamlshould run this automaticallyTest plan
pdfmanagement-testphaseis not already inpkgs-custom.txt(verified: it is not)pdfpagesandpdfsync)🤖 Generated with Claude Code