Commit Graph
7 Commits
Author SHA1 Message Date
dualfroz 527888e349 Describe this repository 2026-10-22 21:03:02 +02:00
dualfroz 17d32b7184 Do not use up retries on requests which timed out during a prompt
Nothing drives the transfers while tick() is blocked, e.g. by a prompt
for credentials, so requests which are still connecting time out with
curl error 28. Since #12662 these are retried, but each retry counts
like any other, so a few prompts can use up all of them, and parallel
requests to a private host which timed out that way abort with
"Invalid credentials" once the first of them got credentials, as
AuthHelper only reuses those for a request which was not retried yet.

tick() now keeps track of how long it was blocked between two ticks,
and a request which spent most of its time in that gap is restarted
without counting towards maxRetries.

Fixes #12402
2026-10-17 03:58:45 +02:00
upstream 44656d3be2 Upstream composer/composer state of the touched files before b05f4e7d53 2026-10-17 03:58:45 +02:00
dualfroz d4a3091c46 Refresh abandoned state from the repositories in audit
The abandoned flag in composer.lock and installed.json is only written
when a package gets updated, so composer audit never reported packages
that were abandoned after that.

The audit command now loads the audited versions from the repositories,
first repository with the package name wins, and syncs the abandoned
state and replacement from there. This is skipped with
--abandoned=ignore and unreachable repositories are skipped with
--ignore-unreachable like for advisories.
2026-10-17 03:31:37 +02:00
upstream 12931dd03f Upstream composer/composer state of the touched files before 062bfdce1b 2026-10-17 03:31:37 +02:00
dualfroz 1a98d2c35a Clarify which config keys support --json and --merge
the config docs said --json and --merge only apply to extra.*, but they also work for policy.*.ignore, policy.advisories.ignore-id and audit.ignore[-abandoned] (plus --json for policy.ignore-unreachable), where --merge does not need --json. listed the supported keys in the docs and option help, and noted the flags are ignored for other keys.

Closes #11873
2026-10-07 19:38:14 +02:00
upstream 080aca2673 Upstream composer/composer state of the touched files before 9e784fec18 2026-10-07 19:38:14 +02:00