Bug 1380829 - enable binary transparency worker for releases, r=mtabara
authorBrandon Tang <btang@mozilla.com>
Wed, 26 Jul 2017 15:57:54 -0700
changeset 7703 f8a63f49524e9c70cd1d2c4aefa9042d8fdec024
parent 7702 2e7220d9f290ba647e54bc4914a8678b0b35fe95
child 7704 90b1637b7c96cf48b103d8c19a82606df0ba9aae
push id5714
push userbtang@mozilla.com
push dateWed, 26 Jul 2017 23:00:36 +0000
reviewersmtabara
bugs1380829
Bug 1380829 - enable binary transparency worker for releases, r=mtabara
buildfarm/release/release-runner.py
buildfarm/release/releasetasks_graph_gen.py
lib/python/kickoff/__init__.py
--- a/buildfarm/release/release-runner.py
+++ b/buildfarm/release/release-runner.py
@@ -433,16 +433,17 @@ def main(options):
                 "version": release["version"],
                 # ESR should not use "esr" suffix here:
                 "next_version": bump_version(release["version"].replace("esr", "")),
                 "appVersion": getAppVersion(release["version"]),
                 "buildNumber": release["buildNumber"],
                 "release_eta": release.get("release_eta"),
                 "source_enabled": True,
                 "checksums_enabled": True,
+                "binary_transparency_enabled": branchConfig.get("binary_transparency_enabled", False),
                 "repo_path": release["branch"],
                 "revision": release["mozillaRevision"],
                 "product": release["product"],
                 "funsize_product": get_funsize_product(release["product"]),
                 # if mozharness_revision is not passed, use 'revision'
                 "mozharness_changeset": release.get('mh_changeset') or release['mozillaRevision'],
                 "partial_updates": release.get('partial_updates', list()),
                 "branch": release['branchShortName'],
--- a/buildfarm/release/releasetasks_graph_gen.py
+++ b/buildfarm/release/releasetasks_graph_gen.py
@@ -78,16 +78,17 @@ def main(release_runner_config, release_
         "product": release_config["product"],
         "funsize_product": release_config["funsize_product"],
         "release_channels": release_config['channels'],
         "final_verify_channels": release_config['final_verify_channels'],
         "final_verify_platforms": release_config['final_verify_platforms'],
         "uptake_monitoring_platforms": release_config['uptake_monitoring_platforms'],
         "source_enabled": release_config["source_enabled"],
         "checksums_enabled": release_config["checksums_enabled"],
+        "binary_transparency_enabled": release_config.get("binary_transparency_enabled", False),
         "updates_enabled": release_config["updates_enabled"],
         "push_to_releases_enabled": release_config["push_to_releases_enabled"],
 
         "verifyConfigs": {},
         # ESR should not use "esr" suffix here:
         "next_version": bump_version(release_config["version"].replace("esr", "")),
         "appVersion": getAppVersion(release_config["version"]),
         "partial_updates": get_partials(rr, release_config["partials"],
--- a/lib/python/kickoff/__init__.py
+++ b/lib/python/kickoff/__init__.py
@@ -265,18 +265,18 @@ def bump_version(version):
     v[-1] = str(int(v[-1]) + 1)
     return split_by.join(v) + suffix
 
 
 def make_task_graph_strict_kwargs(appVersion, balrog_api_root, balrog_password, balrog_username,
                                   beetmover_aws_access_key_id, beetmover_aws_secret_access_key,
                                   beetmover_candidates_bucket, bouncer_enabled, branch, buildNumber,
                                   build_tools_repo_path, candidates_fennec_enabled,
-                                  checksums_enabled, en_US_config, root_home_dir,
-                                  extra_balrog_submitter_params, final_verify_channels,
+                                  checksums_enabled, binary_transparency_enabled, en_US_config,
+                                  root_home_dir, extra_balrog_submitter_params, final_verify_channels,
                                   final_verify_platforms, uptake_monitoring_platforms,
                                   funsize_balrog_api_root, l10n_config, signing_cert,
                                   l10n_changesets, mozharness_changeset, next_version,
                                   partial_updates, partner_repacks_platforms,
                                   eme_free_repacks_platforms, sha1_repacks_platforms,
                                   postrelease_bouncer_aliases_enabled, uptake_monitoring_enabled,
                                   postrelease_version_bump_enabled, moz_disable_mar_cert_verification,
                                   postrelease_mark_as_shipped_enabled, accepted_mar_channel_id, public_key,
@@ -298,16 +298,17 @@ def make_task_graph_strict_kwargs(appVer
         beetmover_aws_secret_access_key=beetmover_aws_secret_access_key,
         beetmover_candidates_bucket=beetmover_candidates_bucket,
         bouncer_enabled=bouncer_enabled,
         branch=branch,
         buildNumber=buildNumber,
         build_tools_repo_path=build_tools_repo_path,
         candidates_fennec_enabled=candidates_fennec_enabled,
         checksums_enabled=checksums_enabled,
+        binary_transparency_enabled=binary_transparency_enabled,
         en_US_config=en_US_config,
         final_verify_channels=final_verify_channels,
         final_verify_platforms=final_verify_platforms,
         uptake_monitoring_platforms=uptake_monitoring_platforms,
         funsize_balrog_api_root=funsize_balrog_api_root,
         l10n_changesets=l10n_changesets,
         l10n_config=l10n_config,
         mozharness_changeset=mozharness_changeset,