Closed Bug 1038801 Opened 12 years ago Closed 12 years ago

Release to ESR merge day automation

Categories

(Release Engineering :: Applications: MozharnessCore, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: rail)

Details

Attachments

(1 file, 1 obsolete file)

Attached patch esr_merge-mozharness.diff (obsolete) — — Splinter Review
It turns out that releng has not done this prior to ESR31 and we had no docs explaining what should be changed as a part of merge. Attached is a not tested draft.
Attachment #8456270 - Flags: feedback?(aki)
Comment on attachment 8456270 [details] [diff] [review] esr_merge-mozharness.diff >diff --git a/configs/merge_day/release_to_esr.py b/configs/merge_day/release_to_esr.py >+config = { >+ "log_name": "relese_to_esr", >+ # Disallow sharing, since we want pristine .hg directories. >+ # "vcs_share_base": None, >+ # "hg_share_base": None, >+ "tools_repo_url": "https://hg.mozilla.org/build/tools", >+ "tools_repo_revision": "default", >+ "from_repo_url": "ssh://hg.mozilla.org/releases/mozilla-release", >+ "to_repo_url": "ssh://hg.mozilla.org/releases/mozilla-esr38", >+ >+ "base_tag": "FIREFOX_ESR_%(major_version)s_BASE", >+ "end_tag": "FIREFOX_ESR_%(major_version)s_END", >+ >+ "migration_behavior": "release_to_esr", >+ "require_remove_locales": False, >+ "transplant_patches": [ >+ {"repo": "https://hg.mozilla.org/releases/mozilla-esr31", >+ "changeset": "450086c0ded0"}, >+ ] >+} Maybe at the top we can have OLD_ESR_REPO = "https://hg.mozilla.org/releases/mozilla-esr31" OLD_ESR_CHANGESET = "450086c0ded0" NEW_ESR_REPO = "ssh://hg.mozilla.org/releases/mozilla-esr38" to make it easier to find the lines that need to change next time? I'm fine with being clear in wiki documentation as well. >+ def transplant(self, repo, changeset, cwd): >+ hg = self.query_exe("hg", return_type="list") Docstring is probably not needed since it's mostly intuitive, but it's good to have.
Attachment #8456270 - Flags: feedback?(aki) → feedback+
ESR merges don't require hg debugsetparent because there is no non-fastforward commit (we create the repo as a fresh clone).
Attachment #8456270 - Attachment is obsolete: true
Attachment #8456876 - Flags: review?(aki)
Comment on attachment 8456876 [details] [diff] [review] esr_merge-mozharness-1.diff Awesome. The requires_head_merge that defaults to True is the way I'd solve that too. Thanks Rail!
Attachment #8456876 - Flags: review?(aki) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
In production.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: