History log of /external/autotest/site_utils/label_cleaner.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2f02ab8283db2221e3c57f943bfe89f6be8d718e 11-Jan-2018 Prathmesh Prabhu <pprabhu@chromium.org> Improve metrics from label_cleaner.

label_cleaner's metrics were slightly wrong -- we were never reporting
all the existing labels, and misreporting the prefix-matched labels
under "all".

While there,
- add a dry-run option to test stuff
- add options to pass in database user/password etc from commandline.

BUG=chromium:753134
TEST=Run in dry-run mode.

Change-Id: Ieeca75af725b27e46277589a7a62afe35d63765b
Reviewed-on: https://chromium-review.googlesource.com/862196
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/site_utils/label_cleaner.py
211ae69d00fbcaf6c656735e1ce2464c7e9dc8cc 19-Dec-2017 Xixuan Wu <xixuan@chromium.org> autotest: Don't delete labels that are replaced by static labels.

BUG=chromium:792309
TEST=Run './site_utils/label_cleaner.py -p board:' with local migrated
mysql.

Change-Id: Ia263d3b54576b3ed01c9d57b2d1688333ee34875
Reviewed-on: https://chromium-review.googlesource.com/833330
Commit-Ready: Xixuan Wu <xixuan@chromium.org>
Tested-by: Xixuan Wu <xixuan@chromium.org>
Reviewed-by: Xixuan Wu <xixuan@chromium.org>
/external/autotest/site_utils/label_cleaner.py
826844901b8e261729d5727cf12331e85bcbd6e0 08-Aug-2017 Prathmesh Prabhu <pprabhu@chromium.org> [autotest] Emit metrics from label_cleaner

+ cleanup some weird python idioms

BUG=chromium:753134
TEST=Cleaned labels from local autotest setup;
metrics testing by setting debug_file in ts_mon.

Change-Id: I6a19d41b868394b9459a514acefe8df700fff4d3
Reviewed-on: https://chromium-review.googlesource.com/604758
Commit-Ready: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
Reviewed-by: Paul Hobbs <phobbs@google.com>
/external/autotest/site_utils/label_cleaner.py
194b870d7330134acf0acac164907699a0204b43 08-Aug-2017 Prathmesh Prabhu <pprabhu@chromium.org> [autotest] Fix import order in label_cleaner

MySQLdb is installed via build_externals on prod machines. This means
that it is only available after 'import common'

BUG=chromium:753134
TEST=Run label_cleaner locally.

Change-Id: Id91b8cbdc718c517720b5e2bc5ddef7f47d7f334
Reviewed-on: https://chromium-review.googlesource.com/604723
Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org>
Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>
/external/autotest/site_utils/label_cleaner.py
105e1c2ff83ba698a3f3a7f8effd1eb2ccf12e61 02-Sep-2015 MK Ryu <mkryu@google.com> [autotest] Enhance logging message for label_cleaner

BUG=chromium:380365
TEST=Local test

Change-Id: I3835a69e0d8f982d6ba4c01c85be688e52049c05
Reviewed-on: https://chromium-review.googlesource.com/296513
Commit-Ready: Mungyung Ryu <mkryu@google.com>
Tested-by: Mungyung Ryu <mkryu@google.com>
Reviewed-by: Mungyung Ryu <mkryu@google.com>
/external/autotest/site_utils/label_cleaner.py
37325b48a1d9cd6b908cf3e7c175e92764e07305 26-Aug-2015 MK Ryu <mkryu@google.com> [autotest] Get correct global AFE for label_cleaner

BUG=chromium:380365
TEST=Local test.

Change-Id: Ib98e19f8c4083f2fa5e2419a948f73155f841ea7
Reviewed-on: https://chromium-review.googlesource.com/295419
Commit-Ready: Mungyung Ryu <mkryu@google.com>
Tested-by: Mungyung Ryu <mkryu@google.com>
Reviewed-by: Fang Deng <fdeng@chromium.org>
/external/autotest/site_utils/label_cleaner.py
a34e3b187b13e5b128916675bcae5fe1757dd5f2 22-Aug-2015 MK Ryu <mkryu@google.com> [autotest] Add an option for label_cleaner

When -s option is enabled, label_cleaner checks if the server
where the tool is running on is 'primary' server.
If not, it just returns.

BUG=chromium:380365
TEST=Run the tool with/without -s option in local machine.
DEPLOY=apache

Change-Id: I0eb2c4463f94e51a96c81d3c02baae41fca025cd
Reviewed-on: https://chromium-review.googlesource.com/294878
Reviewed-by: Mungyung Ryu <mkryu@google.com>
Commit-Queue: Mungyung Ryu <mkryu@google.com>
Tested-by: Mungyung Ryu <mkryu@google.com>
/external/autotest/site_utils/label_cleaner.py
4055704ec6c3ed559d35d61e5f0b8b4fcda797f6 18-Aug-2015 MK Ryu <mkryu@google.com> [autotest] Add a new script that deletes unused labels.

Labels such as 'cros-version', 'fw-version', 'fwrw-version',
and 'fwro-version' are stacking up in the DB, and there are
many such labels that are no longer in use.
This script can be used to delete unused labels.
We will run this script as a cron job in the machines that
run MySQL. Such machines are shards and master DB.

BUG=chromium:380365
TEST=Test with local database.

Change-Id: I0f341c3e5a5977c53b0764efd0442684b525f3fd
Reviewed-on: https://chromium-review.googlesource.com/294164
Trybot-Ready: Mungyung Ryu <mkryu@google.com>
Tested-by: Mungyung Ryu <mkryu@google.com>
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Mungyung Ryu <mkryu@google.com>
/external/autotest/site_utils/label_cleaner.py