[mozversioncontrol] Add unofficial support for Jujutsu repositories
Categories
(Firefox Build System :: General, task, P3)
Tracking
(firefox139 fixed)
| Tracking | Status | |
|---|---|---|
| firefox139 | --- | fixed |
People
(Reporter: ahal, Assigned: sfink)
References
Details
Attachments
(3 files)
Many of us have started using Jujutsu for development in mozilla-central. While Jujutsu itself works really well (on top of git-cinnabar), some of our tooling can cause a few rough edges. Most (if not all) of these rough edges could be smoothed with a specialized JujutsuRepository class in mozversioncontrol.
This bug aims to add unofficial support for Jujutsu. This does not mean Jujutsu will become an officially supported way of working with Firefox. Any fixes / improvements here will need to be developers scratching their own itch.
I'm open to ideas on how best to communicate this. I'm thinking a warning that gets printed the first time the JujutsuRepository class is initiated that needs to be acknowledged.
| Reporter | ||
Comment 1•1 year ago
|
||
I don't love monolithic files, this simply moves things around to
submodules without changing any logic.
Updated•1 year ago
|
| Reporter | ||
Updated•1 year ago
|
Comment 3•1 year ago
|
||
| bugherder | ||
Comment 4•1 year ago
|
||
Moving mozversioncontrol around broke at least this:
https://searchfox.org/mozilla-central/rev/f2df1ff64cb876e10c72ce7eed1fc9eac3f877bb/python/mozbuild/mozbuild/artifact_commands.py#449
| Reporter | ||
Comment 5•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 9•8 months ago
|
||
Updated•8 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Comment 10•8 months ago
|
||
Comment 12•8 months ago
|
||
Comment 13•8 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•8 months ago
|
| Assignee | ||
Comment 14•8 months ago
|
||
Taking the bug so regressions get blamed on the right person.
Updated•7 months ago
|
Comment 15•5 months ago
|
||
All the regressions are closed, and searching bmo for jujutsu or jj only finds moz-phab bugs and bug 1964759 (which is a generic issue with pipelint). Can we omit the MOZ_AVOID_JJ_VCS warning by default now, do we think? If not, what would it take for that to happen?
| Assignee | ||
Comment 16•5 months ago
|
||
The purpose of the warning was to avoid dumping bugs on the DevEx team (not sure what the official abbreviation is) with the expectation that they "should" be fixed because of it being a supported configuration. That concern was highest when (1) the support was new and untried, and (2) we were in the midst of the hg->git migration. It is still an officially unsupported configuration, though, so it's still a valid concern.
With that in mind I don't feel like I should have any say in whether the warning is removed or not, it's really for that team to decide since they'll be the ones getting support requests. (To be clear, I intend to keep fixing things that come up when I can.)
Accordingly, I'll 301 to ahochheiden.
Comment 17•5 months ago
|
||
(In reply to Steve Fink [:sfink] [:s:] from comment #16)
The purpose of the warning was to avoid dumping bugs on the DevEx team (not sure what the official abbreviation is)
Engineering Workflow. π
(In reply to :Gijs (he/him) from comment #15)
Can we omit the
MOZ_AVOID_JJ_VCSwarning by default now, do we think? If not, what would it take for that to happen?
I think we're close, but we're still waiting on bug 1964150 for official moz-phab support. I spoke to Glob about this a while back and plan on making this an officially supported workflow, but that was a hard blocker from his perspective before we can make that distinction.
I plan to update the 'getting started' docs to reflect that once we have the official moz-phab support (Similar to how when hg was recommended there were hints that git was also supported, essentially providing bread crumbs to the jujutsu doc). I've already updated ./mach vcs-setup to support jj, and made the mozversioncontrol tests run with jj in CI. I think jj fix was broken again at some point, but maybe only on Windows (It hasn't worked for me for a while but I haven't gotten around to investigating yet).
There was also an idea floated to bootstrap jj as a toolchain (to ensure everyone is on the same version), but that's not necessarily a blocker.
I'm not sure what specifically we're waiting on in bug 1964150, I think it was regarding tests? Some sections of moz-phab that do not have test coverage were modified, so the ask was to implement tests for that section and I think that's what we're waiting on? So theoretically somebody could jump in to help push that along.
And to be clear, I'm definitely not the sole gatekeeper here, I've just kind of volunteered to give this the attention I feel it deserves.
Comment 18•5 months ago
•
|
||
As the person authoring patches for bug 1964150: the first step is to get patches for bug 1956345 landed, though I'm not sure what we're waiting on there either. I'll ping Connor Sheehan to see if there's anything on his end he'd like to see first; it's been a few weeks since I've followed up, and I haven't made any changes during that time.
ETA: https://bugzilla.mozilla.org/show_bug.cgi?id=1956345#c7
| Assignee | ||
Comment 19•5 months ago
|
||
(In reply to Alex Hochheiden [:ahochheiden] from comment #17)
(In reply to Steve Fink [:sfink] [:s:] from comment #16)
The purpose of the warning was to avoid dumping bugs on the DevEx team (not sure what the official abbreviation is)
Engineering Workflow. π
Ah right, sorry, I should know that from the newsletter.
As for an abbreviation, I propose "EWw". π
Description
•