Merge lp:~joetalbott/uci-engine/django-requirements-missing into lp:uci-engine

Proposed by Joe Talbott
Status: Rejected
Rejected by: Joe Talbott
Proposed branch: lp:~joetalbott/uci-engine/django-requirements-missing
Merge into: lp:uci-engine
Prerequisite: lp:~joetalbott/uci-engine/cli_config_option
Diff against target: 37 lines (+6/-3)
2 files modified
charms/precise/python-django/fabfile.py (+2/-1)
charms/precise/python-django/hooks/hooks.py (+4/-2)
To merge this branch: bzr merge lp:~joetalbott/uci-engine/django-requirements-missing
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Andy Doan (community) Approve
Evan (community) Approve
Review via email: mp+217934@code.launchpad.net

Commit message

python-django - Don't try to read non-existent requirements files.

Description of the change

python-django - Don't try to read non-existent requirements files.

To post a comment you must log in.
Revision history for this message
Evan (ev) wrote :

Straightforward enough. +1

review: Approve
Revision history for this message
Andy Doan (doanac) wrote :

Can you explain the bug you are seeing. Seems like this would have been
busted code forever?

Revision history for this message
Joe Talbott (joetalbott) wrote :

For me (on lxc) all django charms were failing on the install hook when trying to open the default requirements files. This might be a change in the default for juju-deployer (or whichever piece it is that handles the default value for requiremensts_pip_files in the yaml files.)

Revision history for this message
Andy Doan (doanac) wrote :

that's wild. i guess this can't hurt.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:453
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/569/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/569/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:453
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/575/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/575/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:453
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/578/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/uci-engine-ci/578/rebuild

review: Needs Fixing (continuous-integration)

Unmerged revisions

453. By Joe Talbott

python-django - Don't try to read requirements files that don't exist.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'charms/precise/python-django/fabfile.py'
--- charms/precise/python-django/fabfile.py 2014-01-29 20:13:31 +0000
+++ charms/precise/python-django/fabfile.py 2014-05-01 15:47:46 +0000
@@ -96,7 +96,8 @@
96 """96 """
97 with cd(env.project_dir):97 with cd(env.project_dir):
98 for req_file in env.conf['requirements_apt_files'].split(','):98 for req_file in env.conf['requirements_apt_files'].split(','):
99 sudo("apt-get install -y $(cat %s | tr '\\n' ' '" % req_file)99 if os.path.exists(req_file):
100 sudo("apt-get install -y $(cat %s | tr '\\n' ' '" % req_file)
100101
101# Python102# Python
102@task103@task
103104
=== modified file 'charms/precise/python-django/hooks/hooks.py'
--- charms/precise/python-django/hooks/hooks.py 2014-03-26 14:22:52 +0000
+++ charms/precise/python-django/hooks/hooks.py 2014-05-01 15:47:46 +0000
@@ -544,7 +544,8 @@
544544
545 if requirements_pip_files:545 if requirements_pip_files:
546 for req_file in requirements_pip_files.split(','):546 for req_file in requirements_pip_files.split(','):
547 pip_install_req(os.path.join(working_dir,req_file))547 if os.path.exists(req_file):
548 pip_install_req(os.path.join(working_dir,req_file))
548549
549 wsgi_py_path = os.path.join(working_dir, 'wsgi.py')550 wsgi_py_path = os.path.join(working_dir, 'wsgi.py')
550 if not os.path.exists(wsgi_py_path):551 if not os.path.exists(wsgi_py_path):
@@ -626,7 +627,8 @@
626627
627 if requirements_pip_files:628 if requirements_pip_files:
628 for req_file in requirements_pip_files.split(','):629 for req_file in requirements_pip_files.split(','):
629 pip_install_req(os.path.join(working_dir,req_file), upgrade=True)630 if os.path.exists(req_file):
631 pip_install_req(os.path.join(working_dir,req_file), upgrade=True)
630632
631633
632 # Trigger WSGI reloading634 # Trigger WSGI reloading

Subscribers

People subscribed via source and target branches