Mirror split release files and show the tag box in the mirror workflow #276

Merged
ethan-hann merged 1 commit from issue-270-mirror-split-parts into main 2026-10-30 19:33:00 -05:00
Owner

The first real GitHub mirror run copied every release but v0.9.2 to v0.9.4: those releases split two large source archives into .partN files, while their SHA256SUMS.txt lists the whole file, so the script refused the parts as unlisted. The script now checks such a group by hashing the parts joined in numeric order against the whole-file entry, uploads the parts unchanged, and still checks each part after upload. A gap or a wrong join fails the release.

The workflow_dispatch tag input also gets type: string; without it Forgejo shows no input box and reports Invalid input type. A test now fails when any workflow input lacks a type.

D71.3 records the split-file rule. build/gate.ps1 and build/gate-linux.ps1 passed on 8b4b2476.

The first real GitHub mirror run copied every release but v0.9.2 to v0.9.4: those releases split two large source archives into .partN files, while their SHA256SUMS.txt lists the whole file, so the script refused the parts as unlisted. The script now checks such a group by hashing the parts joined in numeric order against the whole-file entry, uploads the parts unchanged, and still checks each part after upload. A gap or a wrong join fails the release. The workflow_dispatch tag input also gets type: string; without it Forgejo shows no input box and reports Invalid input type. A test now fails when any workflow input lacks a type. D71.3 records the split-file rule. build/gate.ps1 and build/gate-linux.ps1 passed on 8b4b2476.
Mirror split .partN release files by checking the joined parts against the list
All checks were successful
Docs / site (pull_request) Successful in 1m28s
Gate / linux (pull_request) Successful in 18m3s
Gate / windows (pull_request) Successful in 32m29s
Docs / site (push) Successful in 1m18s
8b4b24764c
The checksum list of early releases names a large file by its whole name, while the release holds it as <name>.part1..partK, so the mirror refused v0.9.2 to v0.9.4. A group of parts is now verified as one (no gap, numeric order, joined hash equals the list's entry) and the parts are sent unchanged, each checked after upload against its own hash.

The workflow_dispatch tag input of github-mirror.yml gets type: string, which Forgejo requires; a test now fails when any workflow_dispatch input lacks a type.

Observed reds: the four split-part tests failed with "SHA256SUMS.txt does not list big.bin.part1..." (assertion on exit code or on the group message); the input-type test failed with "These inputs have no type: github-mirror.yml: tag:". Mutation: sorting parts by name instead of number made the 11-part test fail.
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ethan-hann/SavePoint!276
No description provided.