[ci] switch from MiKTeX to tinytex on Windows R jobs (fixes #5600) #5602
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 #5600.
R CI jobs require a LaTeX distribution to build the package documentation. This PR proposes switching from MiKTeX to
{tinytex}
for Windows builds.Motivation
The use of MiKTeX has been the source of several multi-day outages in LightGBM's CI over the last few years (and most recently, #5600):
Several of those have had the resolution "wait a few days until changes in CTAN mirrors or other upstream sources are fixed". That's very disruptive to our development here, as it means either skipping R package CI jobs or not merging anything for multiple days.
I'm hoping that because
{tinytex}
is lighter-weight, it'll be more stable.I also believe using the GitHub Action https://github.com/r-lib/actions/tree/v2-branch/setup-tinytex will remove the maintenance burden of keeping up with MiKTeX and other updates upstream, since that action is actively maintained.
For more, see "Why TinyTex?" in the
{tinytex}
docs.