Closed
Bug 934952
Opened 11 years ago
Closed 11 years ago
Add test-agent coverage report into allow-failures of Travis CI
Categories
(Firefox OS Graveyard :: Gaia::TestAgent, defect)
Firefox OS Graveyard
Gaia::TestAgent
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rickychien, Assigned: rickychien)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release)
Build ID: 20130910160258
Assignee | ||
Updated•11 years ago
|
Summary: Added test-agent coverage report into allow-failures of Travis CI → Add test-agent coverage report into allow-failures of Travis CI
Updated•11 years ago
|
Assignee: nobody → ricky060709
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #827784 -
Flags: review?(yurenju.mozilla)
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 827784 [details]
Pull request link for gaia
><html>
> <head>
> <meta http-equiv="Refresh"
> content="1; url=https://github.com/mozilla-b2g/gaia/pull/13408" />
> </head>
> <body>
> Redirect to pull request link...
> </body>
></html>
Attachment #827784 -
Attachment mime type: text/plain → text/html
Comment 3•11 years ago
|
||
Comment on attachment 827784 [details]
Pull request link for gaia
we only have browser coverage report because it failed on browser unit test, could you ignore failed and get coverage report for all gaia apps? thanks.
Attachment #827784 -
Flags: review?(yurenju.mozilla)
Assignee | ||
Comment 4•11 years ago
|
||
I agree it is a better way to ignore fail and continue to run testing, but the reason caused testing stop is because mocha. Runing mocha and encounter some of fails are going to stop testing.
For example: https://travis-ci.org/RickyChien/gaia/jobs/13561239 (here is without blanket.js)
So, I will trace the mocha to understand what kind of fails caused it to stop.
Assignee | ||
Comment 5•11 years ago
|
||
I found this is a bug when integrating blanket.js and it have been fixed now.
Assignee | ||
Updated•11 years ago
|
Attachment #827784 -
Attachment description: Pull request link → Pull request link for gaia
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #833421 -
Flags: review?(yurenju.mozilla)
Assignee | ||
Updated•11 years ago
|
Attachment #827784 -
Flags: review?(yurenju.mozilla)
Assignee | ||
Comment 7•11 years ago
|
||
The step to use this patch is:
1. Apply gaia patch
2. Remove test-agent "rm -rf /tools/test-agent/node_moudles/test-agent"
3. "git clone git@github.com:RickyChien/js-test-agent test-agent" and move test-agent to /tools/test-agent/node_moudles/
4. "git checkout -b issue-934952 origin/issue-934952"
5. run "test-agent-test COVERAGE=1"
Comment 8•11 years ago
|
||
Comment on attachment 833421 [details] [review]
Pull request link for js-test-agent
Ricky, please describe your change in git commit message, looks this change doesn't relate to add coverage report into allow-failures of travis.
Attachment #833421 -
Flags: review?(yurenju.mozilla)
Assignee | ||
Updated•11 years ago
|
Attachment #833421 -
Flags: review?(yurenju.mozilla)
Comment 9•11 years ago
|
||
I'm pretty busy those days. Julien, are you available to review this pr?
Flags: needinfo?(felash)
Updated•11 years ago
|
Attachment #827784 -
Flags: review?(yurenju.mozilla)
Updated•11 years ago
|
Attachment #833421 -
Flags: review?(yurenju.mozilla)
Updated•11 years ago
|
Attachment #827784 -
Flags: review?(felash)
Updated•11 years ago
|
Attachment #833421 -
Flags: review?(felash)
Comment 10•11 years ago
|
||
Yep, taking the reviews, will help me understand better the test-agent internals ;)
If I don't feel comfortable I'll ask you or James back.
Flags: needinfo?(felash)
Updated•11 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee | ||
Comment 11•11 years ago
|
||
Here is the result of gaia PR on travis-CI without new js-test-agent:
https://travis-ci.org/RickyChien/gaia/jobs/14238775
We can see all modules coverage report as well as some test log on console. Getting neat coverage output if enable the new version js-test-agent.
Comment 12•11 years ago
|
||
I've added some comments on the pull request. Sorry for the delay, I was busier than expected, but now that I know your patch better I'll be able to react faster.
Assignee | ||
Comment 13•11 years ago
|
||
I've leaved comments on PR too. You can check it ASAP. :)
Comment 14•11 years ago
|
||
Ricky, I just want to say I'm sorry it takes so much time, I was very busy with blocker bugs... I promise I'll check this again during this week-end.
Comment 15•11 years ago
|
||
I added a comment and question on the github PR.
Assignee | ||
Updated•11 years ago
|
Component: General → Gaia::TestAgent
Assignee | ||
Comment 16•11 years ago
|
||
@Julien Thank you for reviewing. I also leave comment in github PR :)
Comment 18•11 years ago
|
||
Hey Yuren,
if your queue is shorter now, then you can take the review back, as obviously I haven't be able to move it forward yet.
I still don't like to have this boolean "useCoverage" in all functions. What if we want a third feature in the future?
Ricky, can we use an "options" object like "{ coverage: true }" instead of a boolean argument ? With this change to your code I would agree to move forward.
Flags: needinfo?(felash)
Assignee | ||
Comment 19•11 years ago
|
||
Hi Julien,
I've updated my PR and you can check it again.
Console output from allowed failures in travis is at https://travis-ci.org/mozilla-b2g/gaia/jobs/17899518 that currently shows no result because I found there are blanket loading script error in browser app.
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(felash)
Comment 20•11 years ago
|
||
(In reply to Ricky Chien [:rickychien] from comment #19)
> Console output from allowed failures in travis is at
> https://travis-ci.org/mozilla-b2g/gaia/jobs/17899518 that currently shows no
> result because I found there are blanket loading script error in browser app.
Do you have another bug for this? I have the same issue locally and thus I can't test :(
Flags: needinfo?(felash)
Assignee | ||
Comment 21•11 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #20)
> (In reply to Ricky Chien [:rickychien] from comment #19)
>
> > Console output from allowed failures in travis is at
> > https://travis-ci.org/mozilla-b2g/gaia/jobs/17899518 that currently shows no
> > result because I found there are blanket loading script error in browser app.
>
> Do you have another bug for this? I have the same issue locally and thus I
> can't test :(
I'm going to find out what's problem and fix in this bug.
Comment 22•11 years ago
|
||
Ok thanks, tell me when you find it !
Assignee | ||
Comment 23•11 years ago
|
||
Current travis-ci report at https://travis-ci.org/mozilla-b2g/gaia/jobs/18711822 was stuck in search.
Due to https://github.com/mozilla-b2g/gaia/blob/master/apps/search/test/unit/providers/marketplace_test.js#L7 require app_provider.js but it isn't exist! So, blanket throw error to stop instrumenting.
I will find out all similar errors and fixed in this patch soon.
Comment 24•11 years ago
|
||
I'm fine in this patch if this throws, but in my test it was not running at all :) If it's actually running (even failing) with your new patch then I'm fine.
Let's file other bugs for these issues.
Assignee | ||
Comment 25•11 years ago
|
||
Hi, there too many errors in our tests. xd
I determine to modify blanket to ignore all of these script loading errors.
Comment 26•11 years ago
|
||
Yeah, probably the best thing to do... but in another bug ? ;)
Assignee | ||
Comment 27•11 years ago
|
||
Assignee | ||
Comment 28•11 years ago
|
||
Now we can see more coverage https://travis-ci.org/mozilla-b2g/gaia/jobs/18778744
But another problem arised by communication that block blanket.
Assignee | ||
Comment 29•11 years ago
|
||
I think it's time to land this feature due to almost all modules were covered.
Comment 30•11 years ago
|
||
Agreed, let's land this
Comment 31•11 years ago
|
||
Comment on attachment 833421 [details] [review]
Pull request link for js-test-agent
r=me
Attachment #833421 -
Flags: review?(felash) → review+
Comment 32•11 years ago
|
||
Comment on attachment 827784 [details]
Pull request link for gaia
r=me
Attachment #827784 -
Flags: review?(felash) → review+
Comment 33•11 years ago
|
||
Comment on attachment 833421 [details] [review]
Pull request link for js-test-agent
For this one, we'll need to bump the version for test-agent so that the changes in lib/node/bin/test.js are used. Therefore I don't know what these changes are doing?
Assignee | ||
Comment 34•11 years ago
|
||
merged.
Pull request link for gaia
https://github.com/mozilla-b2g/gaia/commit/ce1c840fc3f893b2b0bd961421c28c5ae27bdcb6
Assignee | ||
Comment 35•11 years ago
|
||
merged.
Pull request link for js-test-agent
https://github.com/mozilla-b2g/js-test-agent/commit/80e1e88bf0f32fabb5d2004d50b09ea45b79b803
Assignee | ||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•