Index: scripts/slave/recipe_modules/recipe_tryjob/api.py |
diff --git a/scripts/slave/recipe_modules/recipe_tryjob/api.py b/scripts/slave/recipe_modules/recipe_tryjob/api.py |
index dd3ed31ca4bca72803f282dd9cf36971d3a2bd5b..69c8f7217eadc94fab77e512ad2a052b33259044 100644 |
--- a/scripts/slave/recipe_modules/recipe_tryjob/api.py |
+++ b/scripts/slave/recipe_modules/recipe_tryjob/api.py |
@@ -11,6 +11,10 @@ from recipe_engine import recipe_api |
RECIPE_TRYJOB_BYPASS_REASON_TAG = "Recipe-Tryjob-Bypass-Reason" |
+PATCH_PROJECT_TO_LUCI_CONFIG = { |
+ 'recipes-py': 'recipe_engine' |
+} |
+ |
def get_recipes_path(project_config): |
# Returns a tuple of the path components to traverse from the root of the repo |
# to get to the directory containing recipes. |
@@ -55,11 +59,17 @@ def parse_patches(failing_step, patches_raw, rietveld, issue, patchset, |
gives mapping of project to patch |
expect input of |
project1:https://a.b.c/1342342#ps1,project2:https://d.ce.f/1231231#ps1 |
+ |
+ Also looks at properties, which are passed into the rietveld, issue, patchset, |
+ and patch_project. |
""" |
result = {} |
if rietveld and issue and patchset and patch_project: |
# convert to str because recipes don't like unicode as step names |
+ patch_project = PATCH_PROJECT_TO_LUCI_CONFIG.get( |
+ patch_project) or patch_project |
+ |
result[str(patch_project)] = RietveldPatch( |
patch_project, rietveld, issue, patchset) |