Closed
Bug 837581
Opened 12 years ago
Closed 12 years ago
Add travis support for gaia unit testing
Categories
(Firefox OS Graveyard :: Gaia, defect)
Firefox OS Graveyard
Gaia
Tracking
(blocking-b2g:tef+, b2g18 fixed, b2g18-v1.0.0 wontfix, b2g18-v1.0.1 fixed)
RESOLVED
FIXED
blocking-b2g | tef+ |
People
(Reporter: yurenju, Assigned: yurenju)
References
Details
(Whiteboard: [nptob] QARegressExclude, [qa-])
Attachments
(1 file)
travis-ci.org is a continuous integration web service for project hosted by github, and it's free for open source project.
travis build process will be triggered by someone send a pull request to gaia github repository, so we can get test result before code landed.
for example Tim send a pull request to me and build process was triggered automatic and shown result on pull request page.
https://github.com/yurenju/gaia/pull/1
and there is the build history for every pull request:
https://travis-ci.org/yurenju/gaia/builds
it can be help us for improving code quality and ensure every commit passed unit tests before landed.
However, I would like to get more feedback for travis support. please let me know if you have any problems.
Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(21)
Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(jlal)
Assignee | ||
Comment 1•12 years ago
|
||
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → yurenju
Comment 2•12 years ago
|
||
Mocha is supposed to be able to output junit-like log file, that should be understandable by any CI software.
Comment 3•12 years ago
|
||
I really feel like we need bug 802317 to be fixed but since I have no idea how long it will took let's try to understand what this would provide.
What type of tests will it allow us to run? Unit tests only? or is it possible to run integration tests on a desktop build as well?
Flags: needinfo?(21)
Updated•12 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Assignee | ||
Comment 4•12 years ago
|
||
Julien,
travis-ci doesn't support junit integration[1] now, but we still can upload junit format test report to somewhere or use API to get the result.
Vivien,
Yes we can run gaia-ui-tests or other tests on travis, but travis has build time limitation about 25 minutes[2]. I will add gaia-ui-tests on travis and measure how much time we spend on gaia-ui-tests.
[1] https://github.com/travis-ci/travis-ci/issues/239
[2] http://about.travis-ci.org/docs/user/build-configuration/#Build-Timeouts
Comment 5•12 years ago
|
||
(In reply to Yuren Ju [:yurenju] from comment #4)
> Yes we can run gaia-ui-tests or other tests on travis, but travis has build
> time limitation about 25 minutes[2]. I will add gaia-ui-tests on travis and
> measure how much time we spend on gaia-ui-tests.
With the coming long holiday in Taipei, if this take more than 1 day, I would tend to think that we should enable travis-ci for Gaia unit test first, and modify test script afterwards.
Additionally, in order to keep the badge green (so that the future offender would know s/he breaks something), we should land another commit that disable all the out-dated failed tests, and file bugs against them to have them fixed.
If that's fine with everyone, Yuren can wrap his WIP work into patch review (who should review it?)
Assignee | ||
Comment 6•12 years ago
|
||
as Tim said, we have a long holiday in Taipei, so I would like to submit the pull request for initial travis integration and we can improve it afterward.
Attachment #710104 -
Flags: review?(jlal)
Comment 7•12 years ago
|
||
Comment on attachment 710104 [details]
pull request
Redirect the review request to Vivien.
The only concern of mine is that some of the scripts are dups of what James had done for botio, but I am not sure if we are even going to maintain that. I am sure we could figure out how things should put together afterward.
Attachment #710104 -
Flags: review?(jlal) → review?(21)
Comment 8•12 years ago
|
||
Comment on attachment 710104 [details]
pull request
r+ if you fix the script to make sure we don't fall into and endless loop. My wish for this script is that it will be removed soon but that a good way to start having green tests imho. Thanks for the work.
Attachment #710104 -
Flags: review?(21) → review+
Assignee | ||
Comment 9•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 10•12 years ago
|
||
Comment on attachment 710104 [details]
pull request
I'd like this to land on v1-train and v1.0.1 as well, so that unit tests run on these branches too.
Now we have error notices from Travis for each merge because we don't have this there. Also, it makes a lot of sense to run unit tests on these branches too.
Attachment #710104 -
Flags: approval-gaia-v1?(21)
Comment 11•12 years ago
|
||
Marking tef? so that this lands on v1.0.1.
No risk whatsoever, we only add new no-code files.
blocking-b2g: --- → tef?
Flags: needinfo?(jlal)
Updated•12 years ago
|
blocking-b2g: tef? → tef+
status-b2g18:
--- → affected
status-b2g18-v1.0.0:
--- → wontfix
status-b2g18-v1.0.1:
--- → affected
Whiteboard: [nptob]
Comment 12•12 years ago
|
||
Comment on attachment 710104 [details]
pull request
Patch only affects travis support so marking npotb and blocking so no need for approval.
Attachment #710104 -
Flags: approval-gaia-v1?(21)
Comment 13•12 years ago
|
||
Uplifting commit 0f31fd5abf3f67c1ba4d826d50ad3fddb95bf801:
v1-train: ccc560eb6722daa32772d7fa0494201abd6a9962
v1.0.1: 05b77466975143469d62875a0fc703c264768c18
Comment 15•12 years ago
|
||
Cannot verify, need steps to blackbox test this issue.
Comment 16•12 years ago
|
||
check that https://travis-ci.org/mozilla-b2g/gaia/builds has builds for all branches.
Updated•12 years ago
|
Whiteboard: [nptob] QARegressExclude → [nptob] QARegressExclude, [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•