diff options
author | Bertrand SIMONNET <bsimonnet@chromium.org> | 2015-03-27 08:42:16 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-27 22:21:17 +0000 |
commit | e116fff921f4e2625026921f26f4868ca6559c19 (patch) | |
tree | c42d57f90c54cac58956428652566af28916c47e /cbuildbot/update_binhost_json.py | |
parent | f1d16a69953f85e9a911f7e693463e415d6019c3 (diff) | |
download | chromite-e116fff921f4e2625026921f26f4868ca6559c19.tar.gz |
Chrome binhost: Publish the binhost map publicly.
When posting the chrome binhost mapping, post a filtered version of it
externally.
BUG=chromium:443254
TEST=trybot.
TEST=manual: cbuildbot/update_binhost_json generates both files.
Change-Id: Id5409820a42e03d964ed84c62b1e66b0a4b6a0da
Reviewed-on: https://chromium-review.googlesource.com/262769
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
Trybot-Ready: Bertrand Simonnet <bsimonnet@chromium.org>
Tested-by: Bertrand Simonnet <bsimonnet@chromium.org>
Commit-Queue: Bertrand Simonnet <bsimonnet@chromium.org>
Diffstat (limited to 'cbuildbot/update_binhost_json.py')
-rw-r--r-- | cbuildbot/update_binhost_json.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/cbuildbot/update_binhost_json.py b/cbuildbot/update_binhost_json.py index 3a6fb0615..54c546342 100644 --- a/cbuildbot/update_binhost_json.py +++ b/cbuildbot/update_binhost_json.py @@ -44,8 +44,17 @@ def main(argv): # Save the PFQ configs. pfq_configs = binhost.PrebuiltMapping.Get(keys, compat_ids) - filename = binhost.PrebuiltMapping.GetFilename(opts.buildroot, 'chrome') - pfq_configs.Dump(filename) - git.AddPath(filename) - git.Commit(os.path.dirname(filename), 'Update PFQ config dump', + filename_internal = binhost.PrebuiltMapping.GetFilename(opts.buildroot, + 'chrome') + pfq_configs.Dump(filename_internal) + git.AddPath(filename_internal) + git.Commit(os.path.dirname(filename_internal), 'Update PFQ config dump', + allow_empty=True) + + filename_external = binhost.PrebuiltMapping.GetFilename(opts.buildroot, + 'chromium', + internal=False) + pfq_configs.Dump(filename_external, internal=False) + git.AddPath(filename_external) + git.Commit(os.path.dirname(filename_external), 'Update PFQ config dump', allow_empty=True) |