diff options
author | rmistry <rmistry@google.com> | 2015-04-02 13:31:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-02 13:31:09 -0700 |
commit | 0f05443bf1f8f851955a6ae4da6f6f6e6040deeb (patch) | |
tree | 5a914b991eb472a61d81163138f59ef10e0e908e /site | |
parent | 21027994192f395bbd1507558b84f59b3c7cf0da (diff) |
Add documentation for tree sheriffs
BUG=skia:
NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=1057883002
Review URL: https://codereview.chromium.org/1057883002
Diffstat (limited to 'site')
-rw-r--r-- | site/dev/METADATA | 4 | ||||
-rw-r--r-- | site/dev/sheriffing/index.md | 114 |
2 files changed, 118 insertions, 0 deletions
diff --git a/site/dev/METADATA b/site/dev/METADATA new file mode 100644 index 0000000000..92294f361d --- /dev/null +++ b/site/dev/METADATA @@ -0,0 +1,4 @@ +{ + "dirOrder": ["chrome", "contrib", "design", "runtime", "testing", "tools", "sheriffing"], + "fileOrder": [] +} diff --git a/site/dev/sheriffing/index.md b/site/dev/sheriffing/index.md new file mode 100644 index 0000000000..59f496d949 --- /dev/null +++ b/site/dev/sheriffing/index.md @@ -0,0 +1,114 @@ +Tree Sheriffs Documentation +=========================== + +### Contents ### + +* [What does a sheriff do?](#what_is_a_sheriff) + + [Skia tree](#skia_tree) + + [DEPS rolls](#deps_rolls) + + [Gold and Perf](#gold_and_perf) + + [Documentation](#sheriff_doc) +* [View current and upcoming sheriffs](#view_current_upcoming_sheriffs) +* [How to swap sheriff shifts](#how_to_swap) +* [Tips for sheriffs](#tips) + + [When to file bugs](#when_to_file_bugs) + + [How to close or re-open the tree](#how_close_tree) + + [Compile bot failures automatically close the tree](#tree_closers) + + [How to revert a CL](#how_to_revert) + + [What to do if DEPS roll fails to land](#deps_roll_failures) + + +<a name="what_is_a_sheriff"></a> +What does a sheriff do? +----------------------- + +A sheriff keeps an eye on the tree, DEPS rolls, Gold tool and the Perf tool. + +Below is a brief summary of what the sheriff does for each task: + +<a name="skia_tree"></a> +### Skia tree +* Understand the [buildbots infrastructure](https://skia.org/dev/testing/buildbot). +* Start watching the [status page](https://status.skia.org) for bot breakages. +* Track down people responsible for breakages and revert broken changes if there is no easy fix. +* Close and open the [tree](http://skia-tree-status.appspot.com). +* Keep the builder comments on the [status page](https://status.skia.org) upto date. +* File or follow up with [BreakingTheBuildbots bugs](https://code.google.com/p/skia/issues/list?q=label:BreakingTheBuildbots). See the tip on [when to file bugs](#when_to_file_bugs). + +<a name="deps_rolls"></a> +### DEPS rolls +* Ensure that [AutoRoll Bot](https://skia-tree-status.appspot.com/set_arb_action)'s DEPS rolls land successfully. + +<a name="gold_and_perf"></a> +### Gold and Perf +* Pay attention for new [Perf](https://perf.skia.org/) and [Gold](https://gold.skia.org/) alerts (by clicking on the bell at the top right of the [status page](https://status.skia.org)). +* The sheriff's duty here is to make sure that when developers introduce new images or new perf regressions, that they are aware of what happened, and they use these tools to take appropriate action. + +<a name="sheriff_doc"></a> +### Documentation +* Improve/update this documentation page for future sheriffs, especially the [Tips section](#tips). + +In general, sheriffs should have a strong bias towards actions that keep the tree green and then open; if a simple revert can fix the problem, the sheriff <b>should revert first and ask questions later</b>. + + +<a name="view_current_upcoming_sheriffs"></a> +View current and upcoming sheriffs +---------------------------------- + +The list of sheriffs is specified in the [skia-tree-status web app](https://skia-tree-status.appspot.com/sheriff). The current sheriff is highlighted in green. +The banner on the top of the [status page](https://status.skia.org) also displays the current sheriff. + + +<a name="how_to_swap"></a> +How to swap sheriff shifts +-------------------------- + +If you need to swap shifts with someone (because you are out sick or on vacation), please get approval from the person you want to swap with. Then send an email to skiabot@google.com to have someone make the database change (or directly ping rmistry@). + + +<a name="tips"></a> +Tips for sheriffs +----------------- + +<a name="when_to_file_bugs"></a> +### When to file bugs + +Pay close attention to the "Failures" view in the [status page](https://status.skia.org). +Look at all existing [BreakingTheBuildbots bugs](https://code.google.com/p/skia/issues/list?q=label:BreakingTheBuildbots). If the list is kept up to date then it should accurately represent everything that is causing failures. If it does not, then please file/update bugs accordingly. + + +<a name="how_close_tree"></a> +### How to close or re-open the tree + +1. Go to [skia-tree-status.appspot.com](skia-tree-status.appspot.com). +2. Change the status. + * To close the tree, include the word "closed" in the status. + * To open the tree, include the word "open" in the status. + * To caution the tree, include the word "caution" in the status. + + +<a name="how_to_submit_when_tree_closed"></a> +### How to submit when the tree is closed + +* Submit manually using the "git cl land" with the --bypass-hooks flag. +* Add "NOTREECHECKS=true" to your CL description and use the CQ as usual. + + +<a name="tree_closers"></a> +### Compile bot failures automatically close the tree + +A failure of the build steps in all compile bots automatically closes the tree. Sheriffs will have to manually reopen the tree manually when they deem the problem fixed. + +Note: The tree is not closed automatically if the last run of the failed compile builder had the same failing step. The tree is also not closed if the tree was automatically closed less than 10 mins ago. If the tree is already closed then no action is taken. + + +<a name="how_to_revert"></a> +### How to revert a CL + +See the revert documentation [here](https://skia.org/dev/contrib/revert). + + +<a name="deps_roll_failures"></a> +### What to do if DEPS roll fails to land + +A common cause of DEPS roll failures are layout tests. Find the offending Skia CL by examining the commit hash range in the DEPS roll and revert (or talk to the commit author if they are available). If you do revert then keep an eye on the next DEPS roll to make sure it succeeds. |