Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(448)

Issue 158980043: Handle Ctrl+C more gracefully when uploading files. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by vadimsh
Modified:
10 years, 9 months ago
Reviewers:
M-A
CC:
swarming-eng_googlegroups.com, csharp+cc_chromium.org, vadimsh+cc_chromium.org
Base URL:
https://code.google.com/p/swarming.client@master
Visibility:
Public.

Description

Handle Ctrl+C more gracefully when uploading files. It still doesn't abort instantly (since there's no mechanism to interrupt ongoing network call). Better than noting. An alternative would be to 'detach' worker threads without waiting for them to finish, but it seems to be more dirty. Also add timing information to logger output. R=maruel@chromium.org BUG= Committed: https://code.google.com/p/swarming/source/detail?repo=client&r=f9e401bab51a7eb0e92ae70aab73c2bcab6d34d7

Patch Set 1 #

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -16 lines) Patch
M isolateserver.py View 1 2 11 chunks +38 lines, -10 lines 0 comments Download
M utils/threading_utils.py View 1 2 chunks +14 lines, -5 lines 0 comments Download
M utils/tools.py View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 5
vadimsh
ptal It now receives Ctrl+C, waits for all ongoing network calls to finish (usually 16 ...
10 years, 9 months ago (2014-10-15 13:41:25 UTC) #1
M-A
lgtm https://codereview.appspot.com/158980043/diff/20001/isolateserver.py File isolateserver.py (right): https://codereview.appspot.com/158980043/diff/20001/isolateserver.py#newcode398 isolateserver.py:398: def abort(self): Is Storage thread-safe? I forgot. https://codereview.appspot.com/158980043/diff/20001/isolateserver.py#newcode407 ...
10 years, 9 months ago (2014-10-15 14:03:53 UTC) #2
vadimsh
https://codereview.appspot.com/158980043/diff/20001/isolateserver.py File isolateserver.py (right): https://codereview.appspot.com/158980043/diff/20001/isolateserver.py#newcode398 isolateserver.py:398: def abort(self): On 2014/10/15 14:03:53, M-A wrote: > Is ...
10 years, 9 months ago (2014-10-15 14:14:54 UTC) #3
vadimsh
Committed patchset #3 (id:40001) manually as f9e401bab51a7eb0e92ae70aab73c2bcab6d34d7.
10 years, 9 months ago (2014-10-15 14:19:42 UTC) #4
vadimsh
10 years, 9 months ago (2014-10-15 14:22:19 UTC) #5
Message was sent while issue was closed.
Looks like trace_inputs_smoke_test.py is failing on Trusty (I have it now). Or
may be I forgot to enable something...

======================================================================
ERROR: test_trace (__main__.TraceInputsImport)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./trace_inputs_smoke_test.py", line 43, in hook
    return fn(self, *args, **kwargs)
  File "./trace_inputs_smoke_test.py", line 456, in test_trace
    results = self._execute_trace(self.get_child_command(True))
  File "/home/vadimsh/Desktop/swarming/client/trace_inputs.py", line 1483, in
parse_log
    context.on_line(pid, line)
  File "/home/vadimsh/Desktop/swarming/client/trace_inputs.py", line 1259, in
on_line
    self.get_or_set_proc(pid).on_line(line.strip())
  File "/home/vadimsh/Desktop/swarming/client/trace_inputs.py", line 1017, in
on_line
    return handler(match.group(2), match.group(3))
  File "/home/vadimsh/Desktop/swarming/client/trace_inputs.py", line 877, in
hook
    None, None, None)
TracingFailure: Failed to parse stat(0x941e60, {...}) = 0
pid: 13178
line: 33
stat(0x941e60, {...}) = 0
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b