Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: scripts/slave/recipe_modules/recipe_tryjob/api.py

Issue 2098603002: whatever bro (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Thing Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/slave/WHITESPACE ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « scripts/slave/WHITESPACE ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698