History log of /external/toolchain-utils/auto_delete_nightly_test_data.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4762fbb38cdb6a86aeb66b04b710f29a097bd5b0 23-Jan-2017 Manoj Gupta <manojgupta@google.com> Cleanup stale files from chrotomation2.

Remove images and autotest_files directories left in
chromeos chroot *-pfq directories.
Slight refactoring to avoid code duplication for release
and pfq directories.
Minor mandatory formatting updates.

BUG=chromium:656755
TEST=Old files show up for removal in dry run

Change-Id: I91230c0696148847dc408a3047f468c663b8ab8d
Reviewed-on: https://chromium-review.googlesource.com/431268
Commit-Ready: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Manoj Gupta <manojgupta@chromium.org>
Reviewed-by: Caroline Tice <cmtice@chromium.org>
/external/toolchain-utils/auto_delete_nightly_test_data.py
a8fd4f7693fbb616e73bb3d1b0c121d201de8156 06-Dec-2016 Manoj Gupta <manojgupta@google.com> Cleanup stale files on chrotomation2.

Remove cros-update* and autotest_files directories left in chromeos
chroot. Improve auto_delete script dry run to include chroot tmp
cleanup. Minor mandatory formatting updates.

BUG=chromium:656755
TEST=Old files show up for removal in dry run

Change-Id: I9d190f3220fc68a8f2cb437c08ae9506960f4983
Reviewed-on: https://chrome-internal-review.googlesource.com/310057
Commit-Ready: Manoj Gupta <manojgupta@google.com>
Tested-by: Manoj Gupta <manojgupta@google.com>
Reviewed-by: Caroline Tice <cmtice@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
88272d479f2761cc1906fea564c73033f77a6270 13-Jan-2016 Caroline Tice <cmtice@google.com> Fix cros lint errors.

Also move deprecated scripts to the 'deprecated' directory.

BUG=chromiumos:570464
TEST=tested scripts to make sure they still work.

Change-Id: I3442a86d898104591233a0849ea0bafb52ecf1f7
Reviewed-on: https://chrome-internal-review.googlesource.com/244221
Commit-Ready: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
Reviewed-by: Yunlian Jiang <yunlian@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
d97422aef5709f0a3b16b4efebc397c891940c95 16-Dec-2015 Yunlian Jiang <yunlian@google.com> crosperf: clean lint warnings.

BUG=chromium:567921
TEST=these three files are lint warning free.

Change-Id: I23f9120283fc82958abcc16f47cd29d5800bd181
Reviewed-on: https://chrome-internal-review.googlesource.com/242485
Commit-Ready: Yunlian Jiang <yunlian@google.com>
Tested-by: Yunlian Jiang <yunlian@google.com>
Reviewed-by: Caroline Tice <cmtice@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
f2a3ef46f75d2196a93d3ed27f4d1fcf22b54fbe 15-Dec-2015 Luis Lozano <llozano@chromium.org> Run pyformat on all the toolchain-utils files.

This gets rid of a lot of lint issues.
Ran by doing this:

for f in *.py; do echo -n "$f " ; if [ -x $f ]; then pyformat -i
--remove_trailing_comma --yapf --force_quote_type=double $f ; else
pyformat -i --remove_shebang --remove_trailing_comma --yapf
--force_quote_type=double $f ; fi ; done

BUG=chromium:567921
TEST=Ran simple crosperf run.

Change-Id: I59778835fdaa5f706d2e1765924389f9e97433d1
Reviewed-on: https://chrome-internal-review.googlesource.com/242031
Reviewed-by: Luis Lozano <llozano@chromium.org>
Commit-Queue: Luis Lozano <llozano@chromium.org>
Tested-by: Luis Lozano <llozano@chromium.org>
Reviewed-by: Yunlian Jiang <yunlian@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
036c9233742004aa773a374df381b1cf137484f5 10-Dec-2015 Luis Lozano <llozano@chromium.org> crosperf: RunCommand should return one type of object.

Cleaned up the interfaces for the RunCommand routines.
These were returning different types (int or tuple) depending on
the value of the return_ouput parameter.
Returning different unrelated types from a routine is bad practice.
Linter complains about this with several warnings like this:

"Attempting to unpack a non-sequence defined at line XY of
utils.command_executer"

BUG=chromium:566256
TEST=ran crosperf with a example experiment file
Ran run_tests.

Change-Id: Ibb83ab9322c87558077fc4937ef5c0686bbe5417
Reviewed-on: https://chrome-internal-review.googlesource.com/241459
Commit-Ready: Luis Lozano <llozano@chromium.org>
Tested-by: Luis Lozano <llozano@chromium.org>
Reviewed-by: Han Shen <shenhan@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
1af9294993f129f2286c961a19a04babddd2572d 05-Nov-2015 Luis Lozano <llozano@chromium.org> Make cleaning of nightly data less verbose.

The nightly process for clean up of old data is too verbose
and makes the summary report difficult to follow.

BUG=None
TEST=None

