Script to remove unused labels in cautotest front end |
||||||
Issue descriptionSeems like we don't have a way to hide labels that aren't used, would be nice to purge these with some frequency to make the cautotest front end easier to use. Maybe if not used in 30 days hide from front end view? I found this while looking for FAFT labels. Right now we have seven faft labels, but only four are being used. faft_flashrom pool:faft-test pool:faft-test-au pool:faft-test-experiment pool:faft-test-experimental (not being used) pool:labfaft (not being used) pool: tempfaft (not being used)
,
Jul 19 2016
,
Jun 13 2017
Is this what label_cleaner does?
,
Jun 14 2017
from the script's code, it should serve this purpose.
,
Jun 22 2017
,
Jun 23 2017
Solutions: 1. cautotest doesn't run this script due to error: ”ImportError: No module named MySQLdb“. Will install this package on cautotest if no objections. 2. The script only filter labels whose prefix is cros-version/fwrw-version/fwro-version, not include pool or other label prefix. Will add the prefix.
,
Jun 26 2017
The following revision refers to this bug: https://chrome-internal.googlesource.com/chromeos/chromeos-admin/+/1860c94853ab25a7f80ba7bda3ab5e83c5b7bbab commit 1860c94853ab25a7f80ba7bda3ab5e83c5b7bbab Author: xixuan <xixuan@chromium.org> Date: Mon Jun 26 22:28:36 2017
,
Aug 7 2017
from label_cleaner.log, shard executes the script, but cautotest raises error:
Traceback (most recent call last):
File "/usr/local/autotest/site_utils/label_cleaner.py", line 26, in <module>
import MySQLdb
ImportError: No module named MySQLdb
,
Aug 7 2017
Is it safe for me to install MySQLdb? any ideas why it's installed in shards but not cautotest?
,
Aug 14 2017
Re #9 Where do you want to install mysql? cautotest uses a remote mysql server (cautotest-mysql), however, shards use mysql running locally.
,
Aug 14 2017
cautotest. But never mind, https://chromium-review.googlesource.com/c/604723 already fixes this. MySQLdb is installed in site-packages. Checked with cautotest, the script starts running. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by aut...@google.com
, Jul 19 2016