[Tree Status] Update all references in Skia repo to tree-status
* Mainly updates to documentation.
* Fix some comments in PRESUBMIT.py.
* Delete tools/lua/trigger_ct_lua. It has not worked in many years.
Bug: skia:9962
Change-Id: If6f58f173f2c8bd3fc9bdfc4db440f42489fee08
Docs-Preview: https://skia.org/?cl=274597
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/274597
Commit-Queue: Ravi Mistry <rmistry@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index eba1836..6660744 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -282,11 +282,7 @@
def CheckChangeOnUpload(input_api, output_api):
- """Presubmit checks for the change on upload.
-
- The following are the presubmit checks:
- * Check change has one and only one EOL.
- """
+ """Presubmit checks for the change on upload."""
results = []
results.extend(_CommonChecks(input_api, output_api))
# Run on upload, not commit, since the presubmit bot apparently doesn't have
@@ -524,14 +520,7 @@
def CheckChangeOnCommit(input_api, output_api):
- """Presubmit checks for the change on commit.
-
- The following are the presubmit checks:
- * Check change has one and only one EOL.
- * Ensures that the Skia tree is open in
- http://skia-tree-status.appspot.com/. Shows a warning if it is in 'Caution'
- state and an error if it is in 'Closed' state.
- """
+ """Presubmit checks for the change on commit."""
results = []
results.extend(_CommonChecks(input_api, output_api))
results.extend(_CheckLGTMsForPublicAPI(input_api, output_api))
diff --git a/infra/bots/android_compile/trigger_wait_ac_task.py b/infra/bots/android_compile/trigger_wait_ac_task.py
index 5a57d65..0baf156 100755
--- a/infra/bots/android_compile/trigger_wait_ac_task.py
+++ b/infra/bots/android_compile/trigger_wait_ac_task.py
@@ -34,7 +34,7 @@
'\n\n'
'Your run failed due to unknown infrastructure failures.\n'
'Please contact rmistry@ or the trooper from '
- 'http://skia-tree-status.appspot.com/trooper\n'
+ 'http://tree-status.skia.org/trooper\n'
'Sorry for the inconvenience!\n'
)
diff --git a/infra/bots/g3_compile/trigger_wait_g3_task.py b/infra/bots/g3_compile/trigger_wait_g3_task.py
index db3d82e..5fa0403 100755
--- a/infra/bots/g3_compile/trigger_wait_g3_task.py
+++ b/infra/bots/g3_compile/trigger_wait_g3_task.py
@@ -31,7 +31,7 @@
'\n\n'
'Your run failed due to unknown infrastructure failures.\n'
'Please contact rmistry@ or the trooper from '
- 'http://skia-tree-status.appspot.com/trooper\n'
+ 'http://tree-status.skia.org/trooper\n'
'Sorry for the inconvenience!\n'
)
MISSING_APPROVAL_ERROR_MSG = (
diff --git a/site/dev/contrib/directory.md b/site/dev/contrib/directory.md
index 0694cd4..b30b1b8 100644
--- a/site/dev/contrib/directory.md
+++ b/site/dev/contrib/directory.md
@@ -15,7 +15,7 @@
* BuildBot Consoles
- [Commit Status](https://status.skia.org/)
- - [Tree Status](https://skia-tree-status.appspot.com/) (requires login)
+ - [Tree Status](https://tree-status.skia.org/) (requires login)
- [BuildBot Console](https://build.chromium.org/p/client.skia/console)
- [FYI BuildBot
Console](https://build.chromium.org/p/client.skia.fyi/console)
diff --git a/site/dev/sheriffing/android.md b/site/dev/sheriffing/android.md
index c9ef21e..bed13fd 100644
--- a/site/dev/sheriffing/android.md
+++ b/site/dev/sheriffing/android.md
@@ -53,7 +53,7 @@
View current and upcoming RoboCops
----------------------------------
-The list of RoboCops is specified in the [skia-tree-status web app](http://skia-tree-status.appspot.com/robocop). The current RoboCop is highlighted in green.
+The list of RoboCops is specified in the [tree-status web app](http://tree-status.skia.org/robocop). The current RoboCop is highlighted in green.
The banner on the top of the [status page](https://status.skia.org) also displays the current RoboCop.
diff --git a/site/dev/sheriffing/gpu.md b/site/dev/sheriffing/gpu.md
index ea4ecfc..a5a03c9 100644
--- a/site/dev/sheriffing/gpu.md
+++ b/site/dev/sheriffing/gpu.md
@@ -42,7 +42,7 @@
View current and upcoming wranglers
----------------------------------
-The list of wranglers is specified in the [skia-tree-status web app](http://skia-tree-status.appspot.com/gpu-sheriff). The current wrangler is highlighted in green.
+The list of wranglers is specified in the [tree-status web app](http://tree-status.skia.org/wrangler). The current wrangler is highlighted in green.
The banner on the top of the [status page](https://status.skia.org) also displays the current wrangler.
diff --git a/site/dev/sheriffing/index.md b/site/dev/sheriffing/index.md
index 30836e2..3333828 100644
--- a/site/dev/sheriffing/index.md
+++ b/site/dev/sheriffing/index.md
@@ -31,7 +31,7 @@
* Understand the [testing infrastructure](https://skia.org/dev/testing/automated_testing).
* 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. You can use [blamer](#blamer) to help track down such changes.
-* Close and open the [tree](http://skia-tree-status.appspot.com).
+* Close and open the [tree](http://tree-status.skia.org).
* Keep the builder comments on the [status page](https://status.skia.org) up to date.
* File or follow up with [BreakingTheBuildbots bugs](https://bugs.chromium.org/p/skia/issues/list?q=label:BreakingTheBuildbots). See the tip on [when to file bugs](#when_to_file_bugs).
* Read and update the [Ongoing Issues section](https://docs.google.com/document/d/1y2jUf4vXI0fwhu2TiCLVIfWC1JOxFcHXGw39y7i-y_I/edit#heading=h.tpualuc3p7z0) in the handoff doc.
@@ -80,7 +80,7 @@
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 list of sheriffs is specified in the [tree-status web app](https://tree-status.skia.org/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.
@@ -105,7 +105,7 @@
<a name="how_close_tree"></a>
### How to close or re-open the tree
-1. Go to [skia-tree-status.appspot.com](https://skia-tree-status.appspot.com).
+1. Go to [tree-status.skia.org](https://tree-status.skia.org).
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.
diff --git a/site/dev/testing/swarmingbots.md b/site/dev/testing/swarmingbots.md
index 9479a4c..1999c32 100644
--- a/site/dev/testing/swarmingbots.md
+++ b/site/dev/testing/swarmingbots.md
@@ -69,7 +69,7 @@
For your convenience, the machine skolo-builder is available for checking out and compiling code within the Skolo. See
more info in the [Skolo maintenance doc][remote access] remote access section.
-[current trooper]: http://skia-tree-status.appspot.com/trooper
+[current trooper]: http://tree-status.skia.org/trooper
[remote access]:
https://docs.google.com/document/d/1zTR1YtrIFBo-fRWgbUgvJNVJ-s_4_sNjTrHIoX2vulo/edit#heading=h.v77cmwbwc5la
[infra bug]: https://bugs.chromium.org/p/skia/issues/entry?template=Infrastructure+Bug
diff --git a/tools/lua/ngrams.lua b/tools/lua/ngrams.lua
index fee6b90..c54ab65 100644
--- a/tools/lua/ngrams.lua
+++ b/tools/lua/ngrams.lua
@@ -6,7 +6,7 @@
-- $ lua tools/lua/ngrams_aggregate.lua
-- To run on Cluster Telemetry, copy and paste the contents of this file into
--- the box at https://skia-tree-status.appspot.com/skia-telemetry/lua_script,
+-- the box at https://ct.skia.org/lua_script/,
-- and paste the contents of ngrams_aggregate.lua into the "aggregator script"
-- box on the same page.
diff --git a/tools/lua/trigger_ct_lua b/tools/lua/trigger_ct_lua
deleted file mode 100755
index 7891554..0000000
--- a/tools/lua/trigger_ct_lua
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/usr/bin/env python
-
-
-""" Trigger a Cluster Telemetry job with the given Lua script. """
-
-
-import argparse
-import base64
-import getpass
-import httplib2
-import json
-import subprocess
-import urllib
-
-
-CT_URL = 'https://skia-tree-status.appspot.com/skia-telemetry/'
-CT_ADD_LUA_TASK_URL = CT_URL + 'add_lua_task'
-CT_GET_SKP_REPOS_URL = CT_URL + 'get_skp_repos'
-CT_PENDING_TASKS_URL = CT_URL + 'pending_tasks'
-POST_DATA = ('username=%s'
- '&password=%s'
- '&description=%s'
- '&lua_script=%s'
- '&pagesets_type_and_chromium_build=%s')
-
-
-def trigger_ct_run(user, password, description, script, skp_repo,
- aggregator=None):
- """Trigger a Cluster Telemetry run of the given script."""
- with open(script) as f:
- script_contents = urllib.quote(base64.b64encode(f.read()))
-
- body = POST_DATA % (user, password, description, script_contents, skp_repo)
-
- if aggregator:
- with open(aggregator) as f:
- body += '&lua_aggregator=%s' % urllib.quote(base64.b64encode(f.read()))
-
- resp, content = httplib2.Http().request(
- CT_ADD_LUA_TASK_URL, 'POST', body=body)
- if resp['status'] != '200':
- raise Exception(
- 'Failed to trigger Cluster Telemetry job: (%s): %s' % (
- resp['status'], content))
-
-
-def parse_args():
- """Parse command-line flags and obtain any additional information."""
- parser = argparse.ArgumentParser(
- description='Trigger a Cluster Telemetry job with the given Lua script.')
- parser.add_argument('--script', help='Lua script to run', required=True)
- parser.add_argument('--aggregator', help='Aggregator script')
- parser.add_argument('--description', help='Description of the job.')
- parser.add_argument('--email',
- help=('Email address to send results. If not specified, '
- 'the value of `git config user.email` is used.'))
- parser.add_argument('--password_file',
- help=('File in which the CT password is stored. Will '
- 'prompt for password if not specified.'))
- parser.add_argument('--skp_repo', default='10k',
- help='Which set of SKPs to use, eg. "10k", "All"')
- args = parser.parse_args()
-
- # If the user provided their email address, use that. Otherwise obtain it
- # from the Git config.
- user = args.email
- if not user:
- user = subprocess.check_output(['git', 'config', 'user.email']).rstrip()
-
- # Read the password from the password file, if provided, otherwise prompt.
- if args.password_file:
- with open(args.password_file) as f:
- password = f.read().rstrip()
- else:
- password = getpass.getpass(
- 'Enter the skia_status_password '
- '(on https://valentine.corp.google.com/): ')
-
- # Find an SKP repo to use.
- resp, content = httplib2.Http().request(CT_GET_SKP_REPOS_URL, "GET")
- if resp['status'] != '200':
- raise Exception('Failed to obtain SKP repos from %s' % CT_GET_SKP_REPOS_URL)
- skp_repos = json.loads(content)
- chosen_skp_repo = skp_repos.get(args.skp_repo)[0]
- if not chosen_skp_repo:
- raise Exception('No generated SKPs exist for "%s"' % args.skp_repo)
- skp_repo = '-'.join((args.skp_repo,
- chosen_skp_repo[0],
- chosen_skp_repo[1]))
-
- return (user, password, args.description, args.script, skp_repo,
- args.aggregator)
-
-
-def main():
- user, password, description, script, skp_repo, aggregator = parse_args()
- trigger_ct_run(user, password, description, script, skp_repo, aggregator)
- print ('Successfully triggered Cluster Telemetry job. View the queue at %s' %
- CT_PENDING_TASKS_URL)
-
-
-if __name__ == '__main__':
- main()