Use main for prod #19
Labels
No labels
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
6 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
docs/site-builder#19
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 git branch workflow is confusing and hides the most useful content in this repository in a non-default branch. Therefore, I proposing the following:
mainbranch.prodto be the newmainbranch.stgbranch.This should make it easier for people to navigate this repository, find the things they need to find, and propose changes more easily.
I would support that. We should check if the README.md is the same or what is the newer one. And according to our rules, I guess we need a Licence file? Or does it only apply for GitLab repos?
And before we delete stg, we have to check which projects use it.
Yes, it's actively confusing and tedious to manage. If we ever need staging we can handle that through actions, or simply use local builds if it's something we develop
+1.
I also opened a separate ticket for doing the same thing in all the other repos - docs/tickets#22.
same comment as docs/docs-fp-o#20
For the record, this will break https://forge.fedoraproject.org/docs/translations-scripts
This is not blocking
Please ping me and @darknao once you proceed with the update
Also see #12.
prodandstgsites in CI #61@pboy wrote in docs/docs-fp-o#19 (comment):
I compared the old
mainbranch withprod.The
README.mdonprodis newer. It contains all changes frommain, plus a working link to the contributing guide and no reference to thestgbranch. So we can keep theprodversion.The
LICENSEfile exists only onmain. It is CC BY-SA 4.0 and was added for #4.prodhas noLICENSEfile, so the newmainneeds one added. #4 says that the license can be CC BY-SA 4.0 or MIT, according to the FPCA. This repository contains mostly scripts and configuration, and two files onprodalready have an MIT SPDX header.Which license should the new
mainuse, CC BY-SA 4.0 or MIT?@hricky MIT is best suited as a source code license, while Creative Commons licenses are better suited for content. I suggest we go with
CC BY-SA-4.0.@jflory7 wrote in docs/docs-fp-o#19 (comment):
Well, @hricky was asking about scripts. And as you said, MIT fits better for those. But since we mostly have content repos and license them under CC BY-SA 4.0, it's probably best if we continue that trend here too.
Now that I looked,
docsbuilder.shis actually MIT-licensed even in repos that are CC BY-SA. I guess (hope) that's not a big deal?Since the bulk of files in docs repos are content, the
LICENSE.txtfile should likely be CC BY-SA 4.0, and the script source code comment headers with licensing info should be enough for the builder script.PR docs/docs-fp-o!68 is merged, so
prodnow has the license. TheREADME.mdon prod already contains everything from the old main branch, and nothing uses that branch.If there are no objections, I will delete the old
mainbranch and create a newmainfromprod.prodstays for now, so the production build and translations-scripts keep working. Switching the production build tomainneeds an infra/ansible change, and I will pingjibecfedanddarknaobefore prod is removed.Thanks for working on this, @hricky! Sounds like a good plan. Maybe this is already what you have planned, but I guess
maincould be set as the default branch on Forgejo, and then theprodbranch can be more or less a mirror tomainuntil all infra and l10n changes are made.@jflory7 wrote in docs/docs-fp-o#19 (comment):
Yes, that is the plan. The steps are:
mainbranch and create a newmainfromprod.mainas the default branch.main, and an Infra ticket for the playbook run.main.prod.Steps 3 and 4 are the same as for staging. Since infra/ansible!3713, docs.stg is built from the
mainbranch of https://forge.stg.fedoraproject.org/docs/site-builder.As agreed in docs/docs-fp-o#20 by jflory7 and pbokoc, I would also rename this repository to
site-builder. That should happen before step 3, because steps 3 and 5 change the same places. Please say if there are any objections.Until step 6, new PRs go to
main, andprodis fast-forwarded tomainafter each merge.All makes sense to me! 👍
Steps 1 and 2 are done. The new
mainbranch was created fromprodand is now the default branch. New PRs should targetmain. Until step 6, I will fast-forwardprodtomainafter each merge.I also deleted the
stgbranch. Staging is built from https://forge.stg.fedoraproject.org/docs/site-builder since infra/ansible!3713, and nothing else usesstg.Updating an existing clone and fork
If you have a local clone or a fork, their
mainstill points to the old branch. The commands below assume thatupstreamis docs/docs-fp-o andoriginis your fork. If you cloned docs/docs-fp-o directly and have no fork, use only the first part and replaceupstreamwithorigin.Run these commands while you are on a branch other than
main:If you have no local
mainbranch, usegit switch --create main --track upstream/maininstead of the last two commands.To replace the old
mainin your fork:mainforsite.yml#58Steps 3 and 5 are done, and step 4 is mostly done.
Step 3: infra/ansible!3744 was merged, and infra/tickets#13654 was deployed. On 2026-11-11 darknao rebuilt the builder image from
main. The 14:50 UTC production build was the first one from the new image, and it published fine.Step 5: translations-scripts now downloads
site.ymlfrom the main branch of this repository. docs/translations-scripts!58 is merged intomainandstaging. darknao also rebuilt the docstranslation image.From now on, PRs go only into
main, andprodis no longer synced. Step 4 is complete when the next change merged intomainappears on docs.fedoraproject.org and the nightly translated build has run.@hricky Thanks both for working on this, and keeping us informed on your progress. This is great news, and it sounds like we are nearly there!
So, tomorrow (Thursday), if everything builds correctly, does this mean it is safe to default the
prodbranch on this repo? Already, it is a few commits behindmain, so it is not including the latest changes in the default branch. I am wondering when is the "safe" moment to deleteprodfrom here.@jflory7
prodhas fewer commits thanmain, but the files are the same. Until yesterday,prodwas updated with squash commits, sogit diff prod mainshows no difference. Nothing frommainis missing on the site.The nightly translated build ran at 23:00 UTC (see the
csandfrfooters), and the hourly builds use the new image. The infra configuration takes both the build scripts andsite.ymlfrommain.So I will delete
prodtoday and watch the next hourly build. If that build fails, I can recreateprodfrom commite82d4db. After a successful build, I will close this issue.I deleted
prodat about 11:45 UTC. The 11:50 UTC production build published fine, so the site no longer needs the branch. All steps are done, so I am closing this issue.One small follow-up: without
prod, a local run ofrebuild-site.pywithoutDOCS_REPO_BRANCHfails, because the default branch was stillprod. A PR that changes the default tomainfollows.