Repository navigation
K2GO-592 fix(forgejo): bank the Forgejo seed on every install path - #819
Merged
luisguzman-adfa merged 2 commits intoNov 22, 2026
Merged
Conversation
A Forgejo installed from Settings > Module management did not get its admin account, because only two screens banked the seed. Now the module batch start banks it when the batch installs Forgejo, so every install path (and Retry) seeds the forge.
…is not killed Ansible get_url downloads into /root/.ansible/tmp and moves the file to the module dir only at the end. The stall watch saw no growth there and killed a slow Forgejo download after 360 s. It now adds the Ansible temp dir to the module dir size.
luisguzman-adfa
deleted the
fix/K2GO-592-forgejo-seed-module-management
branch
November 22, 2026 06:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
ModuleProvisioner.startBatchbanks the Forgejo seed when the module batch installs Forgejo. This is the one place that every install path goes through: Settings > Module management, the module action sheet, the module detail screen, and Retry.forgejo/domain/ForgejoSeedRule(pure JVM, unit testForgejoSeedRuleTest).ModuleActionSheetandModuleDetailFragmentno longer bank the seed. The detail screen only records its "include example repos" choice (ForgejoInstallPrefs.recordIncludeRepos), on the same key as before.InstallService.moduleWriteDirSize) also adds the size of the Ansible temp dir (root/.ansible/tmp). Ansibleget_urldownloads there and moves the file to the module dir only at the end, so a slow Forgejo download (about 100 MB) was killed after 360 s with no growth seen.Why
A Forgejo installed from Settings > Module management did not get its admin account
k2goadmin, the org or the example repos, because only two screens banked the seed. No new state: the pending-seed marker keeps one setter (the batch start, plus the explicit re-seed actions) and one clearer (ForgejoSeedService).Steps to QA
Baseline (
main):GET /forgejo/api/v1/users/k2goadminreturns 404, and/k2go-api/forgejo/statusshowsadminExists:false.Change (this branch):
k2goadminreturns 200, and/k2go-api/forgejo/statusshowsadminExists:trueand the repos KnowledgeToGo, CodeOnTheGo and addons.Stall watch (second commit): remove the cached Forgejo binary on a box with a slow link to codeberg.org, then install Forgejo. On
mainthe log shows[Stall] 'forgejo' made no progress for 360sand the install fails. On this branch the download runs to the end and the install succeeds.Verifications
:app:testStandardDebugUnitTestpasses. Two-pass code review done.Notes
[Stall]lines, and the install ended OK. Onmainthe same download was killed two times at 360 s.