<div dir="ltr">Datastore api have a few places with comments about function/methods than should be async, but are sync.<div><br></div><div>Ex: <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/datastore/datastore.py#L369">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/datastore/datastore.py#L369</a></div>
<div><br></div><div>No idea about if is related, just a comment.</div><div><br></div><div>Gonzalo</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 12, 2013 at 6:33 AM, Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Interesting that he has different tests failing, on buildbot it seems to be always the same. Maybe he can try to osbuild pull, try to reproduce again, and post build/logs/check-modules.log? Seeing a slightly different failure might help us understanding.<br>
</div><div><br>The timeout is 5 seconds so it's probably long enough. I suspect more some kind of race either in apisocket.py, in the js datastore code or in gwebsockets itself. Let's see if the logs tells us something more.<br>
</div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On 12 December 2013 03:46, Code Raguet <span dir="ltr"><<a href="mailto:iraguet@activitycentral.com" target="_blank">iraguet@activitycentral.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Roger has told me recently (today) that this also happen in his local env...<div>Some datastore related test randomly fails. Is not always the same test, but it is one of datastore's and them always fail due to timeouts.<br>
</div><div><br></div><div>Perhaps it's just matter of performance and we can workaround it with higher timeouts...</div><div><br></div><div>Nice work logging gwebsockets, Daniel.</div><div><br></div></div><div>
<div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Dec 11, 2013 at 10:18 PM, Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>As an update, we are now back to the intermittent datastore tests failure which we have been getting for a while.<br></div><br><a href="http://buildbot.sugarlabs.org/builders/full-master/builds/17/steps/shell_3/logs/modules" target="_blank">http://buildbot.sugarlabs.org/builders/full-master/builds/17/steps/shell_3/logs/modules</a><br>
<br><pre><span>[1A [2KChrome 25.0 (Linux): Executed 16 of 34
[1A [2KChrome 25.0 (Linux) datastore should be able to set object metadata FAILED
timeout: timed out after 5000 msec waiting for metadata should be set
Chrome 25.0 (Linux): Executed 17 of 34 (1 FAILED)</span></pre>And in the shell logs we can see the corresponding 5 seconds delay in the websockets communication<br></div><br><div><pre><span>1386782408.775987 DEBUG gwebsockets: Text message {"method":"datastore.set_metadata","id":3,"params":["56ab3f11-4654-457d-97ee-b8b1ec092e3b",{"title":"hello"}],"jsonrpc":"2.0"}
1386782409.802124 DEBUG gwebsockets: Got data, length 114<br><br></span></pre><pre><span>That's not enough to say if python is never sending the message or if javascript is never receiving/handling it. So I make gwebsockets log sent messages to... when we get the next failure we can check if that helps figuring out what is going on.<br>
</span></pre></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Daniel Narvaez<br>
</font></span></div>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br></div>