Re: [b2g] If you use setTimeout in tests, you are gonna have a bad time

2013-12-17 Thread Chris Peterson

On 12/17/13, 6:49 PM, Ehsan Akhgari wrote:

A few years ago I spent quite some time investigating our intermittent
oranges in the tests living on mozilla-central, and in the process I
ended up fixing a lot of bad patterns in our tests.  Using setTimeout's
like this is definitely one of them.


Can we modify our test framework to poison unsafe global functions? I 
can set `Math.random = setInterval = setTimeout = undefined` in the JS 
console, but could that work for mochitests?



chris
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] If you use setTimeout in tests, you are gonna have a bad time

2013-12-17 Thread Ehsan Akhgari
A few years ago I spent quite some time investigating our intermittent 
oranges in the tests living on mozilla-central, and in the process I 
ended up fixing a lot of bad patterns in our tests.  Using setTimeout's 
like this is definitely one of them.


I wrote this article 
 
on these types of patterns back in the day, and I believe most if not 
all of those points are applicable to b2g/gaia as well.


Hope this helps.
Ehsan

On 12/17/2013, 8:06 AM, Dale Harvey wrote:

Investigating some unit test failures I am seeing a lot of setTimeout's
located inside the tests, someone already made a meme for me for the
occasion

http://mozillamemes.tumblr.com/post/24322890551/now-if-you-add-an-event-listener-that-sets-a

More specifically everyone is gonna have a bad time because we will have
buggy intermittent tests and closed trees, just a reminder for coders and
more specifically reviewers that setTimeouts should pretty much only be
used to yield / spin the event loop inside tests, not for any form of timer
/ waiting solution

Cheers
Dale
___
dev-gaia mailing list
dev-g...@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-gaia



___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Fixing the list of Meetings and Calendar

2013-12-17 Thread Dietrich Ayala
Hi Adrian!

Thanks for pointing this out. Most of those look correct. There's a midnight 
triage on the calendar which doesn't actually exist in real life, and there are 
two missing events:

* Looks like the Gaia weekly meeting was deleted from the shared calendar

* The newly created security meeting is not on the calendar

I'll fix these asap.

Cheers,

Dietrich

On Tuesday, December 17, 2013 2:51:55 AM UTC-8, Adrian Custer wrote:
> hey all,
> 
> 
> 
> The 'B2G' meetings are listed on:
> 
>https://wiki.mozilla.org/B2G#Meetings
> 
> which includes a link, at the bottom of the page, to a calendar:
> 
>  
> 
> https://mail.mozilla.com/home/dietr...@mozilla.com/B2G%20Event%20Schedule.html
> 
> 
> 
> Unfortunately, the list of meetings on the two sources are not the same, 
> 
> not even really comparable.
> 
> 
> 
> It would be helpful if this could be clarified.
> 
> 
> 
> cheers,
> 
>~adrian

___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] FirefoxOS Security Weekly Meeting

2013-12-17 Thread Dietrich Ayala
The following is a new meeting request:

Subject: FirefoxOS Security Weekly Meeting 
Organizer: "Dietrich Ayala"  

Location: vidyo-...@mozilla.com 
Resources: vidyo-...@mozilla.com (VidyoRoom: B2G x8500) 
Time: 1:30:00 PM - 2:00:00 PM GMT -08:00 US/Canada Pacific
 Recurrence : Every Tuesday No end date Effective Dec 17, 2013

Invitees: dev-b2g@lists.mozilla.org; dev-g...@lists.mozilla.org 


*~*~*~*~*~*~*~*~*~*

https://etherpad.mozilla.org/firefoxossecteammtg
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] 12/17/2013 COM RIL Buri 1.2 Smoketest Results - 48/48 tests passed, no new blockers

2013-12-17 Thread Marcia Knous
48 out of 48 tests passed for the 2013-12-17 Buri v1.2.0 COM RIL Build. 
There are no major issues preventing the smoketest from passing.


COM RIL Build Smoketest Results:
Daily Smoke Test Logs:
https://docs.google.com/a/qanalydocs.com/spreadsheet/ccc?key=0AjRc6aVFoOW9dGZLdVdiWGZLbVdORlFpUGt5XzZ3Znc&usp=drive_web#gid=4 


Moztrap link: https://moztrap.mozilla.org/runtests/run/3006/env/347/

Tests Were Performed With:
Build ID: 20131217004001
Gecko: 129ad3c335a5
Gaia: 4f53ba8b3628ac311253fc28dfdf66e7ba6832de
RIL Version: 01.02.00.019.102
Base Image: V1.2_20131115
0 reboots
0 crashes

New Bugs Breaking the Smoketests:
- None reported.