Change-Id: I3b1e18c0d913e47d4281617970a7e9a2ea0d9eb1
Reviewed-on: https://chrome-internal-review.googlesource.com/237839
Commit-Ready: Luis Lozano <llozano@chromium.org>
Tested-by: Luis Lozano <llozano@chromium.org>
Reviewed-by: Han Shen <shenhan@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
07eb87f6874d694d75887c0e889931a2cb4f36c4 11-Mar-2015 cmtice <cmtice@google.com> Fix typo that was causing some files to not be found/deleted.

BUG=None
TEST=Tested command by hand.

Change-Id: Ie61fcd802fe91ca02f361fe3665001409e4b185f
Reviewed-on: https://chrome-internal-review.googlesource.com/207315
Reviewed-by: Rahul Chaudhry <rahulchaudhry@google.com>
Commit-Queue: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
fdd8a5ba9cb296696e8d3c814e2ac7561f7bff4a 18-Feb-2015 Han Shen <shenhan@google.com> Added a function that cleans temporaries/images under crostc/chromeos.

Change-Id: Ifa92fc519afadcf10297773a2d42e27e1c9c0f9d
Reviewed-on: https://chrome-internal-review.googlesource.com/199617
Reviewed-by: Luis Lozano <llozano@chromium.org>
Commit-Queue: Han Shen <shenhan@google.com>
Tested-by: Han Shen <shenhan@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
37828578795f39daadcebe05cacc522d629b5c9c 05-Feb-2015 cmtice <cmtice@google.com> Update command_executer.py to allow a silent execution mode,
where it does not attempt to write any logs.

Update auto_delete_nightly_test_data.py to use the
command_executer in silent mode (so it doesn't run out of space
writing logs on the disk it is trying to clean up).

Change-Id: Id1c2c5f171a2d3854d3b53516ead31050da647b4
Reviewed-on: https://chrome-internal-review.googlesource.com/195877
Reviewed-by: Han Shen <shenhan@google.com>
Commit-Queue: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
798a8fa986db930786b2a6777db0f3b06db995f6 12-May-2014 cmtice <cmtice@google.com> Better handling of "not identical machines" failure.

Nightly tests, especially on the x86-generic boxes, fail frequently
because the DUTs have different board images on them, so Crosperf
decides the machines are not identical and refuses to run the tests.
With this CL, if the machine_manager finds that the machines fail the
"identical" test, it will try to push the same image onto all the machines,
and then check them again to see if they are the same. It only tries this
once; if they fail the check the second time around, it is still a fatal
failure. This should eliminate many of the unnecessary failures in our
nightly tests.

This CL also fixes a small bug in the auto-delete script (this fix has
been running for a while on mobiletc-prebuild, but never got committed).

BUG=None
TEST=Ran several iterations where I forced the first "identical" check to
fail. The changes worked.

Change-Id: Ied2a55e5d3e2789e58a503aef03269888954b579
Reviewed-on: https://chrome-internal-review.googlesource.com/163334
Reviewed-by: Luis Lozano <llozano@chromium.org>
Commit-Queue: Caroline Tice <cmtice@google.com>
Tested-by: Caroline Tice <cmtice@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
4375f760cb471a09b410d4034028eb8e45b1ba24 25-Apr-2014 Han Shen <shenhan@chromium.org> Abort deleting the directory if deletion of any of its chromeos subtree fails.

TEST=None
BUG=None

Change-Id: I4dfd2f67d8bc7f6f329b58800c148a923e78eace
Reviewed-on: https://chrome-internal-review.googlesource.com/161678
Reviewed-by: Luis Lozano <llozano@chromium.org>
Commit-Queue: Han Shen <shenhan@google.com>
Tested-by: Han Shen <shenhan@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
a58a824b41a0121439794cd8a2392364e4d6975c 23-Apr-2014 Han Shen <shenhan@chromium.org> Add necessary output to auto_delete_nightly_test_data script and return with meaning exit code.

The script did not have any output in case of a success run, which
means we do not get emails about this cron job. Also the exit code was
always 0. Fixed by adding print statements and return correct exit
code.

TEST=None
BUG=None

Change-Id: If06a4d57a94387494f9c1b30fea765f66e6e0f56
Reviewed-on: https://chrome-internal-review.googlesource.com/161302
Reviewed-by: Caroline Tice <cmtice@google.com>
Commit-Queue: Han Shen <shenhan@google.com>
Tested-by: Han Shen <shenhan@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py
e4b6f220f3cc7d3277daca7bca25f89d648dae8e 22-Nov-2013 Han Shen <shenhan@google.com> Add a script to delete nightly test data that are old.

TEST=tested on tc-build.hot

Change-Id: I6b6bc298b56c6ac79cbbd66f8168bc234580c884
Reviewed-on: https://chrome-internal-review.googlesource.com/150264
Reviewed-by: Yunlian Jiang <yunlian@google.com>
Commit-Queue: Han Shen <shenhan@google.com>
Tested-by: Han Shen <shenhan@google.com>
/external/toolchain-utils/auto_delete_nightly_test_data.py