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

Issue 12650044: Integrate the built-in server into the charm.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by teknico
Modified:
10 years, 9 months ago
Reviewers:
mp+179138, frankban, matthew.scott
Visibility:
Public.

Description

Integrate the built-in server into the charm. Add a "builtin-server" option to config.yaml, defaulting to false, to enable a new Tornado-based built-in web server, in place of haproxy and Apache (still the default). Add a "guiserver.conf" Upstart config file, generated via a template. Add a BuiltinServerMixin to hooks/backend.py . Add tests for the new functions in hooks/utils.py . Clean up all paths and constants in hooks/utils.py . Miscellaneuos cleanup. QA1 (quick): $ make unittest QA2 (long, 40 minutes): $ make ftest QA3 (long but shorter than the former): $ juju bootstrap $ make deploy (check web access) $ juju set juju-gui builtin-server=true (check web access) $ juju set juju-gui builtin-server=false (check web access) $ juju destroy-environment https://code.launchpad.net/~teknico/charms/precise/juju-gui/integrate-builtin-server-2/+merge/179138 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 7

Patch Set 2 : Integrate the built-in server into the charm. #

Patch Set 3 : Integrate the built-in server into the charm. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -89 lines) Patch
M Makefile View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Operation.md View 2 chunks +13 lines, -2 lines 0 comments Download
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M config.yaml View 1 chunk +7 lines, -0 lines 0 comments Download
M config/apache-site.template View 1 2 1 chunk +1 line, -1 line 0 comments Download
A config/guiserver.conf.template View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A deps/tornado-3.1.tar.gz View 0 chunks +-1 lines, --1 lines 0 comments Download
M hooks/backend.py View 1 2 chunks +28 lines, -1 line 0 comments Download
M hooks/utils.py View 1 2 12 chunks +90 lines, -32 lines 0 comments Download
M revision View 1 1 chunk +1 line, -1 line 0 comments Download
M server/guiserver/apps.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M server/guiserver/manage.py View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M server/guiserver/tests/test_apps.py View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M server/runserver.py View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M server/setup.py View 1 chunk +1 line, -1 line 0 comments Download
M tests/20-functional.test View 1 4 chunks +17 lines, -3 lines 0 comments Download
M tests/test_backends.py View 9 chunks +23 lines, -15 lines 0 comments Download
M tests/test_utils.py View 1 2 7 chunks +63 lines, -25 lines 0 comments Download

Messages

Total messages: 9
teknico
Please take a look.
10 years, 9 months ago (2013-08-08 09:48:01 UTC) #1
frankban
This branch is nice Nicola, we are almost there, thank you. Please fix the problem ...
10 years, 9 months ago (2013-08-08 11:12:58 UTC) #2
teknico
frankban wrote: > https://codereview.appspot.com/12650044/diff/1/hooks/utils.py#newcode110 > hooks/utils.py:110: SERVER_DIR = os.path.join(CURRENT_DIR, 'server') > I also liked the ...
10 years, 9 months ago (2013-08-08 11:29:40 UTC) #3
teknico
Please take a look.
10 years, 9 months ago (2013-08-08 15:41:23 UTC) #4
matthew.scott
Code looks good with Francesco's comments, QAing now. https://codereview.appspot.com/12650044/diff/1/hooks/utils.py File hooks/utils.py (right): https://codereview.appspot.com/12650044/diff/1/hooks/utils.py#newcode549 hooks/utils.py:549: api_url ...
10 years, 9 months ago (2013-08-08 16:28:23 UTC) #5
matthew.scott
QA3 worked for me, LGTM
10 years, 9 months ago (2013-08-08 17:08:02 UTC) #6
frankban
LGTM with the changes below. I run the functional tests, they were passing, the last ...
10 years, 9 months ago (2013-08-09 09:00:16 UTC) #7
teknico
frankban wrote: > I run the functional tests, they were passing, the last one was ...
10 years, 9 months ago (2013-08-09 11:15:26 UTC) #8
teknico
10 years, 9 months ago (2013-08-09 14:08:14 UTC) #9
*** Submitted:

Integrate the built-in server into the charm.

Add a "builtin-server" option to config.yaml, defaulting to false, to enable
a new Tornado-based built-in web server, in place of haproxy and Apache (still
the default).

Add a "guiserver.conf" Upstart config file, generated via a template.

Add a BuiltinServerMixin to hooks/backend.py .

Add tests for the new functions in hooks/utils.py .

Clean up all paths and constants in hooks/utils.py .

Miscellaneuos cleanup.

QA1 (quick):

$ make unittest

QA2 (long, 40 minutes):

$ make ftest

QA3 (long but shorter than the former):

$ juju bootstrap
$ make deploy
  (check web access)
$ juju set juju-gui builtin-server=true
  (check web access)
$ juju set juju-gui builtin-server=false
  (check web access)
$ juju destroy-environment

R=frankban, matthew.scott
CC=
https://codereview.appspot.com/12650044
Sign in to reply to this message.

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