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

Issue 2982763002: Make mmutex actually acquire and release file locks (Closed)

Created:
3 years, 5 months ago by charliea (OOO until 10-5)
Modified:
3 years, 4 months ago
Reviewers:
iannucci
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, maruel+w_chromium.org, tandrii+luci-go_chromium.org
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

Make mmutex actually acquire and release file locks There's still some work to be done with customization and implementing the shared command, but this CL makes the exclusive command functional. BUG=416072 Review-Url: https://codereview.chromium.org/2982763002 Committed: https://github.com/luci/luci-go/commit/d3bd42031c01dff3209c39925428311e7a0249ff

Patch Set 1 #

Patch Set 2 : Use gofslock instead of rolling own fslock #

Patch Set 3 : Write tests for exclusive #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : Make the lock path Windows-friendly #

Patch Set 6 : Merge branch 'master' into wrapper2 #

Patch Set 7 : Use cross-platform touch command #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -60 lines) Patch
M mmutex/cmd/mmutex/exclusive.go View 1 2 3 2 chunks +35 lines, -9 lines 0 comments Download
A mmutex/cmd/mmutex/exclusive_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +84 lines, -0 lines 0 comments Download
M mmutex/cmd/mmutex/main.go View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
A mmutex/lib/blocker.go View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
M mmutex/lib/flock.go View 1 1 chunk +0 lines, -21 lines 0 comments Download
M mmutex/lib/flock_test.go View 1 1 chunk +0 lines, -28 lines 0 comments Download

Messages

Total messages: 55 (38 generated)
charliea (OOO until 10-5)
3 years, 5 months ago (2017-07-13 18:39:32 UTC) #5
charliea (OOO until 10-5)
PTAL
3 years, 5 months ago (2017-07-14 15:15:21 UTC) #11
iannucci
lgtm https://codereview.chromium.org/2982763002/diff/80001/mmutex/cmd/mmutex/exclusive.go File mmutex/cmd/mmutex/exclusive.go (right): https://codereview.chromium.org/2982763002/diff/80001/mmutex/cmd/mmutex/exclusive.go#newcode38 mmutex/cmd/mmutex/exclusive.go:38: return 0 we return 0 if the error ...
3 years, 5 months ago (2017-07-14 17:53:48 UTC) #13
charliea (OOO until 10-5)
https://codereview.chromium.org/2982763002/diff/80001/mmutex/cmd/mmutex/exclusive.go File mmutex/cmd/mmutex/exclusive.go (right): https://codereview.chromium.org/2982763002/diff/80001/mmutex/cmd/mmutex/exclusive.go#newcode38 mmutex/cmd/mmutex/exclusive.go:38: return 0 On 2017/07/14 17:53:47, iannucci wrote: > we ...
3 years, 5 months ago (2017-07-14 18:02:24 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2982763002/100001
3 years, 5 months ago (2017-07-14 18:04:49 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Win Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/375b1f4ac0d2e510)
3 years, 5 months ago (2017-07-14 18:18:40 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2982763002/120001
3 years, 5 months ago (2017-07-14 20:09:49 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Win Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/375b91bd67824310)
3 years, 5 months ago (2017-07-14 20:24:00 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2982763002/140001
3 years, 5 months ago (2017-07-25 20:56:37 UTC) #27
charliea (OOO until 10-5)
Welp, that was dumb. I literally got rid of the part of the test that ...
3 years, 5 months ago (2017-07-25 20:59:46 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2982763002/160001
3 years, 5 months ago (2017-07-25 21:18:45 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Win Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/37947592cb43f710)
3 years, 5 months ago (2017-07-25 21:32:16 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2982763002/180001
3 years, 4 months ago (2017-07-26 15:37:46 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2982763002/200001
3 years, 4 months ago (2017-07-26 19:28:40 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Win Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/3799310d0dbd3110)
3 years, 4 months ago (2017-07-26 19:42:27 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2982763002/260001
3 years, 4 months ago (2017-07-26 21:04:37 UTC) #52
commit-bot: I haz the power
3 years, 4 months ago (2017-07-26 21:12:15 UTC) #55
Message was sent while issue was closed.
Committed patchset #12 (id:260001) as
https://github.com/luci/luci-go/commit/d3bd42031c01dff3209c39925428311e7a0249ff

Powered by Google App Engine
This is Rietveld 408576698