Closed Bug 1223950 Opened 9 years ago Closed 9 years ago

Configure branch name for balrog updates

Categories

(Taskcluster :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wcosta, Assigned: wcosta)

Details

Attachments

(1 file)

      No description provided.
Comment on attachment 8686308 [details] [diff] [review]
Fix branch name for balrog publishing. r=nthomas

Lets land this for the immediate situation, I don't think it can hurt any other jobs from looking at the code.

Probably we should follow up so that query_branch() is a little different. AIUI configuration given as args like --branch should have the highest precedence, and this change leaves config['branch'] in the middle. It may be preferable to echo to another config file in build-phone-ota.sh, and pass that with -c to avoid the --branch arg altogether. I'm going to defer to jlund on this as our mozharness expert.
Attachment #8686308 - Flags: review?(nthomas)
Attachment #8686308 - Flags: review+
Attachment #8686308 - Flags: feedback?(jlund)
https://hg.mozilla.org/mozilla-central/rev/6271ec21093c
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
(In reply to Nick Thomas [:nthomas] from comment #3)

> AIUI configuration given as args like --branch should have the highest
> precedence, and this change leaves config['branch'] in the middle. 

I'm being slow, what do you mean "leaves config['branch'] in the middle"? Do we define config["branch"] in mh b2g build configs elsewhere and this explicitly passed arg (--branch) is overriding that? If we don't have "branch" in any mh configs, this approach should be okay.

in desktop build world, we pass branch via --branch. Though I guess we could adopt a new approach, now that mh is in gecko, where 'branch' is set in a mh config and holds its own value depending on the gecko repo. The downside there is we would need to add more complexity to our merge scripts iiuc.
Attachment #8686308 - Flags: feedback?(jlund) → feedback+
It's the difference between desktop where --branch is the primary mechanism, and b2g where we first look to the buildbot properties, then --branch, then infer it from the repo name. Here's the code on the current tip for that:
  https://hg.mozilla.org/mozilla-central/file/1d6155d7e6c9/testing/mozharness/scripts/b2g_build.py#l204

If that's fine then I won't press the issue.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: