changing resultsdb directive code to create and complete resultsdb job during the reporting process. Fixes T132
ClosedPublic

Authored by tflink on Apr 24 2014, 5:07 PM.

Details

Summary

adds functionality to resultsdb directive so that the job is created during reporting.

Test Plan

new unit tests created, tested locally with dev instance of resultsdb

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
tflink updated this revision.Apr 24 2014, 6:49 PM
  • updating docstrings to reflect actual TAP output
  • fixing docstrings to be valid and complete
tflink updated this revision.Apr 24 2014, 6:49 PM
  • fixing docstrings to be valid and complete
mkrizek added inline comments.Apr 25 2014, 2:21 PM
libtaskotron/directives/resultsdb_directive.py
103

Why this print?

113

Shouldn't this check be before creating the job? If testcase doesn't exist, create_job will fail and this check wouldn't be run at all, or am missing something?

tflink updated this revision.Apr 25 2014, 2:28 PM
  • removing stray print that shouldn't be in review
tflink added inline comments.Apr 25 2014, 3:13 PM
libtaskotron/directives/resultsdb_directive.py
103

Good question, it probably shouldn't be there

113

testcase isn't used until the results are reported and thus, doesn't need to exist before the job is created.

kparal accepted this revision.Apr 25 2014, 3:16 PM

I don't have anything but a few nitpicks. I'm not really able to verify that it's semantically correct, @jskladan should be able to confirm that. But if we break something, I assume we'll learn it soon enough :)

libtaskotron/directives/resultsdb_directive.py
55–56

I'm not really fond of matching error messages. If we need to distinguish different cases, let's create a child exception and than compare by its class.

If we need to push this ASAP, let's create a ticket for it instead and add FIXME to the code.

59

IIUIC and we intend to patch this, please prepend with FIXME.

70–72

Again, please prepend with FIXME or TODO. Some editors nicely highlight it, and it's easy to grep for these words in console.

106

It's better to print e, because e.message might be empty. I don't know how it works in this particular case.

tflink closed this revision.Apr 25 2014, 3:27 PM

Closed by commit rLTRN16c59915bc8f (authored by @tflink).