Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(763)

Issue 1096683003: Add flock and timeout to infra/libs. (Closed)

Created:
5 years, 8 months ago by ghost stip (do not use)
Modified:
5 years, 8 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/infra/infra.git@master
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Add flock and timeout to infra/libs. These currently fully work for linux only (flock works for osx as well). BUG=479059 Committed: https://chromium.googlesource.com/infra/infra/+/4be68e66fc5997711d58af8a8b77bdc6f35a16a3

Patch Set 1 #

Total comments: 7

Patch Set 2 : Rebase onto latest master. #

Patch Set 3 : Address comments. #

Patch Set 4 : Correct typos. #

Patch Set 5 : Improve tests and coverage. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -0 lines) Patch
A infra/libs/service_utils/daemon.py View 1 2 3 1 chunk +110 lines, -0 lines 0 comments Download
A infra/libs/service_utils/test/daemon_test.py View 1 2 3 4 1 chunk +161 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
ghost stip (do not use)
ptal
5 years, 8 months ago (2015-04-23 06:08:54 UTC) #2
tandrii(chromium)
lgtm I've written something very similar before, and had problems with it in 3 cases: ...
5 years, 8 months ago (2015-04-23 13:02:47 UTC) #4
agable
LGTM with some comments. https://codereview.chromium.org/1096683003/diff/1/infra/libs/service_utils/daemon.py File infra/libs/service_utils/daemon.py (right): https://codereview.chromium.org/1096683003/diff/1/infra/libs/service_utils/daemon.py#newcode36 infra/libs/service_utils/daemon.py:36: with daemon.flock('toaster') as acquired: On ...
5 years, 8 months ago (2015-04-27 18:48:33 UTC) #5
tandrii(chromium)
https://codereview.chromium.org/1096683003/diff/1/infra/libs/service_utils/daemon.py File infra/libs/service_utils/daemon.py (right): https://codereview.chromium.org/1096683003/diff/1/infra/libs/service_utils/daemon.py#newcode36 infra/libs/service_utils/daemon.py:36: with daemon.flock('toaster') as acquired: On 2015/04/27 18:48:33, agable wrote: ...
5 years, 8 months ago (2015-04-27 21:17:09 UTC) #6
ghost stip (do not use)
https://chromiumcodereview.appspot.com/1096683003/diff/1/infra/libs/service_utils/daemon.py File infra/libs/service_utils/daemon.py (right): https://chromiumcodereview.appspot.com/1096683003/diff/1/infra/libs/service_utils/daemon.py#newcode36 infra/libs/service_utils/daemon.py:36: with daemon.flock('toaster') as acquired: On 2015/04/27 21:17:09, tandrii(chromium) wrote: ...
5 years, 8 months ago (2015-04-27 22:03:47 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1096683003/60001
5 years, 8 months ago (2015-04-27 22:04:01 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: infra_tester on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/infra_tester/builds/1564)
5 years, 8 months ago (2015-04-27 22:10:24 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1096683003/80001
5 years, 8 months ago (2015-04-27 22:18:05 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-04-27 22:21:48 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/infra/infra/+/4be68e66fc5997711d58af8a8b77b...

Powered by Google App Engine
This is Rietveld 408576698