Commit bccf2c5
authored
fix(aur): do not fail a successful publish when AUR drops the connection (#47)
The v0.2.0 AUR publish succeeded and the workflow reported failure:
[master (root-commit) 6785b0b] Update to 0.2.0
* [new branch] HEAD -> master
Connection closed by 209.126.35.78 port 22
fatal: Could not read from remote repository.
The push landed -- aur.archlinux.org/packages/thinkutils shows
"thinkutils 0.2.0-1" -- and it was the verification step I added one
commit earlier that failed, because AUR closes the SSH connection
immediately after accepting a push.
Reporting failure on a successful publish is not the harmless direction
of this mistake. It invites a re-run, and re-running a publish is not
always harmless.
So: retry ls-remote with backoff, and if AUR still cannot be reached,
emit a warning naming the package page rather than failing -- git push
already reported success, and an unreachable remote is not evidence the
push did not land. A genuine mismatch, where the remote IS readable and
disagrees, still fails.
Verification steps need to distinguish "this did not work" from "I could
not tell". This one conflated them.1 parent be8622f commit bccf2c5
1 file changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
158 | 164 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
162 | 180 | | |
| 181 | + | |
| 182 | + | |
163 | 183 | | |
164 | | - | |
165 | 184 | | |
166 | 185 | | |
167 | 186 | | |
| |||
0 commit comments