New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup-tinytex does not install tinytex without failling as a step in the workflow #213
Comments
Regarding error in the actions we get
but no error in the action
|
As note, about this, it happens "sometimes" and not other. I believe there could be a timeout in the underlying infrastructure to download the TinyTeX bundle through yihui.org/tinytex/ that redirect to appveyor. FYI @yihui |
I feel this will be hard to debug since it only happens "sometimes". The error "Invoke-WebRequest : The operation has timed out" seems to be from https://github.com/yihui/tinytex/blob/e1b43e503642bde86f00ec6428eb7f2e0faca566/tools/install-bin-windows.bat#L19 but I have no idea why it could time out. If the redirect to AppyVeyor is the culprit, setting the env var |
Installing TinyTeX on GHA using the BAT installed script for binaries has issue that this aims to resolve. `Invoke-Request` can have some issues with heavy binary and could be the cause of the unexpected error in GHA. We now use 3 download method, one after the other, starting with more recent .NET class to use in Powershell. The PR thread gives details about this. The script also has now some exit code to clearly signal error that could be handled by other tools using this script. (should solve r-lib/actions#213)
We've made a change in the script
Anyway, what was done in the script should improve this installation, and hopefully stop the workflow if an error is happening during the installation. |
@cderv any way to use the fix you made in rstudio/tinytex@b2d1bae in GH Actions? |
You should have nothing to do if you use Do you still have issues ? |
yeah, still having problems. for example https://github.com/ropensci/parzer/runs/1906575841?check_suite_focus=true#step:5:1 |
Interesting. This is a new one. This error is again hidden because the action does not finish by an error. So the Workflow does not error at tinytex installation step. That is too bad. However the issue with the download is from tinytex script. It seems you got a 308 redirect instead of 301. It was working for me 4 hours acid. I'll have a look tomorrow into that. There is some redirects happening and maybe this could cause troubles. One solution I explored was to directly download from the latest GitHub release. This is not yet use and still live hidden in my fork there: https://github.com/cderv/actions/tree/tinytex-bin/setup-tinytex-bin |
I just noticed this on Linux in the past few hours, but could have started earlier. At least in that repo, the last build without an error on that step on Linux was 5 days ago |
@sckott I think I got to the bottom of it. This is a combination of changes.
I'll open an issue in TinyTeX to add some tries maybe to see if we can use curl instead. Or just remove this 308 redirect thing to get directly the latest release. BTW it seems the redirect problem here is the consequence of an issue with yihui.org/tinytex/ - yihui/yihui.org#100 What you can do:
- uses: r-lib/actions/setup-tinytex@cf900fc6074207cb2793ab036f32e1e35c6d84cd
- uses: r-lib/actions/setup-tinytex@v1
env:
TINYTEX_VERSION: 2021.02 I would do the latter - this will install a fix bundle but you can easily update tlmgr and the package after if needed. You can control the bundle installed with Regarding this issue in r-lib/actions, it seems the wget error did not throw a workflow step error. I'll see why. Hope it helps. Thanks for the report. |
Thanks very much. I agree seems better to use the second option. And it worked! Thanks |
@sckott this is now fixed on the TinyTeX side. |
awesome, thanks! |
Found solution here: r-lib/actions#213 (comment)
I have been battling with this error as well. Thanks for providing a quick workaround solution. I also implemented option 2 above and it worked nicely, but afterwards I realized that due to the fix on the TinyTex side it was no longer necessary. Thanks anyway! |
As I understand this is now fixed. |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue |
On windows, I have a failing TinyTeX installation. However, the step shows as success on GHA.
It took me sometimes to understand that there was an error as I was confident the step was succeeded because the workflow has no stopped. I think the actions should clearly fail to prevent from misleading bug search.
Here an example of this :
https://github.com/rstudio/rmarkdown/pull/1958/checks?check_run_id=1443184428#step:6:33
It seems the actions is failing due to a timeout but that is another topic. This issue is only about a clear fail of the
setup-tinytex
action if nothing was installed.The text was updated successfully, but these errors were encountered: