Closed Bug 783713 Opened 12 years ago Closed 10 years ago

Use moztest to post results to autolog

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jgriffin, Assigned: mihneadb)

References

Details

Attachments

(2 files, 2 obsolete files)

Now that moztest supports autolog (bug 782848), we should update Marionette to use moztest to post results to autolog.
Depends on: 782848
Assignee: nobody → mbalaur
Attached patch required mods for moztest (obsolete) — Splinter Review
Needed to add some more info in moztest to support this fully.
Attachment #653461 - Flags: feedback?(jgriffin)
I kept the hardcoded parts as they were before. I cannot really test this, please help with that.
Attachment #653462 - Flags: feedback?(jgriffin)
Comment on attachment 653461 [details] [diff] [review]
required mods for moztest

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

::: moztest/moztest/output/autolog.py
@@ +57,5 @@
>              for f in failed:
>                  testgroup.add_test_failure(
>                      test=long_name(f),
>                      text='\n'.join(f.output),
> +                    status=f.result_actual,

I think we should use the calculated result here.
Attachment #653461 - Flags: feedback?(jgriffin) → feedback+
Comment on attachment 653462 [details] [diff] [review]
autolog reporting via moztest in marionette

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

::: testing/marionette/client/marionette/runtests.py
@@ +282,2 @@
>  
> +        out.post(*out.make_testgroups(collection))

Looking at this again, is there any reason to have this signature for post()?  Could we have out.post(collection), and let the output class do the right thing?
Attachment #653462 - Flags: feedback?(jgriffin) → feedback+
Switched post's signature.
Attachment #653461 - Attachment is obsolete: true
Attachment #656632 - Flags: review?(jgriffin)
Modify according to the new signature of post
Attachment #653462 - Attachment is obsolete: true
Attachment #656633 - Flags: review?(jgriffin)
Comment on attachment 656632 [details] [diff] [review]
required mods for moztest

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

lgtm
Attachment #656632 - Flags: review?(jgriffin) → review+
(In reply to Jonathan Griffin (:jgriffin) from comment #7)
> Comment on attachment 656632 [details] [diff] [review]
> required mods for moztest
> 
> Review of attachment 656632 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> lgtm

Pushed in mozbase.
Comment on attachment 656633 [details] [diff] [review]
autolog reporting via moztest in marionette

I tested this and it works fine!  I'll land it soon.
Attachment #656633 - Flags: review?(jgriffin) → review+
So, moztest hasn't been synced to m-c yet, so we'll have to hold off landing this patch until that happens.
Depends on: 788842
Ping on this :)
I think this can be unbitrotted (if needed) and landed now.
(In reply to Jonathan Griffin (:jgriffin) from comment #12)
> I think this can be unbitrotted (if needed) and landed now.

Indeed that has been bitrotted, not too surprisingly.  Mihnea, do you have time to unbitrot it?
I remember this was not so easy to test. I haven't been following autolog, so I'm not sure how much needs to be changed.

I can find the time to do it but if you already know a quick way to fix this I think it would be (considerably) faster.
Oof, this is going to be fun to unbitrot.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
We dont care about autolog anymore...
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: