|
| 1 | +Title: Legacy Releases from SVN Dist |
| 2 | +license: https://www.apache.org/licenses/LICENSE-2.0 |
| 3 | + |
| 4 | +We have three types of Releases to create using a "Pull from 'Dist'" process. |
| 5 | + |
| 6 | +1. Release Candidates from `dist/dev` as the Release Manager requests from within the ATR Web UI. |
| 7 | + |
| 8 | +2. Current Releases from `dist/release` this will be used for the initial migration and may be used from time to time as PMCs use the old methods. |
| 9 | + |
| 10 | +3. Archived Releases which are migrated from the archive if not present in the Current Releases. |
| 11 | + |
| 12 | +## ATR Web UX |
| 13 | + |
| 14 | +We will need pages to perform tasks related to the use of our legacy setup. |
| 15 | + |
| 16 | +### PMC Management Page |
| 17 | + |
| 18 | +1. **Create Release Candidate** - upload the packages for a release candidate from `svn:dist/dev`. This page can also handle direct uploads. |
| 19 | + |
| 20 | +3. **Legacy Release** - upload an approved release from `svn:dist/release`. |
| 21 | + |
| 22 | +### System Admin Page |
| 23 | + |
| 24 | +1. **Synchronise Current Releases** - scan `svn:dist/release` and migrate any not in the ATR. |
| 25 | + |
| 26 | +2. **Synchronize Release Archive** - scan `archive` repository and migrate any archived not in the ATR as a Current or Archived Release. |
| 27 | + |
| 28 | +## Backends Hosting Release Artifacts |
| 29 | + |
| 30 | +The legacy domains are currently connected to `svn:dist/release` as follows: |
| 31 | + |
| 32 | +1. rsync.apache.org has a directory that updates a checkout of `svn:dist/release` |
| 33 | +2. downloads.apache.org periodically rsyncs with rsync.apache.org |
| 34 | +3. archive.apache.org periodically rsyncs with rsync.apache.org without removing artifacts from the destination. |
| 35 | + |
| 36 | +### Transitional Steps |
| 37 | + |
| 38 | +```mermaid |
| 39 | +flowchart TD |
| 40 | + subgraph Legacy |
| 41 | + A[svn:dist/release] |
| 42 | + B[rsync.apache.org] |
| 43 | + A -->|svn| B |
| 44 | + C["downloads.apache.org"] |
| 45 | + D[archive.apache.org] |
| 46 | + B -->|rsync| C |
| 47 | + B -->|rsync| D |
| 48 | + end |
| 49 | +``` |
| 50 | + |
| 51 | +1. **ATR writes to SVN** - ATR Releases write to `svn:dist/release` as an interim step. |
| 52 | + |
| 53 | +```mermaid |
| 54 | +flowchart TD |
| 55 | + subgraph Transition 1 |
| 56 | + ATR[releases.apache.org] |
| 57 | + A[svn:dist/release] |
| 58 | + ATR -->|svn| A |
| 59 | + B[rsync.apache.org] |
| 60 | + A -->|svn| B |
| 61 | + C["downloads.apache.org"] |
| 62 | + D[archive.apache.org] |
| 63 | + B -->|rsync| C |
| 64 | + B -->|rsync| D |
| 65 | + end |
| 66 | +``` |
| 67 | + |
| 68 | +2. **ATR and Legacy are Integrated** - Insert ATR into the rsync chain. |
| 69 | + - ATR has a directory with the same organization as `svn:dist/release` using symbolic links to the Releases in the ATR Datastore. |
| 70 | + |
| 71 | + - (a) ATR's rsync from rsync.apache.org should detect legacy release addition and deletion. |
| 72 | + |
| 73 | +```mermaid |
| 74 | +flowchart TD |
| 75 | + subgraph Transition 2A |
| 76 | + A[svn:dist/release] |
| 77 | + B[rsync.apache.org] |
| 78 | + A -->|svn| B |
| 79 | + ATR[releases.apache.org] |
| 80 | + B -->|rsync| ATR |
| 81 | + C["downloads.apache.org"] |
| 82 | + D[archive.apache.org] |
| 83 | + ATR -->|rsync| C |
| 84 | + ATR -->|rsync| D |
| 85 | + end |
| 86 | +``` |
| 87 | + |
| 88 | + Or |
| 89 | + |
| 90 | + - (b) ATR coexists on rsync.apache.org and detects legacy release addition and deletion. |
| 91 | + |
| 92 | +```mermaid |
| 93 | +flowchart TD |
| 94 | + subgraph Transition 2B |
| 95 | + A[svn:dist/release] |
| 96 | + subgraph ATR on Rsync |
| 97 | + ATR[releases.apache.org] |
| 98 | + B[rsync.apache.org] |
| 99 | + ATR <--> B |
| 100 | + end |
| 101 | + A -->|svn| ATR |
| 102 | + C["downloads.apache.org"] |
| 103 | + D[archive.apache.org] |
| 104 | + B -->|rsync| C |
| 105 | + B -->|rsync| D |
| 106 | + end |
| 107 | +``` |
| 108 | + |
| 109 | +3. **Legacy is Retired** - `svn:dist/release` is retired. |
| 110 | + |
| 111 | +```mermaid |
| 112 | +flowchart TD |
| 113 | + subgraph Transition 3 |
| 114 | + ATR[releases.apache.org] |
| 115 | + C["downloads.apache.org"] |
| 116 | + D[archive.apache.org] |
| 117 | + ATR -->|rsync| C |
| 118 | + ATR -->|rsync| D |
| 119 | + end |
| 120 | +``` |
| 121 | + |
| 122 | +4. **Further Integration** - downloads.apache.org is hosted on ATR. Downloads.apache.org is multiple servers. ATR would need to work on multiple servers |
| 123 | + |
| 124 | +```mermaid |
| 125 | +flowchart TD |
| 126 | + subgraph Transition 4 |
| 127 | + ATR["releases.apache.org"] |
| 128 | + D[archive.apache.org] |
| 129 | + ATR -->|rsync| D |
| 130 | + end |
| 131 | +``` |
0 commit comments