[MacPorts] #50875: mirror-macports.sh runs daily but takes > 24 hours to complete

MacPorts noreply at macports.org
Fri Mar 11 19:03:53 PST 2016


#50875: mirror-macports.sh runs daily but takes > 24 hours to complete
-----------------------------+---------------------
  Reporter:  ryandesign@…    |      Owner:  admin@…
      Type:  defect          |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  server/hosting  |    Version:
Resolution:                  |   Keywords:
      Port:                  |
-----------------------------+---------------------

Comment (by ryandesign@…):

 Replying to [ticket:50875 ryandesign@…]:
 > The browser:trunk/base/portmgr/jobs/mirror_macports.sh script runs every
 day at 2:15 am on rsync-origin.macports.org, but because of the number of
 ports we have and because it tries to mirror each port for 8 different OS
 X versions (darwin 8 through darwin 15), it now takes more than 24 hours
 to complete.

 I cut it back to running only twice a week, on Wednesday and Saturday
 mornings.

 > When a file is not found or the checksum doesn't match, the fetch is
 attempted 8 times, one for each OS X version, wasting time and bandwidth.
 >
 > It mirrors for each version of OS X separately because a small subset of
 ports declare different distfiles for different OS X versions. However the
 vast majority of ports don't do that.
 >
 > I think it's also supposed to be mirroring for each variant, since some
 variants might add distfiles.
 >
 > We should find a way to rewrite the script so that it gets a list of
 URLs to mirror for all permutations of the port, but only attempts to
 fetch from each URL once.

 I'm working on a new script.

 > The script on the server has been updated quite a bit from the version
 currently in the repository, and there are changes in the repository that
 have not been reflected on the server yet.

-- 
Ticket URL: <https://trac.macports.org/ticket/50875#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list