- Package:
- choose-mirror
- Source:
- choose-mirror
- Submitter:
- Cyril Brulebois
- Date:
- 2022-07-17 12:12:19 UTC
- Severity:
- wishlist
- Tags:
Package: choose-mirror
Severity: wishlist
X-Debbugs-Cc: weasel@debian.org
Filing this on behalf of Peter Palfrader who suggested we switched from
the manually curated mirror list hosted on salsa[1] to I suppose a live
one published on mirror-master[2], that would be more representative of
the current state of mirrors when release time approaches.
1. https://salsa.debian.org/mirror-team/masterlist/raw/master/Mirrors.masterlist
2. https://mirror-master.debian.org/status/Mirrors.masterlist
Having attempted that, I'm not comfortable updating choose-mirror with
this change right now, as that would mean shuffling all entries.
A quick brainstorming on IRC resulted in what appeared to be a good idea
to everyone involved: the list might be random, but let's make sure we
show deb.d.o at the top (default entry anyway), followed by ftp.CC.d.o
(if there's such an entry for the given country).
Happy to take opinions, and possibly patches for that. :)
The trivial change to apply before running `make Mirrors.masterlist` is
in the Makefile:
-MIRRORLISTURL=https://salsa.debian.org/mirror-team/masterlist/raw/master/Mirrors.masterlist
+MIRRORLISTURL=https://mirror-master.debian.org/status/Mirrors.masterlist
Cheers,
Hi, Cyril Brulebois <kibi@debian.org> wrote (Fri, 04 Jun 2021 18:39:44 +0200): Hmm, what exactly is the benefit? Sourcing a file from a git repo on Salsa seems reasonable to me, given that we have revision tracking there, which would be a good basis for debugging d-i's mirror list in case of problems or questions... Having deb.debian.org at the top would be an improvement, as well as having ftp.CC.d.o next to it. However, the difference is only marginal IMHO ... Holger
on salsa you get all the down and broken mirrors. on mirror-master, they are filtered out.
Holger Wansing <hwansing@mailbox.org> writes: This is just changing the Makefile target that allows one to then run `make Mirrors.masterlist` in order to update the copy of the list in the choose-mirrors repo, so the version you care about is tracked in git. You can see this with: git log | grep Update\ Mirrors.masterlist Reading the IRC chat I had assumed that reordering the masterlist might achieve that result, but it doesn't, as a quick test showed: https://openqa.debian.net/tests/5976#step/mirror_selection/2 Looking at the code, the ordering is determined mostly by looking at the Type: of the mirror: https://salsa.debian.org/installer-team/choose-mirror/-/blob/master/mirrorlist#L99 which would be easy to add a line like this to: $rating=9 if $data[$id]->{site} eq 'deb.debian.org'; except for the slight problem that the new file is lacking almost all of the Type: fields (it has none of the Push-Primary/Push-Secondary) stuff, so the order you end up with is mostly based on the perl hash table order if you use the new file, which strikes me as sub-optimal (and explains the mess in that screenshot). I guess we either need do one of: a) reinstate the Type information somehow, which I understand is probably a problem, since the code seems to rely on the CC mirrors having Type: Push-Primary, but since that's actually a CNAME that may wander about maintaining that information isn't completely straight-forward. b) rewrite the logic to be something like deb.d.o first, then ftp.CC.d.o, then the rest in alphabetical order, say. c) filter the old masterlist to only include entries that are also in the new list, and then use the result of that, perhaps with a tweak to promote deb.d.o c) is a bit of a cludge, but seems like the only one that's got a chance of happening before the release, and gets most of the benefit of the new list. Cheers, Phil.
Philip Hands <phil@hands.com> writes: ... BTW Promoting deb.d.o can be done thus: https://salsa.debian.org/philh/choose-mirror/-/commit/70caed09fbf4bfbcc9eca82168cf3936868d8394 which produces this menu ordering: https://openqa.debian.net/tests/6101#step/mirror_selection/2 Cheers, Phil.
And then add a line that maybe gives some number (6, 7?) to other things matching ~/\.debian\.org$/?
The Type info in the salsa Masterlist is also probably not correct in a lot of cases.
Hello, Bug #989473 in choose-mirror reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/installer-team/choose-mirror/-/commit/5558cd8476a96a7abb1199cad515f774c7a5df17 ------------------------------------------------------------------------ update MIRRORLISTURL (closes: #989473) ------------------------------------------------------------------------ (this message was generated automatically) -- Greetings https://bugs.debian.org/989473
"Debian Bug Tracking System" <owner@bugs.debian.org> wrote (Fri, 20 Aug 2021 11:27:05 +0000): This has been fixed in 2.112 Closing this bug