Merge lp:~robru/cupstream2distro/more-verbose-publishing into lp:cupstream2distro

Proposed by Robert Bruce Park
Status: Merged
Approved by: Robert Bruce Park
Approved revision: 864
Merged at revision: 864
Proposed branch: lp:~robru/cupstream2distro/more-verbose-publishing
Merge into: lp:cupstream2distro
Diff against target: 57 lines (+9/-2)
1 file modified
citrain/publisher.py (+9/-2)
To merge this branch: bzr merge lp:~robru/cupstream2distro/more-verbose-publishing
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Robert Bruce Park (community) Approve
Review via email: mp+248302@code.launchpad.net

Commit message

Increase logging for publisher job.

To post a comment you must log in.
Revision history for this message
Robert Bruce Park (robru) wrote :

No semantic changes, only adds logging statements, tests pass locally.

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

PASSED: Continuous integration, rev:864
http://jenkins.qa.ubuntu.com/job/cu2d-choo-choo-ci/410/
Executed test runs:

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/cu2d-choo-choo-ci/410/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'citrain/publisher.py'
2--- citrain/publisher.py 2014-12-23 05:35:39 +0000
3+++ citrain/publisher.py 2015-02-02 19:36:34 +0000
4@@ -128,7 +128,7 @@
5 def write(self):
6 filename = self.FILENAME_FORMAT.format(self.silo, env.SERIES)
7 filepath = os_path_join_safe(SILO_DIR(), filename)
8- logging.info('Writing packagelist for rsync')
9+ logging.info('Writing packagelist for rsync.')
10 log_value_of.filepath()
11 logging.debug('\n' + ''.join(self.lines))
12 with open(filepath, 'w') as f:
13@@ -138,6 +138,8 @@
14 def get_distro_and_series(series_link):
15 """Parse the distro and series name from a series link."""
16 env.DISTRO, env.SERIES = series_link.split('/')[-2:]
17+ logging.info('Found distro {} and series {} in link {}.'.format(
18+ env.DISTRO, env.SERIES, series_link))
19
20
21 def prevent_duplicate_publishing(is_publishing):
22@@ -153,6 +155,7 @@
23 msg = 'Version of {} at dest changed from {} to {} since packages built.'
24 get_dest_version = packagemanager.get_current_version_for_series
25 if env.IGNORE_VERSIONDESTINATION != 'true':
26+ logging.info('Checking versions at destination are what we expect...')
27 if lp.is_distro_archive(dest):
28 for source in source_names:
29 version = get_dest_version(source, env.SERIES, dest=dest)
30@@ -166,6 +169,7 @@
31 def check_for_unapproved(mps, lp_load):
32 """Potentially raise an error if we have some unapproved merges."""
33 if env.ALLOW_UNAPPROVED != 'true':
34+ logging.info('Checking that all merges are approved...')
35 unapproved = []
36 for source in mps:
37 for mp_link in mps[source]:
38@@ -202,7 +206,7 @@
39 logging.error('Packaging changes found: {}'.format(basename))
40 if diffs:
41 generate_xml_artifacts(diffs)
42- raise PublishError('Packaging changes need manual ACKing')
43+ raise PublishError('Packaging changes need manual ACKing.')
44 else:
45 logging.warning('Honoring your request to ACK packaging changes.')
46
47@@ -251,7 +255,10 @@
48
49 def copy_to_dest(sources, dest, target_pocket='Release'):
50 """Binary-copy a package to the given dest archive."""
51+ logging.info('Copying sources directly to destination...')
52 for source in sources:
53+ logging.info('Copying {} {} to {}.'.format(
54+ source.source_package_name, source.source_package_version, dest))
55 series = source.distro_series_link.split('/')[-1]
56 dest.copyPackage(
57 from_archive=source.archive_link,

Subscribers

People subscribed via source and target branches