The default bug view has changed. See this FAQ.

Add sendchange functionality to the mozharness library

RESOLVED FIXED

Status

Release Engineering
Mozharness
P3
normal
RESOLVED FIXED
4 years ago
3 years ago

People

(Reporter: armenzg, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [mozharness])

I added this functionality to b2g_build.py but it would be nice if it was a function up there in one of the parental classes or mixins.

Low priority.

http://hg.mozilla.org/build/mozharness/file/72080d75bfcc/scripts/b2g_build.py#l637
            if self.config["target"] == "panda" and self.config.get('sendchange_masters'):
                buildbot = self.query_exe("buildbot", return_type="list")
                sendchange = [ 
                    'sendchange',
                    '--master', self.config.get("sendchange_masters")[0],
                    '--username', 'sendchange-unittest',
                    '--branch', '%s-b2g_panda-opt-unittest' % self.buildbot_config["properties"]["branch"],
                ]   
                if self.buildbot_config['sourcestamp'].get("revision"):
                    sendchange += ['-r', self.buildbot_config['sourcestamp']["revision"]]
                if len(self.buildbot_config['sourcestamp']['changes']) > 0:
                    if self.buildbot_config['sourcestamp']['changes'][0].get('who'):
                        sendchange += ['--who', self.buildbot_config['sourcestamp']['changes'][0]['who']]
                    if self.buildbot_config['sourcestamp']['changes'][0].get('comments'):
                        sendchange += ['--comments', self.buildbot_config['sourcestamp']['changes'][0]['comments']]
                if self.buildbot_config["properties"].get("builduid"):
                    sendchange += ['--property', "builduid:%s" % self.buildbot_config["properties"]["builduid"]]
                sendchange += [
                    '--property', "buildid:%s" % self.query_buildid(),
                    '--property', 'pgo_build:False',
                    download_url
                ]   
                retcode = self.run_command(
                    buildbot + sendchange
                )
(Assignee)

Updated

4 years ago
Product: mozilla.org → Release Engineering
Looks like Jordan added this:
http://mxr.mozilla.org/build-central/source/mozharness/mozharness/mozilla/buildbot.py#142
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED

Updated

3 years ago
Component: General Automation → Mozharness
You need to log in before you can comment on or make changes to this bug.