fix(release): the upload address is the organization variable RELEASE_UPLOAD_API #79
No reviewers
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
needs measurements
question
testing wanted
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!79
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:fix/release-upload-variable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The release workflow reads the upload address (the Forgejo API without Cloudflare's 100 MB limit) from an organization variable named
FORGEJO_UPLOAD_API, but Forgejo refuses variable names that start withFORGEJO_("invalid secret name"), so it could never be set and every upload over 100 MB would fail.What changed
.forgejo/workflows/release.yml: readsvars.RELEASE_UPLOAD_APIand passes it torelease.pyasFORGEJO_UPLOAD_API(the script's own name is unchanged).RELEASING.md,docs/releases.md,docs/forgejo-runners.md: name the variableRELEASE_UPLOAD_APIand say why. The shared files stay byte-identical with the other repository.RELEASE_UPLOAD_API=http://magicbean-git:3000/api/v1is set on MagicBeanDev.Flags and settings
None
Measurements
main:
77f605a2this PR: fix/release-upload-variable @
d11ebb2a77f605a2d11ebb2atests/run_all.py(Linux, interleaved: main, PR)tests/test_release.pyThe 2 failures are the known ones on main (
test_bake_portability: no zstandard;test_builder_log_read_only: no libtk).Testing
Tested: the checks in Measurements on Linux; the variable
RELEASE_UPLOAD_APIwas created on MagicBeanDev (theFORGEJO_name was refused by the API with "invalid secret name").Not tested: a release run that uploads a file over 100 MB (no release has run yet).
Needs other testers: None
Risk and rollback
Only the variable's name changes; revert this commit to go back.
Checklist
For everyone
type(scope): description).main.python -I -B tests/run_all.pyrun and passing (any failure that also fails onmainis named above).third_party/untouched (a new folder with aPROVENANCE.mdinstead).If applicable