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

Issue 4924880143253504: Issue 2471 - Update our Discourse instance (Closed)

Created:
May 8, 2015, 7:38 p.m. by Wladimir Palant
Modified:
June 24, 2015, 2:02 p.m.
Reviewers:
mathias, Felix Dahlke
CC:
Fred
Visibility:
Public.

Description

This configuration finally seems to be working but I am still testing it.

Patch Set 1 #

Patch Set 2 : Fixed requirements and minor improvements #

Total comments: 10

Patch Set 3 : Addressed comments #

Patch Set 4 : Check out correct revision #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -68 lines) Patch
M modules/base/manifests/init.pp View 2 chunks +7 lines, -5 lines 0 comments Download
M modules/discourse/files/init-discourse View 1 chunk +0 lines, -24 lines 0 comments Download
M modules/discourse/manifests/init.pp View 1 2 3 5 chunks +111 lines, -35 lines 3 comments Download
M modules/discourse/templates/discourse.conf.erb View 1 chunk +2 lines, -2 lines 0 comments Download
M modules/private-stub/manifests/discourse.pp View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 14
Wladimir Palant
May 8, 2015, 7:38 p.m. (2015-05-08 19:38:43 UTC) #1
Felix Dahlke
Did a high level review of this, LGTM.
May 8, 2015, 8:16 p.m. (2015-05-08 20:16:43 UTC) #2
Wladimir Palant
Updated patchset, now with more dependencies that turned up in testing - I didn't realize ...
May 8, 2015, 10:05 p.m. (2015-05-08 22:05:15 UTC) #3
Felix Dahlke
That's a lot of dependencies :D LGTM
May 8, 2015, 10:08 p.m. (2015-05-08 22:08:17 UTC) #4
mathias
http://codereview.adblockplus.org/4924880143253504/diff/5639274879778816/modules/discourse/manifests/init.pp File modules/discourse/manifests/init.pp (right): http://codereview.adblockplus.org/4924880143253504/diff/5639274879778816/modules/discourse/manifests/init.pp#newcode44 modules/discourse/manifests/init.pp:44: path => '/bin:/usr/bin:/usr/sbin:/usr/local/bin:/home/discourse/.rvm/bin', Do you know why the directory ...
May 9, 2015, 3:34 p.m. (2015-05-09 15:34:19 UTC) #5
Wladimir Palant
Outstanding issue: client-side error `template not defined` affecting test VMs, Matze wants to look into ...
May 11, 2015, 3 p.m. (2015-05-11 15:00:05 UTC) #6
Wladimir Palant
http://codereview.adblockplus.org/4924880143253504/diff/5639274879778816/modules/discourse/manifests/init.pp File modules/discourse/manifests/init.pp (right): http://codereview.adblockplus.org/4924880143253504/diff/5639274879778816/modules/discourse/manifests/init.pp#newcode44 modules/discourse/manifests/init.pp:44: path => '/bin:/usr/bin:/usr/sbin:/usr/local/bin:/home/discourse/.rvm/bin', On 2015/05/09 15:34:19, matze wrote: > ...
May 11, 2015, 3 p.m. (2015-05-11 15:00:42 UTC) #7
Wladimir Palant
Turns out that the test VM was checking out the wrong branch, hence the blank ...
May 12, 2015, 10:15 a.m. (2015-05-12 10:15:38 UTC) #8
Wladimir Palant
Turns out that the test VM was checking out the wrong branch, hence the blank ...
May 12, 2015, 10:16 a.m. (2015-05-12 10:16:59 UTC) #9
mathias
LGTM. On 2015/05/11 15:00:42, Wladimir Palant wrote: > http://codereview.adblockplus.org/4924880143253504/diff/5639274879778816/modules/discourse/manifests/init.pp#newcode57 > Yes, I had RVM and ...
May 18, 2015, 11:14 a.m. (2015-05-18 11:14:39 UTC) #10
Felix Dahlke
LGTM, the new patch set.
May 26, 2015, 9:13 a.m. (2015-05-26 09:13:44 UTC) #11
mathias
http://codereview.adblockplus.org/4924880143253504/diff/5673385510043648/modules/discourse/manifests/init.pp File modules/discourse/manifests/init.pp (right): http://codereview.adblockplus.org/4924880143253504/diff/5673385510043648/modules/discourse/manifests/init.pp#newcode73 modules/discourse/manifests/init.pp:73: unless => "rvm list | grep $ruby_version", Please use ...
May 26, 2015, 10:02 a.m. (2015-05-26 10:02:16 UTC) #12
Wladimir Palant
http://codereview.adblockplus.org/4924880143253504/diff/5673385510043648/modules/discourse/manifests/init.pp File modules/discourse/manifests/init.pp (right): http://codereview.adblockplus.org/4924880143253504/diff/5673385510043648/modules/discourse/manifests/init.pp#newcode73 modules/discourse/manifests/init.pp:73: unless => "rvm list | grep $ruby_version", On 2015/05/26 ...
May 26, 2015, 10:41 a.m. (2015-05-26 10:41:17 UTC) #13
mathias
May 26, 2015, 10:54 a.m. (2015-05-26 10:54:36 UTC) #14
http://codereview.adblockplus.org/4924880143253504/diff/5673385510043648/modu...
File modules/discourse/manifests/init.pp (right):

http://codereview.adblockplus.org/4924880143253504/diff/5673385510043648/modu...
modules/discourse/manifests/init.pp:73: unless => "rvm list | grep
$ruby_version",
On 2015/05/26 10:41:17, Wladimir Palant wrote:
> On 2015/05/26 10:02:16, matze wrote:
> > Please use shellquote() to ensure $ruby_version cannot break anything here
--
> 
> Given that $ruby_version is a constant set above, do you consider that
> necessary? Also, if we do it for $ruby_version then we should do it for
> $hg_revision as well.

Indeed, it should be done there as well.

And yes I believe it's necessary. One should always assume the next programmer
to be less careful and wise than oneself (even if it will be oneself most
likely). And such a guy may forget to check for the use of $ruby_version when
migrating it to become a parameter one day (for example, but not even unlikely),
which can also easily be overseen in a code-review.

However, please note that we agreed last year on making use of shell_escape()
wherever it may make sense - just to have an easy but secure guideline that does
not require the same decision ("is it necessary?") over and over again..

Powered by Google App Engine
This is Rietveld