andk / cpanpm

CPAN.pm
87 stars 79 forks source link

Configure with only fresh mirrors #141

Closed briandfoy closed 2 years ago

briandfoy commented 3 years ago

I've been having trouble with various CI systems lately because I let CPAN.pm auto configure itself (for instance, this run on PerlPowerTools). Sometime it selects dead mirrors. MIRRORED.BY lists http://mirrors-usa.go-parts.com/cpan/ as a mirror. http://mirrors.cpan.org/cpan-json.txt notes this mirror has a last good date on (Fri Jul 12 16:22:05 2019). MIRRORED.BY itself was last updated (Thu Dec 12 17:30:03 2019). However, http://mirrors.cpan.org/cpan-json.txt was updated just today. http://mirrors-usa.go-parts.com/cpan/ is still in there but is obviously stale.

So, what creates MIRRORED.BY? Is it still running? Should this be a PAUSE issue instead?

briandfoy commented 3 years ago

I'd still like some answers, but @rspier fixed the MIRRORED.BY. There was a syntax error in one of the input files, so I guess that tripped up whatever was automatically making that file. There's now a fresh version on CPAN.

However, the fresh version still has the bad http://mirrors-usa.go-parts.com/cpan/.

rspier commented 3 years ago

@briandfoy As mentioned in email, the mirror list infrastructure is not getting appropriate care and feeding right now.

This isn't a PAUSE or CPAN.pm problem.

Our recommendation is to NOT let CPAN.pm autoconfigure itself, but to use https://www.cpan.org/ everywhere. That's cached in hundreds of locations on fast net.

To fix your immediate mirrors-usa.go-parts.com, I've marked it as retired. It should drop from the data files soon.

briandfoy commented 3 years ago

@rspier Where did you mark it as retired? When I looked in the cpan-mirrors-data repo, there wasn't an entry for it. Did you have to make an entry in mirrors.json just to mark it retired? I'm still trying to figure out how all of this works.

I'd be fine using https://www.cpan.org everywhere, but doing this non-interactively with legacy CPAN.pm for old Perl version is in CI systems doesn't give me a lot of palatable options.

Still, I'd like to have some basic sanity checks for configured mirrors in CPAN.pm.

rspier commented 3 years ago

See 525b8ca in cpan-mirrors-data. There was an entry.

Couldn't you just have the CI pipeline write out the appropriate CPAN config file before doing installation?

briandfoy commented 3 years ago

Ah, I must have been dumb when I was looking for it. That's my fault.

I (and others) could do all sorts of things, but I'd rather fix the problem that I'm working around.

And, it's not just what I personally can do. It's what all of the world has to do when they don't know how things work or why they are getting an error.