New issue
Advanced search Search tips

Issue 868608 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Sep 11
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocking:
issue 863238



Sign in to add a comment

Recipes should have a command to say if a CL affects a recipe

Project Member Reported by martiniss@chromium.org, Jul 27

Issue description

The use case is the led_recipes_tester that I'm developing. It'd be very useful to be able to ask the recipe engine if a CL affects a given recipe.

recipes already has the depgraph command, which means that the general information is already generated. It's a bit hard to consume at the moment though. 
 
Maybe could be 'recipes.py analyze', similar to what the main chromium bots do.
Blocking: 863238
So I propose:

  # input
  {
    "files": ["list", "of", "repo", "relative", "files"],
    "recipes": ["list", "of", "recipes"]
  }

  # output
  {
    "recipes": ["list", "of", "affected", "recipes"],
    "invalid_recipes": ["list", "of", "unknown", "recipes"],
    "error": "string with error message, if any"
  }

And it'll be invoked as:

  ./recipes.py analyze <input_json_path> <output_json_path>


SG?
SGTM

I think it's possible that you'd want to be able to do this on dependent repos. Example is we want to see if a change in depot_tools would affect the chromium recipe, which is in build. I don't think that's too hard to do using this format, but just an FYI. Edward wants to use this same recipe for depot_tools, so that's a needed feature for him.
I'm going to take a stab at implementing this.
Status: Fixed (was: Available)
#6 implements this.

Sign in to add a comment