pkgcheck icon indicating copy to clipboard operation
pkgcheck copied to clipboard

Provide network checks for thirdpartymirrors

Open mgorny opened this issue 5 years ago • 5 comments

We won't be able to check them perfectly (or can we?) but it would be nice to flag definitely-dead mirrors and possible HTTPS upgrades.

mgorny avatar Sep 28 '19 05:09 mgorny

Not sure what you mean by perfectly, but in theory running a tree-wide FetchablesUrlCheck gives us all this information, just not in mirror specific form.

radhermit avatar Jan 17 '20 07:01 radhermit

Not really because sometimes the distfile is present on only some of the listed mirrors, and trying to filter false positives is really hard. Checking top-level directory would be helpful as a quick way to immediately flag dead mirrors.

mgorny avatar Jan 17 '20 08:01 mgorny

It's not as simple as that though since there are bouncer mirrors, e.g. checking the top-level for pypi isn't valid:

DeadMirror: thirdpartymirror: pypi: 404 Client Error: Not Found for url: https://files.pythonhosted.org/packages/source: https://files.pythonhosted.org/packages/source

radhermit avatar Jan 17 '20 09:01 radhermit

Yeah, that sucks. maybe I'll remove that mirror ;-).

mgorny avatar Jan 17 '20 09:01 mgorny

Anyway, besides that I have code working. One possible solution would be to recheck against a single valid pkg mirror URL to verify a dead mirror to catch more false positives.

radhermit avatar Jan 17 '20 09:01 radhermit