Existing Bugs Breaking the Smoketests:
- None reported.

New Issues Not Breaking the Smoketests:
- None reported.

Sincerely,

Mozilla QA Team
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] Gaia Weekly Meeting

2013-12-17 Thread Dietrich Ayala
The following is a new meeting request:

Subject: Gaia Weekly Meeting 
Organizer: "Dietrich Ayala"  

Location: "VidyoRoom - B2G"  
Resources: "VidyoRoom: B2G x8500"  (VidyoRoom: B2G 
x8500) 
Time: 9:00:00 AM - 10:00:00 AM GMT -08:00 US/Canada Pacific
 Recurrence : Every Tuesday No end date Effective Sep 25, 2012

Invitees: dev-g...@lists.mozilla.org; dev-b2g@lists.mozilla.org 


*~*~*~*~*~*~*~*~*~*

Where: Vidyo B2G Room 

Meeting Notes: 
https://etherpad.mozilla.org/gaia-meeting-notes 

Canonical meeting info: https://wiki.mozilla.org/B2G#Meetings
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] Firefox OS Release Triage

2013-12-17 Thread Dietrich Ayala
The following meeting has been modified:

Subject: Firefox OS Release Triage 
Organizer: "Dietrich Ayala"  

Time: 10:00:00 PM - 11:00:00 PM GMT -08:00 US/Canada Pacific [MODIFIED]
 Recurrence : Every 1 week(s) on  No end date Effective Oct 30, 2013

Invitees: vidyo-...@mozilla.com; dev-g...@lists.mozilla.org; 
dev-b2g@lists.mozilla.org; b2g-inter...@mozilla.org; ffos-...@mozilla.com; 
cser...@mozilla.com; jsulli...@mozilla.com; ffos-...@mozilla.com; 
gabriele.sve...@gmail.com; bm...@mozilla.com; a...@mozilla.com ... 


*~*~*~*~*~*~*~*~*~*

Triage of bugs relating to current releases. 

This triage schedule begins on the week of October 28, 2013. 

Please see https://wiki.mozilla.org/B2G/Triage for: 

* Search queries 
* What blocks 
* What doesn't block 

Required for quorum are representatives from: 

* Release Management 
* UX 
* Engineering Management 
* QA 
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] 12/17/2013 Buri 1.3 Mozilla RIL Smoke Test Results - 48/48 tests passed, no new blockers

2013-12-17 Thread Marcia Knous
48 out of 48 tests passed for the 2013-12-17 Buri v1.3.0 MOZ RIL Build. 
There are no major issues preventing the smoketest from passing.


MOZ RIL Build Smoketest Results:
Daily Smoke Test Logs:
https://docs.google.com/a/qanalydocs.com/spreadsheet/ccc?key=0AjRc6aVFoOW9dGZLdVdiWGZLbVdORlFpUGt5XzZ3Znc&usp=drive_web#gid=5 


Moztrap link: https://moztrap.mozilla.org/runtests/run/3004/env/347/

Tests Were Performed With:
Build ID: 20131217004001
Gecko: 1f7db4cc788e
Gaia: dca0a3dcf062ce3e422a9c56d141c14543c816fb
Base Image: V1.2_20131115
0 reboots
1 new crash (bug https://bugzilla.mozilla.org/show_bug.cgi?id=951258)

New Bugs Breaking the Smoketests:
- None reported.

Existing Bugs Breaking the Smoketests:
- None reported.

New Issues Not Breaking the Smoketests:
- crash in @0x0 | 
mozilla::layers::AsyncPanZoomController::SampleContentTransformForFrame(mozilla::TimeStamp 
const&, mozilla::layers::ViewTransform*, 
mozilla::gfx::PointTyped&) 
https://bugzilla.mozilla.org/show_bug.cgi?id=951258
- [B2G][Gallery][Image Edit] Image preview in edit mode shows orange and 
blue horizontal lines across middle 
https://bugzilla.mozilla.org/show_bug.cgi?id=951241


Sincerely,

Mozilla QA Team
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] 12/17/2013 Buri Master/M-C Mozilla RIL Smoke Test Results - 40/48 tests passed, 3 new blockers

2013-12-17 Thread Marcia Knous
40 out of 48 tests passed for the 2013-12-17 Buri Master M-C Mozilla RIL 
Build. There are three new issues and three existing blockers that kept 
the smoketests from fully passing. Note that 
https://bugzilla.mozilla.org/show_bug.cgi?id=950589 was backed out but 
did not make it into the build we tested today, so therefore still shows 
as an existing blocker.


