Opened 9 months ago

Closed 8 months ago

#60605 closed defect (fixed) needlessly downloads PortIndex.json

Reported by: ryandesign (Ryan Schmidt) Owned by: admin@…
Priority: Normal Milestone:
Component: server/hosting Version:
Keywords: Cc:


_ci/ rsyncs "PortIndex*" from the rsync server. This includes PortIndex and PortIndex.quick, which are needed, and PortIndex.json, which is not needed. I hope it is possible to update the script so that it requests and receives PortIndex and PortIndex.quick in a single transaction, without PortIndex.json. We don't want to fix the problem by making two separate connections to the server.

Change History (4)

comment:1 Changed 9 months ago by jmroot (Joshua Root)

It is very fast (and automatic) to regenerate PortIndex.quick from PortIndex, which is why port sync doesn't even bother syncing PortIndex.quick. This probably doesn't need to either.

comment:2 Changed 9 months ago by ryandesign (Ryan Schmidt)

Oh. Well here's the PR I made before I read that comment. If we only want to sync PortIndex, then it can be even simpler. I guess the motivation is to do whatever is fastest, since this is for our CI systems, some of which (Travis) limit the maximum amount of time a build can run.

comment:3 Changed 9 months ago by jmroot (Joshua Root)

When I say very fast, it's around 150 ms on my system. I haven't measured lately but I think transferring the extra file over the internet would take longer.

comment:4 Changed 8 months ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed

In 026fa4dcdadf1128545e1a01a349f64e39ae0b8c/macports-ports (master): Only rsync PortIndex

Only rsync PortIndex. Don't rsync PortIndex.quick which can be generated
quickly. Don't rsync PortIndex.json which isn't needed at all.

Closes: #60605

Note: See TracTickets for help on using tickets.