Skip to content

Conversation

@mcdurdin
Copy link
Member

@mcdurdin mcdurdin commented Jun 3, 2021

Fixes #154.

Note that Choco does not currently have support for retries (chocolatey/choco#385).

GitHub Actions have a wrapper for choco install called Choco-Install, which automatically supports retries. Per comment at actions/runner-images#3493 (comment), I am trying this now to see if it does the job for us.

Fixes #154.

GitHub Actions have a wrapper for `choco install` called
`Choco-Install`, which automatically supports retries. Per comment at
actions/runner-images#3493 (comment),
I am trying this now to see if it does the job for us.

* See actions/runner-images#721 for implementation of
  `Choco-Install`.
@mcdurdin mcdurdin added this to the A15S6 milestone Jun 3, 2021
mcdurdin added 2 commits June 4, 2021 06:39
Not 100% sure on the quoting for --params, testing here.
Copy link
Contributor

@rc-swag rc-swag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcdurdin mcdurdin merged commit ceff28d into master Jun 4, 2021
@mcdurdin mcdurdin deleted the chore/154-choco-retries branch June 4, 2021 00:59
anthonyfok added a commit to anthonyfok/hugo that referenced this pull request Aug 14, 2022
Apparently, two instances of "choco install mingw" running simultaneously
for go-version 1.18.x and 1.19.x would cause at least one of them to
fail to connect to SourceForge:

    ERROR: The remote file either doesn't exist, is unauthorized,
    or is forbidden for url
    'https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/ray_linn/GCC-10.X-with-ada/GCC-10.2.0-crt-8.0.0-with-ada-20201019.7z/download'.
    Exception calling "GetResponse" with "0" argument(s):
    "The request was aborted: Could not create SSL/TLS secure channel."

With Choco-Install however, it just works, every time!

Thanks to keymanapp/api.keyman.com#156 for the great tip!

See the definition of the PowerShell Choco-Install function here:
https://github.com/actions/runner-images/blob/main/images/win/scripts/ImageHelpers/ChocoHelpers.ps1
anthonyfok added a commit to anthonyfok/hugo that referenced this pull request Aug 14, 2022
Apparently, two instances of "choco install mingw" running simultaneously
(for go-version 1.18.x and 1.19.x) would often cause at least one of them
to fail to connect to SourceForge:

    ERROR: The remote file either doesn't exist, is unauthorized,
    or is forbidden for url
    'https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/ray_linn/GCC-10.X-with-ada/GCC-10.2.0-crt-8.0.0-with-ada-20201019.7z/download'.
    Exception calling "GetResponse" with "0" argument(s):
    "The request was aborted: Could not create SSL/TLS secure channel."

With Choco-Install however, it simply works every single time!

Thanks to keymanapp/api.keyman.com#156 for the great tip!

See the definition of the PowerShell Choco-Install function here:
https://github.com/actions/runner-images/blob/main/images/win/scripts/ImageHelpers/ChocoHelpers.ps1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: test failing with SQL Server failing to download

2 participants