Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 5071748311547904: Issue 1094 - Generate update manifests on the update server (Closed)

Created:
July 24, 2014, 2:10 p.m. by Felix Dahlke
Modified:
July 28, 2014, 7:08 a.m.
Visibility:
Public.

Description

Issue 1094 - Generate update manifests on the update server

Patch Set 1 : #

Total comments: 14

Patch Set 2 : Reduced duplication #

Total comments: 24

Patch Set 3 : Use flock #

Patch Set 4 : Addressed comments #

Patch Set 5 : Run as user sitescripts #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -3 lines) Patch
A modules/private-stub/files/adblockplussafari.pem View 1 chunk +17 lines, -0 lines 0 comments Download
A modules/updateserver/files/sitescripts View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M modules/updateserver/manifests/init.pp View 1 2 3 4 2 chunks +89 lines, -3 lines 1 comment Download
A modules/updateserver/templates/update_update_manifests.erb View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 16
Felix Dahlke
July 24, 2014, 2:17 p.m. (2014-07-24 14:17:53 UTC) #1
Felix Dahlke
July 24, 2014, 2:28 p.m. (2014-07-24 14:28:45 UTC) #2
mathias
http://codereview.adblockplus.org/5071748311547904/diff/5649050225344512/modules/updateserver/manifests/init.pp File modules/updateserver/manifests/init.pp (right): http://codereview.adblockplus.org/5071748311547904/diff/5649050225344512/modules/updateserver/manifests/init.pp#newcode29 modules/updateserver/manifests/init.pp:29: $update_manifest_dirs = ['/var/www/update/adblockplus', Now that /var/www/update is used over ...
July 25, 2014, 7:04 a.m. (2014-07-25 07:04:28 UTC) #3
Felix Dahlke
Uploaded a new patch set. http://codereview.adblockplus.org/5071748311547904/diff/5649050225344512/modules/updateserver/manifests/init.pp File modules/updateserver/manifests/init.pp (right): http://codereview.adblockplus.org/5071748311547904/diff/5649050225344512/modules/updateserver/manifests/init.pp#newcode29 modules/updateserver/manifests/init.pp:29: $update_manifest_dirs = ['/var/www/update/adblockplus', On ...
July 25, 2014, 7:17 a.m. (2014-07-25 07:17:45 UTC) #4
mathias
You've neither replied to my comment for the update_update_manifests.erb template nor updated the file. So, ...
July 25, 2014, 7:31 a.m. (2014-07-25 07:31:53 UTC) #5
Felix Dahlke
On 2014/07/25 07:31:53, matze wrote: > You've neither replied to my comment for the update_update_manifests.erb ...
July 25, 2014, 7:42 a.m. (2014-07-25 07:42:27 UTC) #6
Wladimir Palant
http://codereview.adblockplus.org/5071748311547904/diff/5657382461898752/modules/updateserver/files/sitescripts File modules/updateserver/files/sitescripts (right): http://codereview.adblockplus.org/5071748311547904/diff/5657382461898752/modules/updateserver/files/sitescripts#newcode2 modules/updateserver/files/sitescripts:2: hg_root=/var/lib/adblockplus We usually keep the repositories under /opt (see ...
July 25, 2014, 9:50 a.m. (2014-07-25 09:50:10 UTC) #7
Felix Dahlke
http://codereview.adblockplus.org/5071748311547904/diff/5649050225344512/modules/updateserver/templates/update_update_manifests.erb File modules/updateserver/templates/update_update_manifests.erb (right): http://codereview.adblockplus.org/5071748311547904/diff/5649050225344512/modules/updateserver/templates/update_update_manifests.erb#newcode3 modules/updateserver/templates/update_update_manifests.erb:3: run_file="/var/run/update_update_manifests" On 2014/07/25 07:04:28, matze wrote: > At http://mywiki.wooledge.org/BashFAQ/045 ...
July 25, 2014, 9:52 a.m. (2014-07-25 09:52:00 UTC) #8
Wladimir Palant
http://codereview.adblockplus.org/5071748311547904/diff/5649050225344512/modules/updateserver/manifests/init.pp File modules/updateserver/manifests/init.pp (right): http://codereview.adblockplus.org/5071748311547904/diff/5649050225344512/modules/updateserver/manifests/init.pp#newcode82 modules/updateserver/manifests/init.pp:82: path => '/usr/bin', On 2014/07/25 07:17:45, Felix H. Dahlke ...
July 25, 2014, 9:54 a.m. (2014-07-25 09:54:39 UTC) #9
Felix Dahlke
Uploaded a new patch set. http://codereview.adblockplus.org/5071748311547904/diff/5649050225344512/modules/updateserver/manifests/init.pp File modules/updateserver/manifests/init.pp (right): http://codereview.adblockplus.org/5071748311547904/diff/5649050225344512/modules/updateserver/manifests/init.pp#newcode82 modules/updateserver/manifests/init.pp:82: path => '/usr/bin', On ...
July 25, 2014, 10:31 a.m. (2014-07-25 10:31:15 UTC) #10
Wladimir Palant
http://codereview.adblockplus.org/5071748311547904/diff/5657382461898752/modules/updateserver/files/sitescripts File modules/updateserver/files/sitescripts (right): http://codereview.adblockplus.org/5071748311547904/diff/5657382461898752/modules/updateserver/files/sitescripts#newcode16 modules/updateserver/files/sitescripts:16: geckoUpdateManifestPath=%(web_root)s/adblockplus/update.rdf On 2014/07/25 10:31:15, Felix H. Dahlke wrote: > ...
July 25, 2014, 11:11 a.m. (2014-07-25 11:11:02 UTC) #11
mathias
On 2014/07/25 10:31:15, Felix H. Dahlke wrote: > http://codereview.adblockplus.org/5071748311547904/diff/5657382461898752/modules/updateserver/files/sitescripts#newcode2 > modules/updateserver/files/sitescripts:2: hg_root=/var/lib/adblockplus > On 2014/07/25 ...
July 25, 2014, 11:28 a.m. (2014-07-25 11:28:25 UTC) #12
Felix Dahlke
Uploaded a new patch set. Matze, please reply inline to comments instead of replying to ...
July 25, 2014, 2:17 p.m. (2014-07-25 14:17:56 UTC) #13
Felix Dahlke
http://codereview.adblockplus.org/5071748311547904/diff/5718998062727168/modules/updateserver/manifests/init.pp File modules/updateserver/manifests/init.pp (right): http://codereview.adblockplus.org/5071748311547904/diff/5718998062727168/modules/updateserver/manifests/init.pp#newcode31 modules/updateserver/manifests/init.pp:31: $sitescripts_var_dir = '/var/lib/sitescripts' This was /var/lib/adblockplus before. This is ...
July 25, 2014, 2:21 p.m. (2014-07-25 14:21:01 UTC) #14
Wladimir Palant
I'm not really happy with the flock solution - three lines or not, it's non-trivial ...
July 26, 2014, 7:34 p.m. (2014-07-26 19:34:52 UTC) #15
mathias
July 28, 2014, 1:36 a.m. (2014-07-28 01:36:14 UTC) #16
LGTM.

I understand that the flock(1) solution isn't perfect, especially because it
requires knowledge about this technique to understand what's going on (or, at
least, an explaining comment). Still, as long as we're not using similar locking
in multiple shell scripts, I believe it's better than introducing another
dependency.

Powered by Google App Engine
This is Rietveld