Ver código fonte

docs: say when checksums.txt needs a manual rebuild, and when not to run one

A re-run trusts a fully uploaded manifest, so entries missing for other
assets need the manual rebuild. Running the rebuild while a signing job
is active can overwrite that job's lines, so check none is running first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jamesread 21 horas atrás
pai
commit
5e5af8f36e
1 arquivos alterados com 8 adições e 2 exclusões
  1. 8 2
      docs/modules/dev/pages/signing.adoc

+ 8 - 2
docs/modules/dev/pages/signing.adoc

@@ -17,9 +17,15 @@ Like Windows signing, this happens **after** the release is published, so a prob
 
 
 If `sign-macos` fails (for example an expired Apple agreement, a notary outage or a certificate problem), the release stays published without macOS assets. Fix the cause, then use **Re-run failed jobs** on that workflow run. The unsigned artifact must still be within its retention period.
 If `sign-macos` fails (for example an expired Apple agreement, a notary outage or a certificate problem), the release stays published without macOS assets. Fix the cause, then use **Re-run failed jobs** on that workflow run. The unsigned artifact must still be within its retention period.
 
 
-The signed files are uploaded before `checksums.txt`. If the `checksums.txt` upload still fails after retries, the job fails and the release holds the new files with an out-of-date manifest. A re-run updates the release's current `checksums.txt` and uploads it again. If the failed upload left the release with no `checksums.txt`, or an incomplete one, the re-run rebuilds it from the sha256 digests GitHub records for each release asset.
+The signed files are uploaded before `checksums.txt`. If the `checksums.txt` upload still fails after retries, the job fails and the release holds the new files with an out-of-date manifest. A re-run updates the release's current `checksums.txt` and uploads it again. If the failed upload left the release with no `checksums.txt`, or with one GitHub has not marked as fully uploaded, the re-run rebuilds it from the sha256 digests GitHub records for each release asset.
 
 
-If any release asset has no recorded digest, the rebuild stops and the re-run fails. Rebuild the manifest by hand from the release's own files, then re-run the job. The commands run in a subshell that stops at the first error, so a failed download or hash never uploads a partial manifest:
+A re-run trusts a fully uploaded `checksums.txt`. It only adds or replaces lines for the files it signs, so it cannot restore entries for other assets that are missing from it.
+
+Rebuild the manifest by hand from the release's own files when a fully uploaded `checksums.txt` is missing entries for other assets, or when a release asset has no recorded digest (the rebuild then stops and the re-run fails). Then re-run the job.
+
+Before you start, make sure no `sign-windows` or `sign-macos` job is running or queued for the release. The manual commands are outside the jobs' concurrency group, so a job that updates `checksums.txt` while they run would have its lines overwritten.
+
+The commands run in a subshell that stops at the first error, so a failed download or hash never uploads a partial manifest:
 
 
 [source,bash]
 [source,bash]
 ----
 ----