Repository navigation
Commit 663c6cb
committed
fix: address review findings on the release workflow
Follow-up to #3631.
Remove the concurrency group. It was added to serialize releases, but the
default queue keeps only one pending run: with a release running and a second
pending, a third cancels the second, which would then be tagged on GitHub but
never deployed or finalized - silently. The group was not load-bearing anyway,
since the atomic non-forced branch push already makes a concurrent release fail
visibly. Removing it trades a silent failure back for a loud one.
Check the tag ancestry in publish instead of finalize-release. The check is
equivalent against the branch tip, because the release commit is always a child
of it, and running it before the deploy means a release cut from an unrelated
commit fails while it can still be retried. Maven Central artifacts are
immutable once published.
Lease the tag update. The ancestry check reads the tag as fetched at checkout,
but `+refs/tags/...` would then overwrite whatever the remote holds at push
time. The push now leases against the OID observed during the check - the tag
ref itself, not the commit it peels to - with an empty expectation when the tag
did not exist. A tag moved by anyone else in between fails the push, and
--atomic means the branch does not move either.
Guard against a release moving the branch backwards. The next development
version is derived from the released version, so releasing a tag older than the
branch's own version - which means the wrong branch was selected - would set the
branch to versions that are already released. Deriving is still right for the
common case: releasing v5.7.0 from main on 5.6.2-SNAPSHOT must land on
5.7.1-SNAPSHOT, not go back to 5.6.2-SNAPSHOT.
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>1 parent 70988d1 commit 663c6cb
2 files changed
Lines changed: 64 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
37 | 62 | | |
38 | 63 | | |
39 | 64 | | |
| |||
106 | 131 | | |
107 | 132 | | |
108 | 133 | | |
| 134 | + | |
109 | 135 | | |
110 | 136 | | |
111 | 137 | | |
| |||
117 | 143 | | |
118 | 144 | | |
119 | 145 | | |
| 146 | + | |
120 | 147 | | |
121 | 148 | | |
122 | 149 | | |
| |||
160 | 187 | | |
161 | 188 | | |
162 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
163 | 201 | | |
164 | 202 | | |
165 | 203 | | |
| |||
168 | 206 | | |
169 | 207 | | |
170 | 208 | | |
| 209 | + | |
171 | 210 | | |
172 | 211 | | |
173 | 212 | | |
| |||
176 | 215 | | |
177 | 216 | | |
178 | 217 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
183 | 228 | | |
184 | 229 | | |
185 | 230 | | |
186 | 231 | | |
187 | 232 | | |
| 233 | + | |
| 234 | + | |
188 | 235 | | |
| 236 | + | |
189 | 237 | | |
190 | 238 | | |
191 | 239 | | |
192 | 240 | | |
193 | 241 | | |
194 | 242 | | |
195 | 243 | | |
| 244 | + | |
196 | 245 | | |
197 | 246 | | |
198 | 247 | | |
199 | 248 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
204 | 259 | | |
205 | | - | |
| 260 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 8 | | |
15 | 9 | | |
16 | 10 | | |
| |||
0 commit comments