Commit Graph

1527 Commits

Author SHA1 Message Date
Warren Usui
a1d8225b7d Added docstrings, and improved some of the comments on several tasks. 2013-10-12 01:35:34 -07:00
Zack Cerza
d341b588a7 Ignore the exit code of ssh-keyscan
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-11 12:48:55 -05:00
Zack Cerza
f5729051ab Fix a circular import
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-11 12:48:55 -05:00
Zack Cerza
f28a7ebc2c Move imports to top-level
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-11 12:48:55 -05:00
Zack Cerza
636dc8676e Move part of report_all_runs() into report_runs()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-11 10:48:02 -05:00
Zack Cerza
61606fe0fa Set a default timeout of 20s for HTTP connections
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-11 10:23:00 -05:00
Zack Cerza
01b81b7820 Move monkey patching to __init__.py
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:15:01 -05:00
Zack Cerza
bd9cbdba03 Don't attempt to report if there's no job_id
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:35 -05:00
Zack Cerza
098389da82 Properly express conflicting options
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:35 -05:00
Zack Cerza
f34f3b3baf Move teuthology's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:35 -05:00
Zack Cerza
8351a3abfa PEP-8
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
e4753215ea PEP-8
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
45d1b0eb18 Move teuthology-coverage's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
f4d655bbed PEP-8
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
193b3112a3 Move teuthology-results' arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
477e4ae2ce PEP-8
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
7ab9726737 Move teuthology-report's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
755ac2f129 Move teuthology-updatekeys' arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
84b2e55b93 Move schedule() to new schedule module 2013-10-10 19:09:34 -05:00
Zack Cerza
c784c79f1d Move teuthology-schedule's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
a6b57cc136 PEP-8
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
974898597f Move teuthology-lock's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
6b2f2780e0 PEP-8
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
1bf3a3dadb Move teuthology-worker's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
5fd1cd0bed Move teuthology-ls's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
e847b1075a Move teuthology-suite's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
7ce4dfd97a Move teuthology-nuke's arg parsing to scripts/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
Zack Cerza
4902bfabf3 PEP-8 cleanup
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-10 19:09:34 -05:00
tamil
7b889797c3 ignoring -X option in apache as it was causing s3test failures on the rpms.
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-10-09 17:12:16 -07:00
Zack Cerza
1c32b1b886 Reflect paddles API change: jobs in jobs/
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-07 10:01:48 -05:00
Zack Cerza
f78f3163c0 Add more tests for ReportSerializer
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-04 15:22:21 -05:00
Zack Cerza
972ab1cf22 Tweak logic of try_push_job_info()
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-04 15:01:16 -05:00
Zack Cerza
f18c8f7e28 Make most of lock_machines() PEP-8 clean.
Also, use some better variable names.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-04 14:11:16 -05:00
Zack Cerza
5482ba81d1 Make teuthology-schedule also print the job's name
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-04 13:11:03 -05:00
Zack Cerza
08efeb7b9e Store the job_id as a str, not an int.
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-04 13:11:03 -05:00
Zack Cerza
f160ab6487 Move teuthology.report import; add large warning
Because of the monkey patching, if we get the import order wrong bad
things happen.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-04 12:08:33 -05:00
Zack Cerza
2270db724d Add (and use) try_push_job_info() for easy pushin'
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-04 11:07:33 -05:00
Zack Cerza
760fe6b1c9 Move new imports to inside main()
The monkey patch stuff was causing problems again.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-04 10:54:47 -05:00
Zack Cerza
e786e16220 Add test for test_all_runs
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-03 16:08:12 -05:00
Zack Cerza
93b6fa10a7 Clarify job vs. run
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-03 16:08:12 -05:00
Zack Cerza
f0604496e0 Create a FakeArchive class to forge test results
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-03 16:08:12 -05:00
Zack Cerza
ff120d7fb5 Escape reserved characters in URIs
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-03 16:08:12 -05:00
Zack Cerza
77b65c7f3c Report results synchronously.
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-03 16:08:12 -05:00
Zack Cerza
f0b35fca70 Add more documentation.
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-03 16:08:12 -05:00
Zack Cerza
058a27bf59 Add create_run() and push_job_info() with docs.
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-02 18:34:04 -05:00
Zack Cerza
fe64887ec6 s/submit_/report_/g
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-02 18:34:04 -05:00
Zack Cerza
555e55ff61 Rename ResultsPoster to ResultsReporter
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-02 18:34:04 -05:00
Zack Cerza
79e27abfe9 Add create_run; allow passing json to submit_job
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-02 18:34:04 -05:00
Zack Cerza
52282fb7f4 Overhaul posting logic to avoid some corner cases
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-02 18:34:04 -05:00
Zack Cerza
4bcae4b18b Add flag for refreshing already-pushed runs
Also tweak implementation of save_last_run

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2013-10-02 18:34:04 -05:00