Move the UI bundle repo from GitLab to Fedora Forge #70
Labels
No labels
Contributors' Guidance
Improve written Material
Contributors' Guidance
technical support measures
effort
high
effort
low
effort
medium
good first issue
help wanted
meeting topic
needs changes
needs reporter feedback
needs review
needs vote
priority
high
priority
low
priority
medium
priority
on hold
type/content
type/misc
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
docs/tickets#70
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The UI bundle repo https://gitlab.com/fedora/docs/docs-website/ui-bundle is still on GitLab. The stg and prod sites also use different UI bundles. Prod uses the
bundle-stablejob, which builds themainbranch. Stg uses thebundle-stgjob, which builds thestgbranch. Thestgbranch does not have the 2026 UI fixes frommain, so docs.stg shows an older UI than docs.fedoraproject.org.Proposed steps
docs/ui-bundle. Only themainbranch is migrated, without issues and merge requests.ui-bundle.zipand publishes it at a fixed URL.ui.bundle.urlinsite.ymlof https://forge.stg.fedoraproject.org/docs/site-builder to that URL.site.ymlto the new bundle URL. Then archive the GitLab project.Open questions
docsorganization. Another is a release whose asset is replaced on every build.stgbranch. Is it still wanted? If yes, it should go tomain.Related: #35, #22
Assisted-by: Coding Agents and LLMs
I am starting the test on forge.stg now. The first step is the migration of the GitLab repo at
docs/ui-bundleon forge.stg, with themainbranch only. The second step is a Forgejo Actions workflow that builds the bundle there. I will try both places to publish the bundle (the package registry and a release asset), and I will report the results here. The bundle URL on Forge will also be the one that the planned local previews use (docs/docs-fp-o#65).This does not change GitLab, prod or docs.stg. I will open the site-builder PR that switches docs.stg to the new bundle only after there is feedback here.
I plan to keep the name
ui-bundle, the same as on GitLab. If you prefer another name, please tell me before the prod migration.@hricky wrote in #70 (comment):
Any reason why to leave issues and old MR history behind on GitLab? I see no reason why not we use the Forgejo migrator tool to move everything over for historical record-keeping.
@jflory7 wrote in #70 (comment):
I agree, and the plan already does this for prod. Only the repo on forge.stg leaves out issues and merge requests. The migration to forge.fedoraproject.org (step 6) will use the Forgejo migrator with issues and merge requests, so the history will be kept there.
To copy issues, the migrator needs a GitLab project access token with the Maintainer role, and I cannot create one on the GitLab project. So for step 6 we will need a maintainer of the GitLab project to create this token.
The test on forge.stg works. https://forge.stg.fedoraproject.org/docs/ui-bundle builds the bundle on every pull request, and every push to main publishes it here: https://forge.stg.fedoraproject.org/api/packages/docs/generic/ui-bundle/main/ui-bundle.zip It can be downloaded without login, and it has the same files as the GitLab bundle that prod uses. Only
img/docs_logo.pngis compressed slightly differently.I chose the package registry over a release asset, because its URL stays the same and it needs no tag in the repo. For now the workflow publishes with my personal access token, because the automatic workflow token cannot write packages. Should we use a bot account instead before the prod migration?
Next I would like to open the site-builder PR that switches docs.stg to this bundle. Please tell me if you have any objections.
Nice work @hricky! Go ahead and test it out on staging, there is nothing to lose there. Thanks for working on this.