Closed Bug 1550748 Opened 6 years ago Closed 6 years ago

[meta] version-control-tools cleanups

Categories

(Developer Services :: Mercurial: hg.mozilla.org, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sheehan, Assigned: mhentges)

References

Details

(Keywords: leave-open, meta)

Attachments

(7 files)

There is a lot of code in version-control-tools that could use a cleanup and/or is candidate for removal. Off the top of my head:

  • some dead server extensions (ie from the MozReview days; overlay, manualoverlay) that can be removed
  • some bitrotted client extensions (bzpost, bzexport, mqext, q{backout,importbz}) that should be removed or cleaned up
  • dead test code (especially some unnecessary docker image builds in the test suite, like bmo)
  • lots of compatibility code spread throughout the codebase. These are annotated with # TRACKING hgxx for the most part.

Filing this bug to track cleanups to the repo.

Depends on: 1557143
Depends on: 1557786

Removing this extension as it has not been updated since Mercurial
4.2 was released, it is not installed in configwizard and it is
not recommended for use.

Core mq has been deprecated for ages, so our helper
extensions should also be deprecated. This commit removes
the mq related extensions from version-control-tools.

After landing much of the wire protocol v2 work upstream, we
started finding lots of bugs and patching over them in v-c-t,
with the intent of finding more issues and fix them upstream
after some experimentation. Since there are no plans to continue
working on this for the time being, I'm removing it, as well as
some of the related tests.

Any reason hg reviewers was removed? While it lived in mqext, it wasn't actually related to mq, and it was quite useful: given a file, it listed people who reviewed changes to that file, sorted by number of changes reviewed.

Flags: needinfo?(sheehan)
Regressions: 1592429

Ah, you're right. I filed bug 1592429 to track restoring it.

Flags: needinfo?(sheehan)

Many tests used "mq" for its "strip" command, so this commit updates them to use the "strip" extension directly. Also, this removes logic from various extensions that handled mq-specific cases

Assignee: nobody → mhentges

There's still a lot of references in the docs to mq, but I'm assuming we're going to want to keep that for another little while

Attachment #9114232 - Attachment description: hg extensions: remove logic and tests that depend on mq (Bug 1550748) r=sheehan → hgext: remove logic and tests that depend on mq (Bug 1550748) r=sheehan
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/02c8b7c3087d hgext: remove logic and tests that depend on mq r=sheehan

qbackout and qimportbz have been removed, so documenting them under the list of extensions isn't necessary anymore.
Also removes references from moz.build

What work still needs to be done for this ticket?
What's the oldest hg version we support? I looked through the # TRACKING notes in the repo, and the oldest targeted version is hg46.

Other than that, is there anything else in particular that this ticket wants to resolve?

Flags: needinfo?(sheehan)

After a brief discussion with sheehan, we don't believe that this file is used, so it should be safe to remove

Depends on D59770

Pushed by mhentges@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/339673c2cf98 extensions: removes references to q{backout, importbz} r=sheehan https://hg.mozilla.org/hgcustom/version-control-tools/rev/91c861abdaa1 cleanup: removes unused moz.build file r=sheehan

An old TODO by gps recommends removing an ansible task that would remove an obsolete supervisor config, this accomplishes that

(In reply to Mitchell Hentges [:mhentges] from comment #12)

What work still needs to be done for this ticket?

Most of the stuff listed in the bug description is finished. We could reasonably close it out now.

What's the oldest hg version we support? I looked through the # TRACKING notes in the repo, and the oldest targeted version is hg46.

The oldest version we support is supposed to be 4.9. Some things like robustcheckout still have support for older versions since our CI hasn't been updated to a newer Mercurial in some time (which I'm working on at the moment).

Other than that, is there anything else in particular that this ticket wants to resolve?

The specific things we wanted resolved are in the description - other than that, attaching random other cleanups here is fine.

Flags: needinfo?(sheehan)

Ok, I'll mark this as closed, while allowing some other various cleanups to keep being associated with the same bug id 👍

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/9649f2b8577f cleanup: removes old supervisor reference from kafka role r=sheehan
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: