Closed Bug 902272 Opened 9 years ago Closed 9 years ago

Add the ability to retrieve a single job's metadata & failure excerpt in a consumable format

Categories

(Tree Management Graveyard :: TBPL, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file)

The intermittent bug filer (bug 779529) will provide a job ID, and in return want something like:

{
    "_id": "26222910",
    "buildername": "Rev5 MacOSX Mountain Lion 10.8 mozilla-central debug test mochitest-5",
    "slave": "talos-mtnlion-r5-051",
    "revision": "1e381c91885d",
    "result": "testfailed",
    "branch": "mozilla-central",
    "log": "http:\/\/ftp.mozilla.org\/pub\/mozilla.org\/firefox\/tinderbox-builds\/mozilla-central-macosx64-debug\/1375811013\/mozilla-central_mountainlion-debug_test-mochitest-5-bm80-tests1-macosx-build181.txt.gz",
    "starttime": "1375806849",
    "endtime": "1375808391",
    "excerpt": {
        "1" : "TEST-UNEXPECTED-FAIL | Shutdown | Exited with code -20 during test run",
        "2" : "TEST-UNEXPECTED-FAIL | Foo | bar"
    },
    "briefLog": "16:51:16     INFO -  177454 INFO Slowest: 40768ms - /tests/layout/style/test/test_transitions_per_property.html\n16:51:16     INFO -  177455 INFO SimpleTest FINISHED\n16:51:16     INFO -  177456 INFO TEST-INFO | Ran 1 Loops\n16:51:16     INFO -  177457 INFO SimpleTest FINISHED\n16:51:16     INFO -  NOTE: child process received `Goodbye', closing down"
}
Example from WIP:
http://pastebin.mozilla.org/2805174
Will handle the brief log in a later bug, so we can land this asap to help with testing of bug 779529.
Summary: Add the ability to retrieve a single job's metadata, failure excerpt & brief log in a consumable format → Add the ability to retrieve a single job's metadata & failure excerpt in a consumable format
Attached patch Patch v1Splinter Review
Attachment #787238 - Flags: review?(kwierso)
Comment on attachment 787238 [details] [diff] [review]
Patch v1

Review of attachment 787238 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me.
Attachment #787238 - Flags: review?(kwierso) → review+
Tweaked returned headers:
https://hg.mozilla.org/webtools/tbpl/rev/a450877aae00

Wes, is this working for you? Can I push to prod? :-)
(In reply to Ed Morley [:edmorley UTC+1] from comment #6)
> Wes, is this working for you? Can I push to prod? :-)
Flags: needinfo?(kwierso)
Depends on: 906325
In production :-)
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: needinfo?(kwierso)
Resolution: --- → FIXED
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.