Page MenuHomePhabricator

branch.py: Convert deleted wmf branches to tags
Open, LowPublic

Description

On T244368, we added deletion of old wmf branches in mediawiki/tools/release/delete-wmf-branches.

This has since been superseded by @mmodell's e641ec26 - "Add the very dangerous --delete argument to mass delete branches" in branch.py.

That feature should additionally do the equivalent of git merge-base to find a branch point and tag releases (or at least a close approximation) before deleting the branch, so that users and tooling can reference it without the costs of keeping the wmf/* branches around indefinitely.

Pairing with Tyler today yielded a gitiles URL:

https://gerrit.wikimedia.org/g/mediawiki/core/+log/master%5E%5E..wmf/1.35.0-wmf.30?format=JSON&no-merges&reverse&n=1

Finding the parent of that commit should be equivalent to merge-base.

Event Timeline

brennen created this task.Apr 13 2020, 4:29 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptApr 13 2020, 4:29 PM

Change 588467 had a related patch set uploaded (by Brennen Bearnes; owner: Brennen Bearnes):
[mediawiki/tools/release@master] (DNM) delete-wmf-branches: tag at branchpoints

https://gerrit.wikimedia.org/r/588467

brennen triaged this task as Low priority.Apr 17 2020, 4:23 PM
greg awarded a token.Apr 17 2020, 4:26 PM

Change 588467 abandoned by Brennen Bearnes:
(DNM) delete-wmf-branches: tag at branchpoints

Reason:
Going to use Mukunda's changes to branch.py instead.

https://gerrit.wikimedia.org/r/588467

brennen renamed this task from delete-wmf-branches: Convert deleted wmf branches to tags to branch.py: Convert deleted wmf branches to tags.May 1 2020, 6:21 PM
brennen updated the task description. (Show Details)
brennen moved this task from Needs/Waiting Review to Next on the User-brennen board.
brennen added a subscriber: mmodell.
brennen moved this task from Next to Backlog on the User-brennen board.May 12 2020, 4:23 PM
hashar removed a project: Gerrit.Sep 7 2020, 8:41 AM