Retry makePythonPypiEnvironment #1126

Closed
opened 2023-07-18 21:49:35 +02:00 by dacevedo12 · 0 comments
dacevedo12 commented 2023-07-18 21:49:35 +02:00 (Migrated from github.com)

Sometimes they fail due to

building '/nix/store/qjsm6v8kql9i5pp985p9mifmly3a66sl-wrapt-1.15.0-py3-none-any.whl.drv'...
trying https://files.pythonhosted.org/packages/f8/f8/e068dafbb844c1447c55b23c921f3d338cddaba4ea53187a7dd0058452d9/wrapt-1.15.0-py3-none-any.whl
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (35) Send failure: Connection reset by peer
error: cannot download wrapt-1.15.0-py3-none-any.whl from any mirror
error: builder for '/nix/store/qjsm6v8kql9i5pp985p9mifmly3a66sl-wrapt-1.15.0-py3-none-any.whl.drv' failed with exit code 1

Curl has flags to retry those requests.
This could lead to a reduction in CI time by not requiring to retry the whole job
and peace of mind with fewer devs asking about those failures.

Sometimes they fail due to ``` building '/nix/store/qjsm6v8kql9i5pp985p9mifmly3a66sl-wrapt-1.15.0-py3-none-any.whl.drv'... trying https://files.pythonhosted.org/packages/f8/f8/e068dafbb844c1447c55b23c921f3d338cddaba4ea53187a7dd0058452d9/wrapt-1.15.0-py3-none-any.whl % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (35) Send failure: Connection reset by peer error: cannot download wrapt-1.15.0-py3-none-any.whl from any mirror error: builder for '/nix/store/qjsm6v8kql9i5pp985p9mifmly3a66sl-wrapt-1.15.0-py3-none-any.whl.drv' failed with exit code 1 ``` Curl has flags to retry those requests. This could lead to a reduction in CI time by not requiring to retry the whole job and peace of mind with fewer devs asking about those failures. - https://everything.curl.dev/usingcurl/downloads/retry - https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchurl/default.nix#L54 - https://github.com/fluidattacks/makes/blob/main/src/args/make-python-pypi-environment/default.nix#L103
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
justin/makes#1126
No description provided.