Open Bug 1669548 Opened 4 years ago Updated 4 years ago

Add an API to get task IDs, durations, results, and classifications from a given push

Categories

(Tree Management :: Treeherder: API, enhancement, P1)

enhancement

Tracking

(Not tracked)

People

(Reporter: marco, Unassigned)

Details

Attachments

(1 file)

n-i'ing myself to remind me to take a look at this soon.

Flags: needinfo?(cdawson)

I've created a PR to add this API. It looks like:

GET /api/project/try/note/push_notes/?revision=9dd0069768515991767c2be278bf4142c8463a30

[
{
"id": 2302245,
"job": {
"task_id": "E5Cpd7V4TiGzXz59OiQ8lQ",
"job_type_name": "test-linux1804-64-qr/debug-web-platform-tests-reftest-fis-e10s-2",
"result": "testfailed",
"duration": 17
},
"failure_classification_name": "intermittent",
"created": "2020-10-08T15:19:38.879261",
"who": "cdawson@mozilla.com",
"text": "camtest 1"
},
{
"id": 2302246,
"job": {
"task_id": "NRKG0BXLSaesroAhFr2zfw",
"job_type_name": "test-macosx1014-64/debug-web-platform-tests-reftest-e10s-3",
"result": "testfailed",
"duration": 21
},
"failure_classification_name": "intermittent",
"created": "2020-10-08T15:19:55.460807",
"who": "cdawson@mozilla.com",
"text": "camtest 2"
}
]

Assignee: nobody → cdawson
Flags: needinfo?(cdawson)
Priority: -- → P1

This API appears to only return jobs that have a classification, which will cause us to miss things. We could combine this API alongside the taskcluster data source and then re-write the contracts so that we get result and duration there.

I think that would make this Treeherder API be a bit cleaner anyway (i.e, if it could drop the result and duration keys. Then it is only dealing with classifications.

Removing myself so another can take this. With the sprint cadence, I won't necessarily be the one to work on this.

Assignee: cdawson → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: