Merge lp:~raharper/curtin/trunk.curtin-announce into lp:~curtin-dev/curtin/trunk
Status: | Merged |
---|---|
Approved by: | Scott Moser |
Approved revision: | 434 |
Merged at revision: | 448 |
Proposed branch: | lp:~raharper/curtin/trunk.curtin-announce |
Merge into: | lp:~curtin-dev/curtin/trunk |
Diff against target: |
280 lines (+179/-1) 8 files modified
curtin/__init__.py (+2/-0) curtin/commands/main.py (+6/-1) curtin/pack.py (+1/-0) curtin/version.py (+52/-0) debian/rules (+6/-0) tests/unittests/test_version.py (+87/-0) tests/vmtests/__init__.py (+18/-0) tests/vmtests/test_basic.py (+7/-0) |
To merge this branch: | bzr merge lp:~raharper/curtin/trunk.curtin-announce |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
curtin developers | Pending | ||
Review via email: mp+306358@code.launchpad.net |
Commit message
curtin: add version module and display in output and logs
It's difficult to determine what curtin version is running
from the collected logs in a maas deployment which uses
curtin by sending it to the target system. Resolve this by
having curtin announce itself.
- Introduce a new version module which does the following:
- search for a .version file in the curtin PYTHONPATH
if present and use that file contents for version
- if no .version file is found, test if we're in-tree
and use the existing curtin.__version__ value plus the
bzr revno
- if neither are found, just use the curtin.__version__ value
- Modify curtin.command.main to print the version string in argparse
output
- Update curtin logging setup to emit a version string as soon as logging
is configured
Description of the change
curtin: add version module and display in output and logs
It's difficult to determine what curtin version is running
from the collected logs in a maas deployment which uses
curtin by sending it to the target system. Resolve this by
having curtin announce itself.
- Introduce a new version module which does the following:
- search for a .version file in the curtin PYTHONPATH
if present and use that file contents for version
- if no .version file is found, test if we're in-tree
and use the existing curtin.__version__ value plus the
bzr revno
- if neither are found, just use the curtin.__version__ value
- Modify curtin.command.main to print the version string in argparse
output
- Update curtin logging setup to emit a version string as soon as logging
is configured
PASSED: Continuous integration, rev:427 /jenkins. ubuntu. com/server/ job/curtin- ci/266/ /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= amd64/266 /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= ppc64el/ 266 /jenkins. ubuntu. com/server/ job/curtin- ci/nodes= s390x/266
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/curtin- ci/266/ rebuild
https:/