Lines Matching +full:dry +full:- +full:run
4 # Use of this source code is governed by a BSD-style license that can be
15 'cros-version' and are not in use.
17 ./label_cleaner.py -p cros-version
19 If '-p' option is not given, we delete labels whose name is exactly
20 'cros-version' and are not in use.
54 # Per-prefix metrics are generated only for the following prefixes. This
58 'cros-version',
59 'fwro-version',
60 'fwrw-version',
126 return set(r[0] for r in rows) - replaced_label_ids
134 logging.info('[DRY RUN] Would have run: %r', sql)
147 @param dry_run: (Boolean) Whether this is a dry run.
160 server = frontend.AFE(server=GLOBAL_AFE).run(
177 raise Exception('Cannot run in a non-primary server')
213 to_delete = list(labels - used_labels)
225 '--db',
231 '--db-user',
237 '--db-password',
243 '-p',
247 'For example, when the argument <label> is "cros-version" '
249 'beginning with "cros-version" are matched. When this '
254 '-n',
261 '-s',
264 help='Enforce to run only in a server that has primary status',
267 '--dry-run',
270 help='Dry run mode. Do not actually delete any labels.',
276 datefmt='%Y-%m-%d %H:%M:%S',