ts-graphviz / setup-graphviz

▶️ GitHub Action to set up Graphviz cross-platform(Linux, macOS, Windows).
https://github.com/marketplace/actions/setup-graphviz
MIT License
41 stars 7 forks source link

Occasional failures on `windows-latest` runner #557

Open stinodego opened 8 months ago

stinodego commented 8 months ago

Describe the bug

The action occasionally fails on Windows runners.

To Reproduce

I don't have a reproduction - mostly it works fine, but sometimes it fails. Here's an example failure: https://github.com/pola-rs/polars/actions/runs/7567589915/job/20607064007

Traceback:

``` Run ts-graphviz/setup-graphviz@v1 with: ubuntu-skip-apt-update: false macos-skip-brew-update: false env: RUSTFLAGS: -C debuginfo=0 pythonLocation: C:\hostedtoolcache\windows\Python\3.1[2](https://github.com/pola-rs/polars/actions/runs/7567589915/job/20607064007#step:4:2).1\x64 PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\[3](https://github.com/pola-rs/polars/actions/runs/7567589915/job/20607064007#step:4:3).12.1\x6[4](https://github.com/pola-rs/polars/actions/runs/7567589915/job/20607064007#step:4:4)/lib/pkgconfig Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.12.1\x64 Python2_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.12.1\x64 Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.12.1\x64 C:\ProgramData\Chocolatey\bin\choco.exe install graphviz Chocolatey v2.2.2 Installing the following packages: graphviz By installing, you accept licenses for the packages. [NuGet] Error downloading 'Graphviz.9.0.0 : chocolatey-core.extension [1.3.[5](https://github.com/pola-rs/polars/actions/runs/7567589915/job/20607064007#step:4:5), )' from 'https://community.chocolatey.org/api/v2/package/Graphviz/[9](https://github.com/pola-rs/polars/actions/runs/7567589915/job/20607064007#step:4:9).0.0'. [NuGet] Response status code does not indicate success: 500 (Internal Server Error). [NuGet] Error downloading 'Graphviz.9.0.0 : chocolatey-core.extension [1.3.5, )' from 'https://community.chocolatey.org/api/v2/package/Graphviz/9.0.0'. [NuGet] Response status code does not indicate success: 500 (Internal Server Error). Graphviz not installed. An error occurred during installation: Error downloading 'Graphviz.9.0.0 : chocolatey-core.extension [1.3.5, )' from 'https://community.chocolatey.org/api/v2/package/Graphviz/9.0.0'. 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.9.0.0 : chocolatey-core.extension [1.3.5, )' from 'https://community.chocolatey.org/api/v2/package/Graphviz/9.0.0'. 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.9.0.0 : chocolatey-core.extension [1.3.5, )' from 'https://community.chocolatey.org/api/v2/package/Graphviz/9.0.0'. Error: The process 'C:\ProgramData\Chocolatey\bin\choco.exe' failed with exit code 1 ```

Expected behavior

Installation should succeed.

Additional context

N/A

kamiazya commented 8 months ago

@all-contributors please add @stinodego for bug.

allcontributors[bot] commented 8 months ago

@kamiazya

I've put up a pull request to add @stinodego! :tada:

kamiazya commented 5 months ago

@stinodego Upon closer inspection, this installation failure is due to a 500 response from the server, so it is not a glitch in this project.

The only possible thing is to retry several times upon failure, which I may implement when the time is right.

I will remove the bug label.