Mozmill error messages

Andrew Sutherland asutherland at asutherland.org
Sun Oct 2 21:12:31 UTC 2011


I would suggest instrumenting the failure site (the one looking for a 
JSON blob) to print the thing it is trying to json.loads() to see what 
is actually coming across the wire.  While I'm reasonably confident the 
fancy pants logging support should not be marshaling non-objects, it's 
possible the more recent revisions of mozmill are trying to introspect 
things the fancy pants logging is putting in there.  Or maybe it's 
something different, but that's the best way to answer the question.

Andrew

On 10/02/2011 08:30 AM, Jonathan Protzenko wrote:
> Hi folks,
>
> I'm trying to write tests for the account provisioner, and ever since 
> we upgraded to in-tree mozmill, every single time I write a test, I'm 
> getting errors such as these:
>
> jonathan at ramona:~/Code/objdir-comm-central $ make 
> SOLO_TEST=get-an-account/test-get-an-account.js mozmill-one
> unset PYTHONHOME && cd ./mozilla/_tests/mozmill && 
> MACOSX_DEPLOYMENT_TARGET= \
>     
> /home/jonathan/Code/objdir-comm-central/./mozilla/_tests/mozmill/../mozmill-virtualenv/bin/python 
> runtest.py \
>     
> --test=/home/jonathan/Code/comm-central/mail/test/mozmill/get-an-account/test-get-an-account.js 
> \
>     --binary=../../.././mozilla/dist/bin/thunderbird \
>     
> --symbols-path=/home/jonathan/Code/objdir-comm-central/./mozilla/dist/crashreporter-symbols 
> \
>
> Using profile dir: 
> /home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill/mozmillprofile
> Warning: unrecognized command line flag -foreground
> error: uncaptured python exception, closing channel 
> <jsbridge.network.BackChannel connected 127.0.0.1:24242 at 0x15a6440> 
> (<type 'exceptions.ValueError'>:No JSON object could be decoded 
> [/usr/lib/python2.7/asyncore.py|readwrite|108] 
> [/usr/lib/python2.7/asyncore.py|handle_read_event|444] 
> [/home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill-virtualenv/lib/python2.7/site-packages/jsbridge/network.py|handle_read|94] 
> [/home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill-virtualenv/lib/python2.7/site-packages/jsbridge/network.py|process_read|255] 
> [/home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill-virtualenv/lib/python2.7/site-packages/jsbridge/network.py|fire_callbacks|270] 
> [/home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill-virtualenv/lib/python2.7/site-packages/jsbridge/network.py|fire_event|291] 
> [/home/jonathan/Code/objdir-comm-central/mozilla/_tests/mozmill-virtualenv/lib/python2.7/site-packages/mozmill/__init__.py|__call__|97] 
> [runtest.py|logFailure|415] 
> [/usr/lib/python2.7/json/__init__.py|loads|326] 
> [/usr/lib/python2.7/json/decoder.py|decode|366] 
> [/usr/lib/python2.7/json/decoder.py|raw_decode|384])
> WARNING | endRunner was never called. There must have been a failure 
> in the framework.
>
> Not only is that not particularly helpful, there's nothing I can do to 
> figure out the error. Is that a syntax error somewhere? Is it a 
> misconfiguration because I added a new directory in mail/test/mozmill? 
> I need to blindly, magically figure out where the error is, and this 
> is really difficult. Writing tests is already super-painful, and this 
> really makes we want to give up.
>
> Is there anything I'm doing wrong? Am I missing something? Is me setup 
> somehow broken?
>
> Any piece of advice would be highly appreciated :-).
>
> Cheers,
>
> jonathan
> _______________________________________________
> tb-planning mailing list
> tb-planning at mozilla.org
> https://mail.mozilla.org/listinfo/tb-planning




More information about the tb-planning mailing list