bug 1433488 - auto-push firefox betas > b2. r?rail
MozReview-Commit-ID: 1Crpz8jJCoh
--- a/buildfarm/release/release-runner3.py
+++ b/buildfarm/release/release-runner3.py
@@ -115,16 +115,21 @@ def is_rc(release):
def get_beta_num(version):
if is_beta(version):
parts = version.split('b')
return int(parts[-1])
+def should_auto_push(release):
+ return release['product'] in ('devedition', 'firefox') and is_beta(release['version']) \
+ and get_beta_num(release['version']) > 2
+
+
def main(options):
log.info('Loading config from %s' % options.config)
with open(options.config, 'r') as config_file:
config = yaml.load(config_file)
if config['release-runner'].get('verbose', False):
log_level = logging.DEBUG
@@ -207,16 +212,18 @@ def main(options):
# XXX The current plan is to run promote_firefox_rc, then
# ship_firefox_rc, then push_firefox, then ship_firefox.
# We need to support this workflow. However, rr3 doesn't
# support anything more than the first action task yet,
# so this isn't a missing feature for RCs specifically.
action_task_input["release_promotion_flavor"] = "{}_rc".format(
action_task_input["release_promotion_flavor"]
)
+ elif should_auto_push(release):
+ action_task_input["release_promotion_flavor"] = "push_{}".format(release["product"])
action_task_id, action_task = generate_action_task(
project=release["branchShortName"],
revision=release["mozillaRevision"],
action_task_input=action_task_input,
)
submit_action_task(queue=queue, action_task_id=action_task_id,
action_task=action_task)
rr.mark_as_completed(release)