Commit 92c05b07 authored by Garrett Beaty's avatar Garrett Beaty Committed by LUCI CQ

Produce blamelist pins in a consistent order.

The blamelist pins are produced by iterating over a dictionary which
yields a different order between python2 and python3. The blamelist pins
will now be produced with a consistent ordering between python versions
by sorting on the revision name.

Change-Id: Ieb6c4dfe0aacea83c4a86a3a10380cc2f3839114
Recipe-Nontrivial-Roll: build
Recipe-Nontrivial-Roll: build_limited
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3352250Reviewed-by: 's avatarJosip Sokcevic <sokcevic@google.com>
Commit-Queue: Garrett Beaty <gbeaty@google.com>
parent 30ae6377
...@@ -360,7 +360,7 @@ class BotUpdateApi(recipe_api.RecipeApi): ...@@ -360,7 +360,7 @@ class BotUpdateApi(recipe_api.RecipeApi):
if add_blamelists and 'manifest' in result: if add_blamelists and 'manifest' in result:
blamelist_pins = [] blamelist_pins = []
for name in revisions: for name in sorted(revisions):
m = result['manifest'][name] m = result['manifest'][name]
pin = {'id': m['revision']} pin = {'id': m['revision']}
pin['host'], pin['project'] = ( pin['host'], pin['project'] = (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment