Skip to content

fix(packagist): Throw on transient errors#44328

Open
zharinov wants to merge 5 commits into
renovatebot:mainfrom
zharinov:fix/packagist-transient-errors
Open

fix(packagist): Throw on transient errors#44328
zharinov wants to merge 5 commits into
renovatebot:mainfrom
zharinov:fix/packagist-transient-errors

Conversation

@zharinov

@zharinov zharinov commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Changes

Treat transient failures from the default Packagist registries as external host errors instead of normal lookup misses.

This covers repo.packagist.org and packagist.org for timeout/reset errors, rate limiting, and 5xx responses. This prevents temporary Packagist availability failures from being converted into no-result lookup outcomes.

Related discussion: #43643

Context

Please select one of the following:

  • This closes an existing Issue, Closes: #
  • This doesn't close an Issue, but I accept the risk that this PR may be closed if maintainers disagree with its opening or implementation

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI-generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests, but ran on a real repository, or
  • Both unit tests + ran on a real repository

The public repository: N/A

@github-actions github-actions Bot requested a review from viceice July 1, 2026 15:51

@RahulGautamSingh RahulGautamSingh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm except the nitpick

Comment thread lib/modules/datasource/packagist/index.ts Outdated
@zharinov zharinov requested a review from RahulGautamSingh July 1, 2026 17:25
@viceice viceice added this pull request to the merge queue Jul 1, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 1, 2026
@zharinov zharinov requested a review from viceice July 1, 2026 19:02
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.

3 participants