Mozilla RIL Build Smoketest Results:
Daily Smoke Test Logs:
https://docs.google.com/a/qanalydocs.com/spreadsheet/ccc?key=0AjRc6aVFoOW9dGZLdVdiWGZLbVdORlFpUGt5XzZ3Znc&usp=drive_web#gid=0 


Moztrap link: https://moztrap.mozilla.org/runtests/run/3005/env/347/

Tests Were Performed With:
Build ID: 20131217040201
Gecko: b1e5ade62913
Gaia: 545aacf3feff6430140cc9ade757002df4895b77
Base Image: V1.2_20131115
1 reboot
2 crashes:
- bug https://bugzilla.mozilla.org/show_bug.cgi?id=950589
- bug https://bugzilla.mozilla.org/show_bug.cgi?id=949347

New Bugs Breaking the Smoketests:
- [Flatfish][Buri][Gallery] Black screen shown when opening Gallery 
https://bugzilla.mozilla.org/show_bug.cgi?id=951088

**see bug https://bugzilla.mozilla.org/show_bug.cgi?id=950523#c12
- [B2G][Video] Video app displays broken interface without library when 
opened https://bugzilla.mozilla.org/show_bug.cgi?id=951280
- Intermittent PROCESS-CRASH | /tests/dom/camera/test/test_camera.html | 
application crashed [@ mozilla::layers::TextureClient::Finalize()] or 
timed out after 330 seconds and crashed 
https://bugzilla.mozilla.org/show_bug.cgi?id=949347


Existing Bugs Breaking the Smoketests:
- [Browser] [Youtube] The b2g will crash when playing youtube in Browser 
https://bugzilla.mozilla.org/show_bug.cgi?id=950589
- [B2G][Lockscreen] Unable to access the camera app through the 
lockscreen while passcode is enabled 
https://bugzilla.mozilla.org/show_bug.cgi?id=950136
- [B2G][Contacts] Facebook contacts imported, display "Undefined" when 
editing https://bugzilla.mozilla.org/show_bug.cgi?id=949197


New Issues Not Breaking the Smoketests:
- None reported.

Sincerely,

Mozilla QA Team


___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] Firefox OS alongside a framebuffer console?

2013-12-17 Thread John Magolske
Hi,

Would it be possible to have Firefox OS running in one VT, then
switch over to another VT and run a framebuffer console?

On my ThinkPad I run Debian with a framebuffer console, using tmux
as a textmode "window manager" along with various CLI and ncurses
applications like zsh, Vim, vifm, Mutt, ELinks, MPlayer, MPD, ncmpcpp,
MOC, etc. Mostly what I use the X Window System for is to run a
lightweight window manager containing a full-screen instance of
Firefox. This works out quite well for most of my needs (except when
using SolidWorks, which requires MSwin anyways...), and makes for a
nice system capable of running on limited resources.

I'd like to replicate this setup on a low-power, low-cost, lightweight
ARM machine. Being able to switch between a capable multiplexed text
console and a graphical web-browser in this way could IMO make for a
nice, inexpensive development machine. Something like a One Laptop Per
Child for coders and power users.

I haven't played around with Firefox OS outside of an emulator, so I
don't know if this makes sense or what's possible...any suggestions or
clues much appreciated!

Regards,

John

-- 
John Magolske
http://B79.net/contact
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] If you use setTimeout in tests, you are gonna have a bad time

2013-12-17 Thread Gabriele Svelto

On 17/12/2013 14:06, Dale Harvey wrote:

Investigating some unit test failures I am seeing a lot of setTimeout's
located inside the tests


Yuck! No wonder we had intermittent issues.


just a reminder for coders and
more specifically reviewers that setTimeouts should pretty much only be
used to yield / spin the event loop inside tests, not for any form of timer
/ waiting solution


And also if you have something that's timer-based you can reliably test 
it by faking timers:


http://sinonjs.org/docs/#clock
http://cjohansen.no/en/javascript/faking_timers_and_dates_with_sinon

For example I've used them extensively in the dialer unit-tests to check 
dial-tone durations which were setTimeout()-based.


 Gabriele
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] If you use setTimeout in tests, you are gonna have a bad time

2013-12-17 Thread Dale Harvey
Investigating some unit test failures I am seeing a lot of setTimeout's
located inside the tests, someone already made a meme for me for the
occasion

http://mozillamemes.tumblr.com/post/24322890551/now-if-you-add-an-event-listener-that-sets-a

More specifically everyone is gonna have a bad time because we will have
buggy intermittent tests and closed trees, just a reminder for coders and
more specifically reviewers that setTimeouts should pretty much only be
used to yield / spin the event loop inside tests, not for any form of timer
/ waiting solution

Cheers
Dale
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] I have a request that seems to get canceled despite mozSystem

2013-12-17 Thread Antonio M. Amaya

