Merge lp:~abentley/launchpad/twisted-environ into lp:launchpad
Proposed by
Aaron Bentley
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~abentley/launchpad/twisted-environ |
Merge into: | lp:launchpad |
Diff against target: |
21 lines (+6/-4) 1 file modified
lib/lp/services/job/runner.py (+6/-4) |
To merge this branch: | bzr merge lp:~abentley/launchpad/twisted-environ |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | code | Approve | |
Review via email: mp+18626@code.launchpad.net |
To post a comment you must log in.
= Summary =
Fix environment variable handling in twisted job runner.
== Proposed fix ==
The twisted job runner must run a subprocess, and preserve PATH, PYTHONPATH,
and LPCONFIG. But LPCONFIG is an optional environment variable, so it should
be provided to the subprocess only when provided to the main process.
== Pre-implementation notes ==
None
== Implementation details ==
None
== Tests ==
None. This fix only applies to interactive use, and not the test environment.
In the test environment, LPCONFIG is always specified.
== Demo and Q/A == update_ preview_ diff --twisted
cronscripts/
If this doesn't give a KeyError, it worked.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: services/ job/runner. py
lib/lp/
== Pylint notices ==
lib/lp/ services/ job/runner. py
35: [F0401] Unable to import 'lazr.delegates' (No module named delegates)