Unverified Commit 37108c4c authored by xster's avatar xster Committed by GitHub

Add some instructions to the README for packaging archives locally (#27116)

parent de321b9c
...@@ -43,6 +43,20 @@ To work on this infrastructure you will need: ...@@ -43,6 +43,20 @@ To work on this infrastructure you will need:
- Python package installer: `sudo apt-get install python-pip` - Python package installer: `sudo apt-get install python-pip`
- Python coverage package (only needed for `training_simulation`): `sudo pip install coverage` - Python coverage package (only needed for `training_simulation`): `sudo pip install coverage`
To run prepare_package.dart locally:
- Make sure the depot_tools is in your PATH. If you're on Windows, you also need
an environment variable called DEPOT_TOOLS with the path to depot_tools as value.
- Run `gsutil.py config` (or `python %DEPOT_TOOLS%\gsutil.py` on Windows) to
authenticate with your auth token. When asked, the GCP project ID is
`turquoise-dev`.
- Create a local temp directory. `cd` into it.
- Run `dart [path to your normal Flutter repo]/dev/bots/prepare_package.dart
--temp_dir=. --revision=[revision to package] --branch=[branch to deploy to]
--publish`.
- If you're running into gsutil permission issues, check with @Hixie to make sure
you have the right push permissions.
### Getting the code ### Getting the code
The following will get way more than just recipe code, but it _will_ get the recipe code: The following will get way more than just recipe code, but it _will_ get the recipe code:
...@@ -77,9 +91,9 @@ The typical cycle for editing a recipe is: ...@@ -77,9 +91,9 @@ The typical cycle for editing a recipe is:
1. Make your edits (probably to files in 1. Make your edits (probably to files in
`//chrome_infra/build/scripts/slave/recipes/flutter`). `//chrome_infra/build/scripts/slave/recipes/flutter`).
1. Update the tests. Run `build/scripts/slave/recipes.py --use-bootstrap test 1. Update the tests. Run `build/scripts/slave/recipes.py test train` to update
train` to update existing expected output to match the new output. Verify existing expected output to match the new output. Verify completely new test
completely new test cases by altering the `GenTests` method of the recipe. cases by altering the `GenTests` method of the recipe.
The recipe is required to have 100% test coverage. The recipe is required to have 100% test coverage.
1. Run `build/scripts/slave/recipes.py run flutter/<repo> slavename=<slavename> 1. Run `build/scripts/slave/recipes.py run flutter/<repo> slavename=<slavename>
mastername=client.flutter buildername=<buildername> buildnumber=1234` where `<repo>` is one mastername=client.flutter buildername=<buildername> buildnumber=1234` where `<repo>` is one
......
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