Probably the problem is that the certificate isn't recognized, because
either the root certificate isn't
installed (which I don't know) or the server isn't sending the
intermediate certificate (which I've checked and it isn't).

If you try to connect with Firefox desktop, it gives a certificate error.

Best,

Antonio


On 17/12/2013 11:36, Jan Jongboom wrote:

I'm trying to find out why I can't sign in to ConnectA2. And then I saw that 
none of the AJAX calls that it makes succeed. So this is what I run on a device 
(1.2, via app manager in an app that has systemXHR):

var x = new XMLHttpRequest({ mozSystem: true })
x.onload=function() { console.log('suc', x, x.responseText) }
x.onerror =function(e) { console.log('err', e, x); }
x.open('GET', 'https://www.connecta2.net/')
x.send()

this errors. If I do it via CURL:

curl -X GET https://www.connecta2.net/

The request succeeds. So what the *@&* is going on here? Other domains work 
fine.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g





Este mensaje se dirige exclusivamente a su destinatario. Puede consultar 
nuestra política de envío y recepción de correo electrónico en el enlace 
situado más abajo.
This message is intended exclusively for its addressee. We only send and 
receive email on the basis of the terms set out at:
http://www.tid.es/ES/PAGINAS/disclaimer.aspx
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] Fixing the list of Meetings and Calendar

2013-12-17 Thread Adrian Custer

hey all,

The 'B2G' meetings are listed on:
  https://wiki.mozilla.org/B2G#Meetings
which includes a link, at the bottom of the page, to a calendar:

https://mail.mozilla.com/home/dietr...@mozilla.com/B2G%20Event%20Schedule.html

Unfortunately, the list of meetings on the two sources are not the same, 
not even really comparable.


It would be helpful if this could be clarified.

cheers,
  ~adrian
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


[b2g] I have a request that seems to get canceled despite mozSystem

2013-12-17 Thread Jan Jongboom
I'm trying to find out why I can't sign in to ConnectA2. And then I saw that 
none of the AJAX calls that it makes succeed. So this is what I run on a device 
(1.2, via app manager in an app that has systemXHR):

var x = new XMLHttpRequest({ mozSystem: true })
x.onload=function() { console.log('suc', x, x.responseText) }
x.onerror =function(e) { console.log('err', e, x); }
x.open('GET', 'https://www.connecta2.net/')
x.send()

this errors. If I do it via CURL:

curl -X GET https://www.connecta2.net/

The request succeeds. So what the *@&* is going on here? Other domains work 
fine.
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] create API

2013-12-17 Thread Josh Matthews
If you want a window.navigator.foo property that implements your new 
MySample interface, you need to add it to Navigator.webidl. Otherwise, 
if you want to be able to use |new MySample()| from JavaScript and 
obtain an object that implements your MySample interface, you need to 
add a [Constructor] annotation to the MySample webidl.


Cheers,
Josh

On 12/17/2013 02:47 AM, Dinesh Babu wrote:

On Tuesday, December 17, 2013 12:45:03 PM UTC+5:30, Josh Matthews wrote:

Hi Dinesh,

What do you expect your changes to do? You have not added any way to

obtain a MySample object (such as a property on window.navigator or a

constructor for MySample), so I'm not sure what sort of tests you're

able to perform.



Cheers,

Josh


hi,
i want to know how to integrate a module in gecko layer of B2G, and I followed

1. created MySample.webidl and place in dom/webidl
2. added entry to moz.build in same dom/webidl directory
3. Added entry in  dom/bindings/Bindings.conf (I attached that file in above 
post for your reference).
4. created MySample.h and MySample.cpp (I attaced both the files in above post 
for your reference) and placed inside dom/sample/ directory which i created.
5. added entry in moz.build in dom/ directory and created moz.build including 
all files in sample directory and placed in dom/sample directory

this is the steps i followed, please help me with where i am wrong and help me 
with adding property in window.navigator

i expect my changes to return the double value when i call hello() function 
from gaia part.



___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g


Re: [b2g] Shared Setting

2013-12-17 Thread Kevin Grandon
You may want to look into this file and see how the object is used in different 
apps: 
https://github.com/mozilla-b2g/gaia/blob/master/shared/js/settings_listener.js

Best,
Kevin

- Original Message -
From: "Manjunatha M" 
To: dev-b2g@lists.mozilla.org
Sent: Tuesday, December 17, 2013 7:48:43 AM
Subject: [b2g] Shared Setting

Hi,

I want to include one setting in settings application. I need to access it from 
Home application and contact application. What is the best way to implement and 
access shared settings?

Regards,
Manjunatha
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g
___
dev-b2g mailing list
dev-b2g@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-b2g