Merge lp://staging/~ev/daisy/weighted-machines into lp://staging/daisy

Proposed by Evan
Status: Merged
Merged at revision: 274
Proposed branch: lp://staging/~ev/daisy/weighted-machines
Merge into: lp://staging/daisy
Diff against target: 88 lines (+59/-1)
2 files modified
daisy/utils.py (+7/-1)
tools/build_errors_by_release.py (+52/-0)
To merge this branch: bzr merge lp://staging/~ev/daisy/weighted-machines
Reviewer Review Type Date Requested Status
Daisy Pluckers Pending
Review via email: mp+153885@code.staging.launchpad.net

Description of the change

This adds support to daisy for the new update_errors_by_release method in oops-repository. It also provides a idempotent script for populating the existing data into the new FirstError and ErrorsByRelease column families. This is for bug 1077122.

The accompanying oops-repository merge is:
https://code.launchpad.net/~ev/oops-repository/weighted-machines/+merge/153887

To post a comment you must log in.
Revision history for this message
Brian Murray (brian-murray) wrote :

On Mon, Mar 18, 2013 at 05:47:22PM -0000, Evan Dandrea wrote:
> Evan Dandrea has proposed merging lp:~ev/daisy/weighted-machines into lp:daisy.
>
> Requested reviews:
> Daisy Pluckers (daisy-pluckers)
>
> For more details, see:
> https://code.launchpad.net/~ev/daisy/weighted-machines/+merge/153885
>
> This adds support to daisy for the new update_errors_by_release method in oops-repository. It also provides a idempotent script for populating the existing data into the new FirstError and ErrorsByRelease column families. This is for bug 1077122.
> --
> https://code.launchpad.net/~ev/daisy/weighted-machines/+merge/153885
> You are subscribed to branch lp:daisy.

> === modified file 'daisy/utils.py'
> --- daisy/utils.py 2013-03-09 01:19:57 +0000
> +++ daisy/utils.py 2013-03-18 17:46:20 +0000
> @@ -1,6 +1,7 @@
> from oopsrepository import oopses
> import apt
> import os
> +import uuid
>
> def get_fields_for_bucket_counters(problem_type, release, package, version):
> fields = []
> @@ -78,6 +79,11 @@
> if version:
> oopses.update_bucket_versions(oops_config, crash_signature, version)
>
> + if hasattr(oopses, 'update_errors_by_release'):
> + if (system_uuid and release) and not third_party:

Why are you excluding third_party here? If we are recording errors for
systems with third party packages shouldn't they factor into the
calculation too?

> + oops_uuid = uuid.UUID(oops_id)
> + oopses.update_errors_by_release(oops_uuid, system_uuid, release)
> +

In the build_errors_by_release tool you check to ensure that release
starts with Ubuntu. Is the same check missing above?

> def attach_error_report(report, context):
> # We only attach error report that was submitted by the client if we've hit
> # a MaximumRetryException from Cassandra.

The rest of the merge proposal looks good to me.

--
Brian Murray

Revision history for this message
Evan (ev) wrote :

On Mon, Mar 18, 2013 at 11:46 PM, Brian Murray <email address hidden> wrote:
>
> > + if hasattr(oopses, 'update_errors_by_release'):
> > + if (system_uuid and release) and not third_party:
>
> Why are you excluding third_party here? If we are recording errors for
> systems with third party packages shouldn't they factor into the
> calculation too?
>

Wow, great catch. My intent was to exclude non-Ubuntu releases, which I
mistook the third_party variable for. Fixed as r274.

> + oops_uuid = uuid.UUID(oops_id)
> > + oopses.update_errors_by_release(oops_uuid, system_uuid,
> release)
> > +
>
> In the build_errors_by_release tool you check to ensure that release
> starts with Ubuntu. Is the same check missing above?
>

Indeed it was. See above.

> > def attach_error_report(report, context):
> > # We only attach error report that was submitted by the client if
> we've hit
> > # a MaximumRetryException from Cassandra.
>
> The rest of the merge proposal looks good to me.
>

Excellent. Merging.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: