|
2 | 2 | id: 'verify-release' |
3 | 3 | title: 'How to Verify Release' |
4 | 4 | --- |
| 5 | +For a detailed checklist, please refer to the official [Incubator Release Checklist](https://cwiki.apache.org/confluence/display/INCUBATOR/Incubator+Release+Checklist). |
5 | 6 |
|
6 | | -For detailed check list, please refer to the official [check list](https://cwiki.apache.org/confluence/display/INCUBATOR/Incubator+Release+Checklist). |
| 7 | +### 1. Download the Release Candidate |
| 8 | + |
| 9 | +> **Prerequisite:** Ensure you have `gpg` or `gpg2` installed. |
| 10 | +
|
| 11 | +:::caution Note |
| 12 | +Downloading may take some time depending on your network connection. |
| 13 | +::: |
| 14 | + |
| 15 | +Set environment variables for convenience (replace with actual versions): |
| 16 | + |
| 17 | +```shell |
| 18 | +# Example: export RELEASE_VERSION=0.1.0 |
| 19 | +# Example: export RC_VERSION=rc1 |
| 20 | +export RELEASE_VERSION={release_version} |
| 21 | +export RC_VERSION={rc_version} |
| 22 | + |
| 23 | +``` |
| 24 | + |
| 25 | +Download the artifacts: |
| 26 | + |
| 27 | +```shell |
| 28 | +# Option 1: SVN checkout (Recommended, includes KEYS file) |
| 29 | +svn co https://dist.apache.org/repos/dist/dev/incubator/fesod/${RELEASE_VERSION}-${RC_VERSION}/ fesod-dist-dev |
| 30 | + |
| 31 | +# Option 2: Wget individual files |
| 32 | +wget https://dist.apache.org/repos/dist/dev/incubator/fesod/${RELEASE_VERSION}-${RC_VERSION}/apache-fesod-${RELEASE_VERSION}-src.tar.gz |
| 33 | + |
| 34 | +``` |
| 35 | + |
| 36 | +### 2. Verify Compliance and Integrity |
| 37 | + |
| 38 | +#### 2.1 Check Package Completeness |
| 39 | + |
| 40 | +The uploaded artifacts must contain: |
| 41 | + |
| 42 | +1. **Source Package** (Required) |
| 43 | +2. **Signature file** (.asc, Required) |
| 44 | +3. **Hash file** (.sha512, Required) |
| 45 | + |
| 46 | +#### 2.2 Verify GPG Signature |
| 47 | + |
| 48 | +**2.2.1 Import KEYS** |
| 49 | + |
| 50 | +```shell |
| 51 | +# Download KEYS |
| 52 | +curl https://dist.apache.org/repos/dist/dev/incubator/fesod/KEYS > KEYS |
| 53 | + |
| 54 | +# Import KEYS locally |
| 55 | +gpg --import KEYS |
| 56 | + |
| 57 | +``` |
| 58 | + |
| 59 | +**2.2.2 Trust the Public Key (Optional but Recommended)** |
| 60 | + |
| 61 | +```shell |
| 62 | +# Find the Key ID used for this release |
| 63 | +gpg --edit-key <KEY_ID> |
| 64 | + |
| 65 | +# Type 'trust', select '5' (ultimate), confirm with 'y', then type 'quit' |
| 66 | + |
| 67 | +``` |
| 68 | + |
| 69 | +**2.2.3 Verify the Signature** |
| 70 | + |
| 71 | +```shell |
| 72 | +# Verify Source Package |
| 73 | +gpg --verify apache-fesod-${RELEASE_VERSION}-src.tar.gz.asc apache-fesod-${RELEASE_VERSION}-src.tar.gz |
| 74 | + |
| 75 | +``` |
| 76 | + |
| 77 | +> **Success Indicator:** The output must include **`Good signature`**. |
| 78 | +
|
| 79 | +#### 2.3 Verify SHA512 Checksum |
| 80 | + |
| 81 | +**Mac OS / Linux:** |
| 82 | + |
| 83 | +```shell |
| 84 | +# Verify Source Package |
| 85 | +shasum -a 512 --check apache-fesod-${RELEASE_VERSION}-src.tar.gz.sha512 |
| 86 | + |
| 87 | +# Or manually compare |
| 88 | +shasum -a 512 apache-fesod-${RELEASE_VERSION}-src.tar.gz |
| 89 | +cat apache-fesod-${RELEASE_VERSION}-src.tar.gz.sha512 |
| 90 | + |
| 91 | +``` |
| 92 | + |
| 93 | +**Windows:** |
| 94 | + |
| 95 | +```shell |
| 96 | +certUtil -hashfile apache-fesod-${RELEASE_VERSION}-src.tar.gz SHA512 |
| 97 | + |
| 98 | +``` |
| 99 | + |
| 100 | +### 3. Check Source Package Content (Crucial) |
| 101 | + |
| 102 | +Extract the source package: |
| 103 | + |
| 104 | +```shell |
| 105 | +tar -xvf apache-fesod-${RELEASE_VERSION}-src.tar.gz |
| 106 | +cd apache-fesod-${RELEASE_VERSION}-src |
| 107 | + |
| 108 | +``` |
| 109 | + |
| 110 | +#### 3.1 Incubator Specific Checks |
| 111 | + |
| 112 | +* [ ] **DISCLAIMER:** Ensure a `DISCLAIMER` (or `DISCLAIMER-WIP`) file exists in the root directory. This is mandatory for incubating projects. |
| 113 | + |
| 114 | +#### 3.2 ASF License Header Check (RAT) |
| 115 | + |
| 116 | +Run the Apache RAT (Release Audit Tool) check: |
| 117 | + |
| 118 | +```shell |
| 119 | +# Run RAT check |
| 120 | +./mvnw apache-rat:check |
| 121 | +# Or if wrapper is not configured |
| 122 | +mvn apache-rat:check |
| 123 | + |
| 124 | +``` |
| 125 | + |
| 126 | +**Check the report (`target/rat.txt`):** |
| 127 | + |
| 128 | +* **Unapproved Licenses:** Must be **0**. |
| 129 | +* **Binaries:** Should be **0** (Source packages should not contain compiled jars/classes). |
| 130 | + |
| 131 | +#### 3.3 Compilation Verification |
| 132 | + |
| 133 | +Ensure the source code compiles successfully. |
| 134 | + |
| 135 | +```shell |
| 136 | +# This may take time depending on network to download dependencies |
| 137 | +./mvnw clean install -DskipTests |
| 138 | + |
| 139 | +``` |
| 140 | + |
| 141 | +**Checklist:** |
| 142 | + |
| 143 | +* [ ] Build Success. |
| 144 | +* [ ] No unexpected binary files in the source tree. |
| 145 | + |
| 146 | +#### 3.4 License and Notice |
| 147 | + |
| 148 | +Manually check the following files in the root directory: |
| 149 | + |
| 150 | +* [ ] **LICENSE:** Exists and contains the Apache License 2.0. |
| 151 | +* [ ] **NOTICE:** |
| 152 | +* Exists. |
| 153 | +* Copyright year is current (e.g., includes 2025/2026). |
| 154 | +* Contains required attributions for bundled dependencies (if any). |
| 155 | + |
| 156 | +### 4. Email Reply Templates |
| 157 | + |
| 158 | +After verification, reply to the vote thread on `dev@fesod.apache.org`. |
| 159 | + |
| 160 | +:::tip |
| 161 | +As a **PPMC member**, your vote is **binding**. Please include `(binding)` in your reply. |
| 162 | +::: |
| 163 | + |
| 164 | +**Template for PPMC Members:** |
| 165 | + |
| 166 | +```text |
| 167 | ++1 (binding) |
| 168 | +
|
| 169 | +[X] Download links are valid. |
| 170 | +[X] Checksums and signatures. |
| 171 | +[X] LICENSE/NOTICE files exist |
| 172 | +[X] No unexpected binary files |
| 173 | +[X] All source files have ASF headers |
| 174 | +[X] Can compile from source |
| 175 | +
|
| 176 | +My Environment: |
| 177 | +- OS: MacOS <Version> / Linux |
| 178 | +- JDK: <JDK Version> |
| 179 | +- Maven: <Maven Version> |
| 180 | +
|
| 181 | +``` |
| 182 | + |
| 183 | +**Template for Contributors (Non-PPMC):** |
| 184 | + |
| 185 | +```text |
| 186 | ++1 (non-binding) |
| 187 | +
|
| 188 | +I have checked: |
| 189 | +... (Same as above) |
| 190 | +
|
| 191 | +``` |
0 commit comments