insightsengineering / thevalidatoR

Github Action that generates R Package Validation documentation 🏁
https://github.com/marketplace/actions/r-package-validation-report
MIT License
57 stars 5 forks source link

[Bug]: Need to handle missing LaTeX fonts more gracefully #66

Closed cicdguy closed 5 months ago

cicdguy commented 11 months ago

What happened?

Missing LaTeX fonts cause the workflow to fail.

Relevant log output

20/20 [traceability3]  
output file: template.knit.md

/usr/local/bin/pandoc +RTS -K512m -RTS template.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output /__w/r.pkg.template/r.pkg.template/validation_report.tex --lua-filter /usr/local/lib/R/site-library/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /usr/local/lib/R/site-library/rmarkdown/rmarkdown/lua/latex-div.lua --embed-resources --standalone --table-of-contents --toc-depth 2 --number-sections --highlight-style tango --pdf-engine pdflatex --variable graphics --include-in-header /tmp/RtmpSME12E/rmarkdown-str62e7655139a.html --variable 'geometry:margin=1in' --include-in-header /tmp/RtmpSME12E/rmarkdown-str62e38e0477d.html 
===============================================================================
tlmgr itself needs to be updated.
Please do this via either
  tlmgr update --self
or by getting the latest updater for Unix-ish systems:
  https://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh
and/or Windows systems:
  https://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.exe
Then continue with other updates as usual.
===============================================================================
tlmgr: Terminating; please see warning above!
tlmgr: package repository https://mirror.mwt.me/ctan/systems/texlive/tlnet (verified)
tlmgr update --self
Warning: WARNING]: resetting $HOME value (was /github/home) to root's actual home (/root).
tlmgr: package repository https://ctan.math.washington.edu/tex-archive/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: fancyhdr [6k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /opt/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr: command log updated: /opt/TinyTeX/texmf-var/web2c/tlmgr-commands.log
tlmgr: package repository https://ctan.mirrors.hoobly.com/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: multirow [3k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /opt/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr: command log updated: /opt/TinyTeX/texmf-var/web2c/tlmgr-commands.log
tlmgr: package repository https://mirror.mwt.me/ctan/systems/texlive/tlnet (verified)
[1/1, ??:??/??:??] install: wrapfig [10k]
running mktexlsr ...
done running mktexlsr.
tlmgr: package log updated: /opt/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr: command log updated: /opt/TinyTeX/texmf-var/web2c/tlmgr-commands.log

/opt/TinyTeX/bin/x86_64-linux/tlmgr: signature verification error of /opt/TinyTeX/tlpkg/texlive.tlpdb.main.efa9581e6c0602476faf99fb93c50268 from https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb: cryptographic signature verification of
  /tmp/_KRM_n6mbP/IjMLq5UjWl
against
  https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb.sha512.asc
failed. Output was:
gpg: Signature made Sun 19 Nov 2023 12:47:42 AM UTC
gpg:                using RSA key D8F2F86057A857E42A88106A4CE1877E19438C70
gpg: BAD signature from "TeX Live Distribution <tex-live@tug.org>" [ultimate]

Please try from a different mirror and/or wait a few minutes
and try again; usually this is because of transient updates.
If problems persist, feel free to report to texlive@tug.org.

! LaTeX Error: File `colortbl.sty' not found.

! Emergency stop.
<read *> 

Error: LaTeX failed to compile /__w/r.pkg.template/r.pkg.template/validation_report.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See validation_report.log for more info.
In addition: Warning message:
In system2("tlmgr", args, ...) :
  running command ''tlmgr' search --file --global '/colortbl.sty'' had status 1
Execution halted

Code of Conduct

Contribution Guidelines

Security Policy

cicdguy commented 8 months ago

Another occurrence:

xz: (stdin): Unexpected end of input

/opt/TinyTeX/bin/x86_64-linux/tlmgr: checksum error when downloading /tmp/gyFbP7OGVZ/hxGHb5uYPA from https://us.mirrors.cicku.me/ctan/systems/texlive/tlnet/tlpkg/texlive.tlpdb: digest disagree
tlmgr conf auxtrees add '/usr/local/lib/R/share/texmf'
tlmgr: already registered auxtree: /usr/local/lib/R/share/texmf
tlmgr: action conf returned an error; continuing.
tlmgr: An error has occurred. See above messages. Exiting.
tlmgr: package repository https://mirror.las.iastate.edu/tex-archive/systems/texlive/tlnet (verified)
tlmgr: no self-updates for tlmgr available
Run tlmgr install courier ec
  tlmgr install courier ec
  shell: bash --noprofile --norc -e -o pipefail {0}
  env:
    package_subdirectory: .
    PATH: /__w/_temp/TinyTeX/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    GITHUB_PAT: ***
xz: (stdin): Unexpected end of input
cicdguy commented 5 months ago

Should no longer be an issue provided that v2 now uses typst