Skip to content

Conversation

tobiasdiez
Copy link
Contributor

Sometimes the conda setup fails due to network issues (e.g. https://github.com/sagemath/sage/actions/runs/15036287079/job/42258557067?pr=38872#step:9:7341). There is no easy way to configure conda to just retry this request again in a few seconds, so we just simply retry the whole conda env setup.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

vbraun pushed a commit to vbraun/sage that referenced this pull request May 28, 2025
sagemathgh-40107: Add retry mechanism for Conda environment setup in CI workflow
    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

Sometimes the conda setup fails due to network issues (e.g. https://gith
ub.com/sagemath/sage/actions/runs/15036287079/job/42258557067?pr=38872#s
tep:9:7341). There is no easy way to configure conda to just retry this
request again in a few seconds, so we just simply retry the whole conda
env setup.

### :memo: Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [ ] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### :hourglass: Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#40107
Reported by: Tobias Diez
Reviewer(s): Dima Pasechnik
@tobiasdiez
Copy link
Contributor Author

Thanks Dima!

@vbraun vbraun merged commit a1a4b0a into sagemath:develop Jun 1, 2025
11 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants