Getting 500 errors trying to save autoclassification on stage: ValueError

RESOLVED FIXED

Status

Tree Management
Treeherder
RESOLVED FIXED
a year ago
a year ago

People

(Reporter: camd, Assigned: jgraham)

Tracking

Details

Attachments

(2 attachments)

(Reporter)

Description

a year ago
Created attachment 8777914 [details]
stack trace from new relic

exceptions:ValueError
/treeherder.webapp.api.text_log_summary_line:TextLogSummaryLineViewSet.update_many

exceptions:ValueError: Cannot assign "u'cdawson@mozilla.com'": "BugJobMap.user" must be a "User" instance.

With this job:
https://treeherder.allizom.org/#/jobs?repo=mozilla-inbound&selectedJob=30483291&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-classifiedState=unclassified

New Relic:
https://rpm.newrelic.com/accounts/677903/applications/5585473/filterable_errors#/show/6a233b54-5a6e-11e6-9e2c-c81f66b8ceca_10702_16340/stack_trace?top_facet=transactionUiName&primary_facet=error.class&barchart=barchart&filters=%5B%7B%22key%22%3A%22error.class%22%2C%22value%22%3A%22exceptions%3AValueError%22%2C%22like%22%3Afalse%7D%5D&_k=y3egt3

Fwiw: I get no indication in the UI that anything has gone wrong.  But when I revisit the job, then the lines say verified, in the Autoclassificatio panel, but no classification has been created.
(Reporter)

Updated

a year ago
Flags: needinfo?(james)
(Reporter)

Comment 1

a year ago
James-- Can you take a look at this when you get a chance?  Thanks!

I'm going to hold of pushing to prod till we get this resolved.
Created attachment 8777961 [details] [review]
[treeherder] mozilla:verification_user > mozilla:master
(Assignee)

Updated

a year ago
Flags: needinfo?(james)
Attachment #8777961 - Flags: review?(cdawson)
(Reporter)

Comment 3

a year ago
Comment on attachment 8777961 [details] [review]
[treeherder] mozilla:verification_user > mozilla:master

James--  Looks good to me with one change of making AUTOCLASSIFY_JOBS default to true in config/settings.py, as Ed suggested.

thanks!  :)
Attachment #8777961 - Flags: review?(cdawson) → review+

Comment 4

a year ago
Commit pushed to master at https://github.com/mozilla/treeherder

https://github.com/mozilla/treeherder/commit/223e5bcb33c0f59f9c7d7747d8ba09ef47212765
Bug 1292270 - Pass a User object down to JobManager.update_after_verification. (#1760)



* Bug 1292270 - Pass a User object down to JobManager.update_after_verification.

This is required to create the BugJobMap instance in the post-datasource world.
(Reporter)

Comment 5

a year ago
Works on stage now.  Thanks James!!  :)
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → FIXED
Assignee: nobody → james
You need to log in before you can comment on or make changes to this bug.