Commit Graph

27 Commits

Author SHA1 Message Date
John Spray
d39dd8cb4c Log correct name of context during errors
(instead of GeneratorContextManager)

Signed-off-by: John Spray <john.spray@inktank.com>
2014-02-12 17:29:09 +00:00
Zack Cerza
427bf93c88 Fix PEP-8 linter complaints
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-01-28 09:54:54 -06:00
Zack Cerza
3bd490f307 Transition from sentry_events to sentry_event 2013-11-04 14:02:45 -06:00
Zack Cerza
aaa3cf9baa Fix logs URL on Sentry pages. 2013-09-18 10:30:26 -05:00
Zack Cerza
1228d8cb5a Add teuthology branch to sentry report tags 2013-09-11 15:45:45 -05:00
Zack Cerza
5b3ce84596 Add ctx.config to sentry info. 2013-09-11 15:31:31 -05:00
Zack Cerza
38a1a6dde5 Use sentry.get_ident() again 2013-09-11 14:00:58 -05:00
Zack Cerza
4e9c5378ba Don't fail if there's no job_id 2013-09-11 13:58:19 -05:00
Zack Cerza
f7537f9c34 Add logs URL to sentry reports 2013-09-11 13:44:28 -05:00
Zack Cerza
81709ed13d Avoid double slashes in sentry event URL 2013-08-26 18:12:20 -05:00
Zack Cerza
a1a261a886 Add tags! Task name and owner to start. 2013-08-26 17:38:23 -05:00
Zack Cerza
489c1660f2 Also leave a list of sentry events in the summary 2013-08-26 17:11:51 -05:00
Zack Cerza
4007173278 Add URL to Sentry event to traceback output. 2013-08-26 16:33:04 -05:00
Zack Cerza
6c486ab067 Tweak logging 2013-08-26 16:17:31 -05:00
Zack Cerza
7930f661a3 Update call to get_sentry_client() 2013-08-23 11:40:44 -05:00
Zack Cerza
0af6a8a6f2 Beginnings of support for Sentry. 2013-08-21 10:07:12 -05:00
Warren Usui
e3d9084cd9 Created tasktest to test sequential and parallel tasks.
Added sequential task and parallel task.
Changed _run_one_task to run_one_task (now called by new tasks too).

Fix #4969
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-07-15 19:08:23 -07:00
Tommi Virtanen
50c4b312a2 Handle interactive-on-error also when error is from contextmanager exit.
Closes: http://tracker.newdream.net/issues/1745
2011-11-30 17:07:26 -08:00
Tommi Virtanen
c651c88eac Properly handle case where first error is inside a context manager __exit__.
Closes: http://tracker.newdream.net/issues/1743
2011-11-21 16:00:49 -08:00
Josh Durgin
1cad309d65 Add failure_reason to summary for the first failure detected.
For now, this is the exception raised during a task, the error found
in the central log, or coredumps found. More specific errors
(i.e. s3-tests had 3 failures) can be added later as exceptions raised
by tasks.
2011-10-03 17:07:41 -07:00
Tommi Virtanen
4e2ec6fd8b Add interactive-on-error, to pause and explore on error.
Closes: http://tracker.newdream.net/issues/1291
2011-08-09 15:42:17 -07:00
Josh Durgin
30a8dac323 Set success at the beginning of a run.
This way internal tasks like locking can tell whether the run
succeeded, and unlock nodes if it did.
2011-08-03 14:03:13 -07:00
Tommi Virtanen
9353fcc931 Move summary inside context.
This will hopefully make run_tasks usable by tasks.
The ceph task can't use it yet, because it has its
yield inside the with nested statement.
2011-06-16 14:36:21 -07:00
Josh Durgin
9746e77498 Allow running of any function in a task. 2011-06-16 10:39:26 -07:00
Josh Durgin
9d60344700 Output a summary file when archiving a run.
For now, just record whether the test succeeded.
2011-06-15 15:52:36 -07:00
Tommi Virtanen
7f393379c1 Prettify exception handling.
Display exception type (e.g. "RuntimeError").

Don't re-display the traceback.
2011-06-03 14:49:05 -07:00
Tommi Virtanen
ce5f0e7121 Move interactive and cfuse into tasks. 2011-06-02 15:04:01 -07:00