Project

General

Profile

Actions

Issue #2139

open

Handle redirects for git in a clean way for AOSP

Added by Denis 'GNUtoo' Carikli about 4 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
10/03/2020
Due date:
% Done:

0%

Estimated time:
Hosting infrastructure:
Type of work:
System administration
Actions #1

Updated by Denis 'GNUtoo' Carikli about 4 years ago

  • Subject changed from Handle redirects for git in a clean way to Handle redirects for git in a clean way for AOSP
  • Target version set to Replicant 11.0 0001

Replicant mirrors all the repositories it uses in Replicant source code.

AOSP is a bit more complex than the other repositories because we have things like that:

  <project path="dalvik" name="platform/dalvik" groups="pdk-cw-fs,pdk-fs" remote="aosp" />
  [...]
  <project path="device/generic/arm64" name="device/generic/arm64" groups="pdk" remote="aosp" />

So here the URL depth changes between different repositories.

With Replicant 6 and earlier we simply hosted device_generic_arm64 and platform_dalvik.

That simplifies a lot the server configuration but completely breaks automatic rebases in the manifest repository.

So right now we have the following configuration in the server:
  • We host device_generic_arm64 and platform_dalvik
  • We redirect device/generic/arm64 to device_generic_arm64 manually with things like that:
    Redirect /mirrors/AOSP/device/generic/arm64 /mirrors/AOSP/device_generic-arm64
This worked fine because the rules are fixed. However it has huge downsides too:
  • we need to remember to add a rules for each new AOSP repository addition, and we will probably forget to do it at some point
  • We end up with a huge ruleset
Actions #2

Updated by Denis 'GNUtoo' Carikli about 4 years ago

So it might be better to find a more automatic way to compute the rule set if it's easy to understand, maintain and hasn't much performance impact.

Actions #3

Updated by Denis 'GNUtoo' Carikli about 4 years ago

I've added some documentation here:https://redmine.replicant.us/projects/replicant-infrastructure/wiki/GitRedirects

Actions #4

Updated by Denis 'GNUtoo' Carikli almost 4 years ago

  • Target version changed from Replicant 11.0 0001 to Replicant 11.0 0002
Actions #5

Updated by _I3^ RELATIVISM over 3 years ago

  • Type of work System administration added
Actions

Also available in: Atom PDF