|
| 1 | +--- |
| 2 | +title: It's time to bring Harmony home |
| 3 | +date: 2026-08-17 |
| 4 | +author: ["justdave"] |
| 5 | +categories: |
| 6 | +- Development |
| 7 | +comments: |
| 8 | + enabled: true |
| 9 | +--- |
| 10 | +Many Years Ago™ Dylan created a ("temporary"!) repo to house an |
| 11 | +experiment with trying to merge bugzilla.mozilla.org's fork of Bugzilla |
| 12 | +(henceforth called BMO) back upstream. And thus, |
| 13 | +[Harmony](https://github.com/bugzilla/harmony) was born. As this experiment turned |
| 14 | +out to be largely successful (though much delayed) and is now considered |
| 15 | +our primary development branch, it's time for it to live in the actual |
| 16 | +[Bugzilla](https://github.com/bugzilla/bugzilla) repo instead of off on |
| 17 | +its own. |
| 18 | + |
| 19 | +This post is aimed at developers and those who customize Bugzilla or otherwise |
| 20 | +obtain it from git. If that's not you, the rest of this post will probably be |
| 21 | +confusing, so you're welcome to skip it. |
| 22 | + |
| 23 | +Here's my plan: |
| 24 | + |
| 25 | + 1. `bugzilla/harmony:main` will be force-pushed to `bugzilla/bugzilla:main` |
| 26 | + (which does not exist yet) |
| 27 | + 2. `bugzilla/bugzilla:master` (which is currently the 5.3 development |
| 28 | + branch) will be renamed to `bugzilla/bugzilla:5.3-dev`. |
| 29 | + 3. `bugzilla/bugzilla:main` and `bugzilla/harmony:main` will need to get |
| 30 | + synced with each other frequently until the Pull Requests in the harmony repo |
| 31 | + are cleaned up. |
| 32 | + 4. `bugzilla/harmony` will live long enough for its existing PRs to |
| 33 | + either land (and then be synced to `bugzilla/bugzilla`) or close |
| 34 | + unmerged, and then it will be marked archived. |
| 35 | + |
| 36 | +There are some minor issues with that which I'd like to make everyone |
| 37 | +aware of: |
| 38 | + |
| 39 | + 1. The rename of `bugzilla:master` to `bugzilla:5.3-dev` will cause people |
| 40 | + with existing `bugzilla:master` checkouts to get told the branch no |
| 41 | + longer exists when they try to pull. But I think this is important |
| 42 | + to do anyway to avoid master and main being confused with each other. |
| 43 | + 2. GitHub's automatic links to Pull Requests in commit messages will |
| 44 | + break. By default, GitHub puts the PR number in the summary line of |
| 45 | + a commit when it gets merged. When you view the commit log on |
| 46 | + GitHub, the PR number gets linked and you can click on it to get to |
| 47 | + the PR. After the branch moves into the bugzilla repo, these |
| 48 | + auto-generated links will link to PRs with the same number in the |
| 49 | + bugzilla repo instead of the harmony repo, which will obviously be |
| 50 | + wrong. Note that Harmony already has this problem with PRs that |
| 51 | + originated on BMO before we forked (because the numbers belong to |
| 52 | + `mozilla-bteam/bmo` PRs). This is probably acceptable breakage. MOST |
| 53 | + of the PRs are linked from their associated Bugzilla bug reports, |
| 54 | + and the bug number should *also* be in the commit message. Going to |
| 55 | + the bug and following the link back to the PR from there should |
| 56 | + still go to the right place. |
| 57 | + |
| 58 | +I haven't set a date on this yet. I'd like to do it Soon™ but as we |
| 59 | +actually have developers working on the Bugzilla 6 blockers now, I'm |
| 60 | +thinking we stall until most of the blockers land (because there are |
| 61 | +several in PRs already in the harmony repo) and that will make less work |
| 62 | +keeping the two in sync until the PRs are cleaned up. |
| 63 | + |
| 64 | +Anyone have any thoughts on this? |
0 commit comments