[MacPorts] #52750: /changeset/:commitid/:repo is very slow for changes that do not exist

MacPorts noreply at macports.org
Sun Oct 30 15:11:10 CET 2016


#52750: /changeset/:commitid/:repo is very slow for changes that do not exist
----------------------------+---------------------
 Reporter:  neverpanic      |      Owner:  admin@…
     Type:  defect          |     Status:  new
 Priority:  High            |  Milestone:
Component:  server/hosting  |    Version:  2.3.4
 Keywords:                  |       Port:
----------------------------+---------------------
 Crawlers seem to be accessing our copy of Trac and try to access
 changesets from the GitHub changeset module that no longer exist.

 One such example is
  - https://github.com/macports/macports-
 ports/commit/671c5d2885aad2df28c916e68f98a143e06bdf48 vs.
  - https://github.com/macports/macports-
 ports/commit/ac26746154eb37fa1413e57f9f082bc2e37b9f22
 Only the latter is still relevant, the former is still available at GitHub
 from a previous push, though. We should try find find out how to get rid
 of it.

 One possibility to avoid the slowdown would be to just avoid validating
 whether a commit ID is valid in Trac and redirect to GitHub right-away. We
 need to figure out if anybody in Trac uses short commit IDs (if nobody
 does, we can drop the validation).

 Here are IDs to test that:
  - [671c5d28/macports-ports]
  - [ac267461/macports-ports]

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



More information about the macports-tickets mailing list