Closed Bug 1079984 Opened 5 years ago Closed 5 years ago

Getting errors when trying to classify jobs on b2g34_v2_1

Categories

(Tree Management :: Treeherder, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: RyanVM, Assigned: mdoglio)

References

Details

Attachments

(1 file)

Per IRC discussion.
Here is the traceback:

[2014-10-08 10:20:14,918] ERROR [treeherder.webapp.api.exceptions:26] Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/rest_framework/views.py", line 396, in dispatch
    response = handler(request, *args, **kwargs)
  File "/data/www/treeherder.mozilla.org/treeherder-service/treeherder/webapp/api/utils.py", line 239, in use_jobs_model
    return model_func(*args, jm=jm, **kwargs)
  File "/data/www/treeherder.mozilla.org/treeherder-service/treeherder/webapp/api/note.py", line 59, in create
    request.DATA.get('note', '')
  File "/data/www/treeherder.mozilla.org/treeherder-service/treeherder/model/derived/jobs.py", line 464, in insert_job_note
    if self.get_build_system_type() == 'buildbot':
  File "/data/www/treeherder.mozilla.org/treeherder-service/treeherder/model/derived/jobs.py", line 204, in get_build_system_type
    return build_systems[project]
KeyError: u'mozilla-b2g34_v2_1'
This branch is going live on Monday. Can we please bump the priority?
Priority: -- → P1
Attachment #8504070 - Flags: review?(cdawson)
Assignee: nobody → mdoglio
Status: NEW → ASSIGNED
I don't see this issue anymore. Given the traceback in #c1 I think the reason was a stale cache key
 set here https://github.com/mozilla/treeherder-service/blob/master/treeherder/model/derived/jobs.py#L203.
Attachment 8504070 [details] should prevent this issue from happening again
Commits pushed to master at https://github.com/mozilla/treeherder-service

https://github.com/mozilla/treeherder-service/commit/e1f445816cc47c8c2601f9f57f81a83aedffc0ba
Bug 1079984 - Delete build system cached list when project is not found

https://github.com/mozilla/treeherder-service/commit/59dba0e5c6a26e161cb59bc947d4c6e43d574bd3
Merge pull request #249 from mozilla/bug-1079984-clear-build-system-cache

Bug 1079984 - Delete build system cached list when project is not found
Attachment #8504070 - Flags: review?(cdawson) → review+
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.