Skip to content

Fix CI on windows  #1986

Closed

Description

@cderv

TinyTeX installation issue...
Don't know why yet... 🤔

Activity

  1. self-assigned this
    on Dec 18, 2020
  2. yihui commented on Dec 18, 2020

    @yihui
    Collaborator

    Yes, that's really weird. I've never run into this issue on AppVeyor but it occurs in GHA frequently:

    C:\Users\RUNNER~1\AppData\Local\Temp>powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest $Env:TINYTEX_URL -OutFile install.zip" 
    Invoke-WebRequest : Unable to read data from the transport connection: An existing connection was forcibly closed by 
    the remote host.
    At line:1 char:82
    + ... Type]::Tls12; Invoke-WebRequest $Env:TINYTEX_URL -OutFile install.zip
    +                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Invoke-WebRequest], IOException
        + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
    
  3. cderv commented on Dec 18, 2020

    @cderv
    CollaboratorAuthor

    I use the action to a commit using the new binary install script. You can't see that quickly here because the action renames it.

    I may try to switch back to old install script for windows, or install myself with setup-tinytex.

    Issue is only on Windows, so weird.

    I'll look into that later.

  4. cderv commented on Dec 22, 2020

    @cderv
    CollaboratorAuthor

    Strangely, it works in PR checks like this one from 16hours ago
    https://github.com/rstudio/rmarkdown/runs/1590369732

    But not in last commit from 12 hours ago
    https://github.com/rstudio/rmarkdown/runs/1591592787

    Is this an issue with mutualized runner and when build are trigger ?
    I can't reproduce it for now in a dummy repo using the same actions setup-tinytex.

  5. cderv commented on Dec 22, 2020

    @cderv
    CollaboratorAuthor
  6. cderv commented on Dec 22, 2020

    @cderv
    CollaboratorAuthor
  7. added a commit that references this issue on Dec 22, 2020
  8. cderv commented on Dec 22, 2020

    @cderv
    CollaboratorAuthor

    This is now working after changing nothing specific to Windows in the PR. We won't know why - must be something wrong with the runner and a reset-like operation must have fixed it.

  9. cderv commented on Dec 22, 2020

    @cderv
    CollaboratorAuthor

    And it was even working before I merge the PR !!
    https://github.com/rstudio/rmarkdown/runs/1594296319

    I won't try to understand more. We'll see if this will happen again

  10. cderv commented on Dec 23, 2020

    @cderv
    CollaboratorAuthor

    And it is broken again... really weird.
    https://github.com/rstudio/rmarkdown/runs/1596340278

    Same issue :

    C:\Users\RUNNER~1\AppData\Local\Temp>powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest $Env:TINYTEX_URL -OutFile install.zip" 
    Invoke-WebRequest : Unable to read data from the transport connection: An existing connection was forcibly closed by 
    the remote host.
    
  11. reopened this on Dec 23, 2020
  12. cderv commented on Dec 23, 2020

    @cderv
    CollaboratorAuthor

    Possible that this could be related to reached server being busy... but it is odd that this only happens on windows then. https://stackoverflow.com/a/5420788/3436535

  13. cderv commented on Dec 23, 2020

    @cderv
    CollaboratorAuthor

    And it is working again. I believe there is something with Windows Runner and Powershell downloads - I used a smaller bundle (TinyTeX-1) and we'll see if we still have issues in the long run.

  14. github-actions commented on Jun 22, 2021

    @github-actions

    This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

  15. locked as resolved and limited conversation to collaborators on Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions