Merge lp:~mwhudson/launchpad/log-noop-puller-runs into lp:launchpad
Proposed by
Michael Hudson-Doyle
Status: | Merged |
---|---|
Approved by: | Michael Hudson-Doyle |
Approved revision: | not available |
Merged at revision: | not available |
Proposed branch: | lp:~mwhudson/launchpad/log-noop-puller-runs |
Merge into: | lp:launchpad |
Diff against target: |
185 lines (+36/-26) 4 files modified
lib/lp/codehosting/puller/scheduler.py (+11/-7) lib/lp/codehosting/puller/tests/test_scheduler.py (+11/-10) lib/lp/codehosting/puller/tests/test_worker.py (+3/-3) lib/lp/codehosting/puller/worker.py (+11/-6) |
To merge this branch: | bzr merge lp:~mwhudson/launchpad/log-noop-puller-runs |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Lange (community) | Approve | ||
Review via email: mp+16460@code.launchpad.net |
Commit message
Log when the puller runs but does not transfer any revisions
To post a comment you must log in.
Hi there,
It is a fact that roughly half of the runs of the branch puller are from import branches. It is a fairly confident supposition of mine that most of these pulls do not actually move any revisions around and that we should stop the import system requesting mirrors when no revisions were imported. However, as Aaron pointed out this morning, it's pretty easy to log whether a run of the puller transferred any revisions so we can upgrade this supposition to a fact and that's what this branch does.
The net effect of the changes are that the "successfully mirrored" lines in the log now look like this:
2009-12-22 00:34:07 INFO Successfully mirrored HOSTED branch 77 lp-hosted: ///~mark/ gnome-terminal/ trunk to lp-mirrored: ///~mark/ gnome-terminal/ trunk to from rev null: to <email address hidden> (non-trivial)
Or this:
2009-12-22 00:34:28 INFO Successfully mirrored HOSTED branch 77 lp-hosted: ///~mark/ gnome-terminal/ trunk to lp-mirrored: ///~mark/ gnome-terminal/ trunk to from rev <email address hidden> to <email address hidden> (noop)
I think this will allow simple but sufficient grep based analysis of the puller log files.
Cheers,
mwh