Skip to content
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

Action fails on Windows because Chocolatey's servers are at capacity #649

Open
glatterf42 opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@glatterf42
Copy link

Describe the bug

Beginning about a month ago, some of our CI tests on Windows began to fail quite frequently in the Run ts-graphviz/setup-graphviz@v2 step. See this recent run, for example.
The error always is always exactly this:

Run ts-graphviz/setup-graphviz@v2
  with:
    ubuntu-skip-apt-update: false
    macos-skip-brew-update: false
  env:
    depth: 100
    pythonLocation: C:\hostedtoolcache\windows\Python\3.8.10\x64
    PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\3.8.10\x64/lib/pkgconfig
    Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.8.10\x64
    Python2_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.8.10\x64
    Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.8.10\x64
C:\ProgramData\Chocolatey\bin\choco.exe install graphviz
Chocolatey v2.3.0
Installing the following packages:
graphviz
By installing, you accept licenses for the packages.
Downloading package from source 'https://community.chocolatey.org/api/v2/'
[NuGet] Error downloading 'Graphviz.12.1.2 : chocolatey-core.extension [1.3.5, )' from 'https://community.chocolatey.org/api/v2/package/Graphviz/12.1.2'.
[NuGet] Response status code does not indicate success: 503 (Service Unavailable: Back-end server is at capacity).
[NuGet] Error downloading 'Graphviz.12.1.2 : chocolatey-core.extension [1.3.5, )' from 'https://community.chocolatey.org/api/v2/package/Graphviz/12.1.2'.
[NuGet] Response status code does not indicate success: 503 (Service Unavailable: Back-end server is at capacity).
Graphviz not installed. An error occurred during installation:
 Error downloading 'Graphviz.12.1.2 : chocolatey-core.extension [1.3.5, )' from 'https://community.chocolatey.org/api/v2/package/Graphviz/12.1.2'.
Graphviz package files install failed with exit code 1. Performing other installation steps.
The install of Graphviz was NOT successful.
Graphviz not installed. An error occurred during installation:
 Error downloading 'Graphviz.12.1.2 : chocolatey-core.extension [1.3.5, )' from 'https://community.chocolatey.org/api/v2/package/Graphviz/12.1.2'.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - Graphviz (exited 1) - Graphviz not installed. An error occurred during installation:
 Error downloading 'Graphviz.12.1.2 : chocolatey-core.extension [1.3.5, )' from 'https://community.chocolatey.org/api/v2/package/Graphviz/12.1.2'.
Error: The process 'C:\ProgramData\Chocolatey\bin\choco.exe' failed with exit code 1

We are not performing this step for our tests on Macos (see our workflow file) and on Ubuntu, installation happens from http://azure.archive.ubuntu.com/ubuntu instead of Chocolatey. This service seems to have become so popular that our CI regularly fails because their servers are at capacity.

To Reproduce

Take a look at our CI runs, this issue will appear at least once a week at the moment.
Alternatively, run your own CI tests that setup-graphviz on Windows. Maybe even several times a day to catch a period where their servers are at capacity.

Expected behavior

The download should work more reliably.

Additional context

Is there any way to install graphviz on Windows without relying on a flaky service?

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

No branches or pull requests

1 participant