Skip to content

CI: make dependency installs resilient to PyPI network flakes - #625

Merged
RussTedrake merged 1 commit into
masterfrom
ci-network-resilience
Dec 2, 2026
Merged

RussTedrake merged 1 commit into
masterfrom
ci-network-resilience

Conversation

@RussTedrake

@RussTedrake RussTedrake commented Dec 2, 2026 •

Copy link
Copy Markdown
Owner

Last night's scheduled run (46818449543) failed on macOS in setup. A download from files.pythonhosted.org hit Poetry's default 15s read timeout. Both Ubuntu jobs passed.

  • Workflow-level POETRY_REQUESTS_TIMEOUT=60 and POETRY_REQUESTS_MAX_RETRIES=3. The defaults are 15s and 0 retries. On noble-poetry these are passed through sudo --preserve-env.
  • poetry install retries up to 3 times, 30s apart, on the macOS and noble-poetry jobs.
  • macOS caches ~/Library/Caches/pypoetry, keyed on poetry.lock, so most runs barely touch PyPI.

The wheel job uses pip, which already retries 5 times by default, so it is unchanged.

🤖 Generated with Claude Code


This change is Reviewable

The 2026-12-02 scheduled run failed on macOS when a download from
files.pythonhosted.org hit Poetry's default 15s read timeout.

- Raise Poetry's request timeout to 60s and enable 3 request retries.
- Retry `poetry install` up to 3 times on the macOS and noble-poetry jobs.
- Cache Poetry's download cache on macOS, keyed on poetry.lock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RussTedrake
RussTedrake merged commit 8e48fd1 into master Dec 2, 2026
5 checks passed
@RussTedrake
RussTedrake deleted the ci-network-resilience branch December 2, 2026 12:12
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.

1 participant