Merge lp:~jtv/launchpad/bug-532354 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jeroen T. Vermeulen | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~jtv/launchpad/bug-532354 | ||||
Merge into: | lp:launchpad | ||||
Prerequisite: | lp:~jtv/launchpad/bug-527170 | ||||
Diff against target: |
508 lines (+266/-33) 5 files modified
configs/development/launchpad-lazr.conf (+1/-0) lib/canonical/testing/layers.py (+1/-1) utilities/make-lp-user (+116/-11) utilities/soyuz-sampledata-setup.py (+127/-21) utilities/start-dev-soyuz.sh (+21/-0) |
||||
To merge this branch: | bzr merge lp:~jtv/launchpad/bug-532354 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Abel Deuring (community) | code | Approve | |
Review via email: mp+20749@code.launchpad.net |
Commit message
Register ssh key for ppa-user; enable translation templates generation on dev systems.
Description of the change
= Bug 532354 =
To automate the setup for Soyuz and the build farm on local development systems, I wrote a script that creates a user, optionally uploads your real GPG key(s) for it, signs the Ubuntu code of conduct, etc.
One thing this script failed to do, however, was upload your ssh key(s). But utilities/
I also made some small improvements in options handling:
* Don't read all the zcml unless and until you've parsed your options and know it's not just a "--help" invocation!
* The dry-run option is gone. Can't really work now that one script invokes another.
The GPG-handling code is essentially unchanged, just moved. One small difference is that run_native_gpg figures out for itself that the command you want to run is gpg; you only pass the arguments to gpg.
Another seemingly unrelated change, but also needed for convenient buildfarm testing as far as my team is concerned, is that generation of translation templates from branches is enabled on development systems. (It's already enabled in test runs, but still disabled by default until we get the whole feature working).
Once this is all done, I'll be updating the UsingSoyuzLocally page on the dev wiki, removing tons of stuff that no longer needs to be done manually. I'll have to go over the new TryOutBuildSlave page as well.
No lint. To test (insofar as the utility scripts are ever tested),
{{{
./bin/test -vv -t sampledata-
}}}
To Q/A, follow the updated instructions on UsingSoyuzLocally.
Jeroen
(15:28:59) adeuring: jtv: parse_fingerpri nts() expects untranslated gpg output: the string "Key fingerprint". Is gpg invoked without the user's language settings? (I get "Schl.- Fingerabdruck" instead when I invoke gpg --fingerprint from a shell)
(15:29:56) jtv: adeuring: gah, good point. I of all people should know better. I'll set LC_ALL to C, since I'm manipulating the environment anyway.
(15:30:12) adeuring: jtv: thanks!
(15:30:21) jtv: Thanks for pointing that out.
(15:31:49) jtv: Fixed.