Unverified Commit 248d7465 authored by godofredoc's avatar godofredoc Committed by GitHub

Update recipes location. (#59500)

The flutter infra recipes got moved to a new location and we need to
update docs with links to the new locations.

Bug:
  https://github.com/flutter/flutter/issues/45630
parent 3dad0a29
...@@ -72,12 +72,12 @@ search for files named `api.py` or `example.py` under `infra/build`. ...@@ -72,12 +72,12 @@ search for files named `api.py` or `example.py` under `infra/build`.
### Editing a recipe ### Editing a recipe
Flutter has one recipe per repository. Currently Flutter has one recipe per repository. Currently
[flutter/flutter](https://chromium.googlesource.com/chromium/tools/build.git/+/master/scripts/slave/recipes/flutter/flutter.py) [flutter/flutter](https://flutter.googlesource.com/recipes/+/refs/heads/master/recipes/flutter.py)
and and
[flutter/engine](https://chromium.googlesource.com/chromium/tools/build.git/+/master/scripts/slave/recipes/flutter/engine.py): [flutter/engine](https://flutter.googlesource.com/recipes/+/refs/heads/master/recipes/engine.py):
- build/scripts/slave/recipes/flutter/flutter.py - recipes/flutter.py
- build/scripts/slave/recipes/flutter/engine.py - recipes/engine.py
Recipes are just Python with some limitations on what can be imported. They are Recipes are just Python with some limitations on what can be imported. They are
[documented](https://github.com/luci/recipes-py/blob/master/doc/user_guide.md) [documented](https://github.com/luci/recipes-py/blob/master/doc/user_guide.md)
...@@ -85,18 +85,19 @@ by the [luci/recipes-py github project](https://github.com/luci/recipes-py). ...@@ -85,18 +85,19 @@ by the [luci/recipes-py github project](https://github.com/luci/recipes-py).
The typical cycle for editing a recipe is: The typical cycle for editing a recipe is:
1. Make your edits (probably to files in 1. Checkout the recipes project using `git clone https://flutter.googlesource.com/recipes`.
`//chrome_infra/build/scripts/slave/recipes/flutter`). 2. Make your edits (probably to files in
2. Update the tests. Run `build/scripts/slave/recipes.py test train` to update `//recipes/recipes`).
3. Update the tests. Run `recipes.py test train` to update
existing expected output to match the new output. Verify completely new test existing expected output to match the new output. Verify completely new test
cases by altering the `GenTests` method of the recipe. The recipe is required cases by altering the `GenTests` method of the recipe. The recipe is required
to have 100% test coverage. to have 100% test coverage.
3. Run `led get-builder 'luci.flutter.prod:BUILDER_NAME' | led edit -p 'revision="GIT_HASH"' | led edit-recipe-bundle | led launch`, where `BUILDER_NAME` is the builder name (e.g. `Linux Engine`), and 4. Run `led get-builder 'luci.flutter.prod:BUILDER_NAME' | led edit -p 'revision="GIT_HASH"' | led edit-recipe-bundle | led launch`, where `BUILDER_NAME` is the builder name (e.g. `Linux Engine`), and
`GIT_HASH` is the hash to build (which is important for the engine but not `GIT_HASH` is the hash to build (which is important for the engine but not
for the framework). for the framework).
4. To submit a CL, you need a local branch first (`git checkout -b [some branch name]`). 5. To submit a CL, you need a local branch first (`git checkout -b [some branch name]`).
5. Upload the patch (`git commit`, `git cl upload`) and send it to someone in 6. Upload the patch (`git commit`, `git cl upload`) and send it to someone in
the `recipes/flutter/OWNERS` file for review. the `OWNERS` file for review.
### The infra config repository ### The infra config repository
......
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