Move the UI bundle repo from GitLab to Fedora Forge #70

Open
opened 2026-10-26 09:48:10 +00:00 by hricky · 5 comments
Owner

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-stable job, which builds the main branch. Stg uses the bundle-stg job, which builds the stg branch. The stg branch does not have the 2026 UI fixes from main, so docs.stg shows an older UI than docs.fedoraproject.org.

Proposed steps

  1. Migrate the repo to forge.stg as docs/ui-bundle. Only the main branch is migrated, without issues and merge requests.
  2. Add a Forgejo Actions workflow that lints the UI, builds ui-bundle.zip and publishes it at a fixed URL.
  3. Change ui.bundle.url in site.yml of https://forge.stg.fedoraproject.org/docs/site-builder to that URL.
  4. Continue the copy-to-clipboard work from GitLab MR 26 as a pull request in the forge.stg repo. MR 26 will be closed on GitLab.
  5. Check the new UI and copy-to-clipboard on docs.stg.
  6. Migrate the GitLab repo to forge.fedoraproject.org, this time with its issues. Add the same workflow, open the copy-to-clipboard pull request there, and change the prod site.yml to the new bundle URL. Then archive the GitLab project.

Open questions

  • Where should the workflow publish the bundle? One option is the generic package registry of the docs organization. Another is a release whose asset is replaced on every build.
  • Commit 1ee3ab9 ("Footer: Center, but left-justify, license stmt") is only on the stg branch. Is it still wanted? If yes, it should go to main.

Related: #35, #22

Assisted-by: Coding Agents and LLMs

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-stable` job, which builds the `main` branch. Stg uses the `bundle-stg` job, which builds the `stg` branch. The `stg` branch does not have the 2026 UI fixes from `main`, so docs.stg shows an older UI than docs.fedoraproject.org. ### Proposed steps 1. Migrate the repo to forge.stg as `docs/ui-bundle`. Only the `main` branch is migrated, without issues and merge requests. 2. Add a Forgejo Actions workflow that lints the UI, builds `ui-bundle.zip` and publishes it at a fixed URL. 3. Change `ui.bundle.url` in `site.yml` of https://forge.stg.fedoraproject.org/docs/site-builder to that URL. 4. Continue the copy-to-clipboard work from [GitLab MR 26](https://gitlab.com/fedora/docs/docs-website/ui-bundle/-/merge_requests/26) as a pull request in the forge.stg repo. [MR 26](https://gitlab.com/fedora/docs/docs-website/ui-bundle/-/merge_requests/26) will be closed on GitLab. 5. Check the new UI and copy-to-clipboard on docs.stg. 6. Migrate the GitLab repo to forge.fedoraproject.org, this time with its issues. Add the same workflow, open the copy-to-clipboard pull request there, and change the prod `site.yml` to the new bundle URL. Then archive the GitLab project. ### Open questions - Where should the workflow publish the bundle? One option is the generic package registry of the `docs` organization. Another is a release whose asset is replaced on every build. - Commit [1ee3ab9](https://gitlab.com/fedora/docs/docs-website/ui-bundle/-/commit/1ee3ab9f4dc16086644300d75991c158c927cf99) ("Footer: Center, but left-justify, license stmt") is only on the `stg` branch. Is it still wanted? If yes, it should go to `main`. Related: #35, #22 <sub>_Assisted-by: Coding Agents and LLMs_</sub>
hricky self-assigned this 2026-10-26 09:48:10 +00:00
Author
Owner

I am starting the test on forge.stg now. The first step is the migration of the GitLab repo at docs/ui-bundle on forge.stg, with the main branch 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.

I am starting the test on forge.stg now. The first step is the migration of the GitLab repo at `docs/ui-bundle` on forge.stg, with the `main` branch 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.
Owner

@hricky wrote in #70 (comment):

1. Migrate the repo to forge.stg as `docs/ui-bundle`. Only the `main` branch is migrated, without issues and merge requests.

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.

@hricky wrote in https://forge.fedoraproject.org/docs/tickets/issues/70#issue-341108: > 1. Migrate the repo to forge.stg as `docs/ui-bundle`. Only the `main` branch is migrated, without issues and merge requests. 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.
Author
Owner

@jflory7 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.

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.

@jflory7 wrote in https://forge.fedoraproject.org/docs/tickets/issues/70#issuecomment-1368716: > 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. 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.
Author
Owner

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.png is 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.

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.png` is 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.
Owner

Nice work @hricky! Go ahead and test it out on staging, there is nothing to lose there. Thanks for working on this.

Nice work @hricky! Go ahead and test it out on staging, there is nothing to lose there. Thanks for working on this.
Sign in to join this conversation.
No milestone
No assignees
2 participants
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
docs/tickets#70
No description provided.