Closed
Bug 974809
Opened 11 years ago
Closed 7 years ago
Using travis_fold for reading log easily
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: yurenju, Assigned: vikasyaligar.it, Mentored)
Details
(Whiteboard: [good first bug][mentor-lang=zh])
Attachments
(1 file)
we can add specific line in output to fold some part of log for reading easily, for example:
> travis_fold:start:notices
> ...folded log
> travis_fold:end:notices
here is an example to do that:
https://travis-ci.org/macbre/travis-fold/builds/15440997
https://s3.amazonaws.com/archive.travis-ci.org/jobs/15440998/log.txt
Reporter | ||
Updated•11 years ago
|
Assignee: yurenju.mozilla → nobody
Reporter | ||
Updated•11 years ago
|
Summary: [meta] Using travis_fold for reading log easily → Using travis_fold for reading log easily
Comment 1•11 years ago
|
||
Hi Yuren, can you please be more descriptive about what is to be done? If I get it, then I would like to fix this bug :)
Comment 2•11 years ago
|
||
Hi, Ram - Are you still interested in pursuing this?
Comment 3•11 years ago
|
||
Yes Mike :)
Updated•11 years ago
|
Mentor: yurenju.mozilla
Whiteboard: [good first bug][mentor=yurenju][mentor-lang=zh] → [good first bug][mentor-lang=zh]
Assignee | ||
Comment 4•11 years ago
|
||
Hey ! I am new in here and interested in working on this, can you specify what exactly to fold.
Flags: needinfo?(yurenju.mozilla)
Reporter | ||
Comment 5•11 years ago
|
||
Hi Vikas,
accroding current log, mostly build logs comes from makefile rule "app" on line 510[1], so we can start from there, it means we can print "travis_fold:start:app" and "travis_fold:end:app" in build/app.js if environment variable TRAVIS=true
to get environment variable in gaia build system, you can use utils.getEnv('TRAVIS') and use |dump()| to print the message and test by |TRAVIS=true make|
needinfo me if you have any question!
[1] https://github.com/mozilla-b2g/gaia/blob/8d051e3b074fd37674d0152f27761c39b54f4114/Makefile#L510-L511
Flags: needinfo?(yurenju.mozilla)
Assignee | ||
Comment 6•11 years ago
|
||
I have sent you a patch. Would be happy if you can comment on it
Attachment #8478107 -
Flags: review?(yurenju.mozilla)
Reporter | ||
Comment 7•11 years ago
|
||
looks good and I trigger a build on travis
https://travis-ci.org/yurenju/gaia/builds/33466621
this pull request will will be r+ if the result is expected as we think. thanks!
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → vikasyaligar.it
Reporter | ||
Comment 8•11 years ago
|
||
Comment on attachment 8478107 [details] [review]
travis_fold in app.js
Vikas,
|dump("travis_fold:start:end\n");| should be |dump("travis_fold:end:app\n");|
please modify it and send me review again
Attachment #8478107 -
Flags: review?(yurenju.mozilla)
Assignee | ||
Comment 9•11 years ago
|
||
Comment on attachment 8478107 [details] [review]
travis_fold in app.js
>https://github.com/mozilla-b2g/gaia/pull/23257
Attachment #8478107 -
Flags: review?(yurenju.mozilla)
Reporter | ||
Comment 10•11 years ago
|
||
trigger again.
https://travis-ci.org/yurenju/gaia/builds/33552118
Reporter | ||
Comment 11•11 years ago
|
||
Comment on attachment 8478107 [details] [review]
travis_fold in app.js
before:
https://travis-ci.org/mozilla-b2g/gaia/jobs/33558738
after:
https://travis-ci.org/yurenju/gaia/jobs/33552121
looks clearer! but gaia tree now is closed, I will land this pull request when it open again. thanks for your contribution!
Attachment #8478107 -
Flags: review?(yurenju.mozilla) → review+
Flags: needinfo?(yurenju.mozilla)
Reporter | ||
Comment 12•11 years ago
|
||
and please remove "WIP" in your commit message.
Flags: needinfo?(vikasyaligar.it)
Assignee | ||
Comment 13•11 years ago
|
||
Updated the commit message. Thank you
Flags: needinfo?(vikasyaligar.it)
Reporter | ||
Comment 14•11 years ago
|
||
Vikas, please use single quotes in your commit, that is last nit! sorry I didn't notice before. you also can use |jshint| to check lint error for the file you modified.
Flags: needinfo?(vikasyaligar.it)
Assignee | ||
Comment 15•11 years ago
|
||
OK ! I have done that, but when I run `jslint build/app.js`, I also get following errors =>
#3 Expected 'if' at column 5, not column 3.
if (utils.getEnv('TRAVIS')) { // Line 9, Pos 3
#4 Expected 'dump' at column 9, not column 5.
dump('travis_fold:start:app\n'); // Line 10, Pos 5
and other errors of the code which I have not touched. Could you please tell me why is that happening?
Flags: needinfo?(vikasyaligar.it)
Reporter | ||
Comment 16•11 years ago
|
||
because dump is a global function from js runtime, so you need add it on line 3 comment:
/* global exports, require, dump */
Flags: needinfo?(yurenju.mozilla)
Assignee | ||
Comment 17•11 years ago
|
||
Ok I have updated the commit. But there is no change in output by jslint.
Flags: needinfo?(yurenju.mozilla)
Reporter | ||
Comment 18•11 years ago
|
||
merged, thanks for your contribution!
https://github.com/mozilla-b2g/gaia/commit/7be54506620452e3f9b5cef9dcfa09af171ded58
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(yurenju.mozilla)
Resolution: --- → FIXED
Comment 19•11 years ago
|
||
Backed out for causing failures on gaia-try and travis like:
1) app.js BUILD_APP_NAME = *:
TypeError: Object #<Object> has no method 'getEnv'
at Object.exports.execute (/home/travis/build/mozilla-b2g/gaia/build/app.js:9:13)
at Context.<anonymous> (/home/travis/build/mozilla-b2g/gaia/build/test/unit/app.test.js:43:9)
at callFn (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:223:21)
at Test.Runnable.run (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:216:7)
at Runner.runTest (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:373:10)
at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:451:12
at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:298:14)
at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:308:7
at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:246:23)
at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:270:7
at done (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:185:5)
at callFn (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:228:7)
at Hook.Runnable.run (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:216:7)
at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:258:10)
at Object._onImmediate (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:275:5)
at processImmediate [as _immediateCallback] (timers.js:336:15)
2) app.js BUILD_APP_NAME = app1:
TypeError: Object #<Object> has no method 'getEnv'
at Object.exports.execute (/home/travis/build/mozilla-b2g/gaia/build/app.js:9:13)
at Context.<anonymous> (/home/travis/build/mozilla-b2g/gaia/build/test/unit/app.test.js:60:9)
at callFn (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:223:21)
at Test.Runnable.run (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:216:7)
at Runner.runTest (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:373:10)
at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:451:12
at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:298:14)
at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:308:7
at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:246:23)
at /home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:270:7
at done (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:185:5)
at callFn (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:228:7)
at Hook.Runnable.run (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runnable.js:216:7)
at next (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:258:10)
at Object._onImmediate (/home/travis/build/mozilla-b2g/gaia/node_modules/mocha/lib/runner.js:275:5)
at processImmediate [as _immediateCallback] (timers.js:336:15)
https://github.com/mozilla-b2g/gaia/commit/8c0be26ed3668d9061e75af1c80087c681cc5e13
Vikas - would you be able to help us fix these test issues?
Status: RESOLVED → REOPENED
Flags: needinfo?(vikasyaligar.it)
Resolution: FIXED → ---
Comment 20•11 years ago
|
||
Hi, Vikas - You're very close to getting this one over the line. Are you still interested in working on it?
Thanks,
- mhoye
Assignee | ||
Comment 21•11 years ago
|
||
Ah ! ya just got busy with my classwork. i will look into it within this weekend. Thank you
Flags: needinfo?(vikasyaligar.it)
Assignee | ||
Comment 22•11 years ago
|
||
ok ! I am back now(as I am done with my exams).
Kevin, I was not able to reproduce it. Can you please let me know which command to execute(sorry I am a newbie), as normal make works fine for me.
Thank you
Flags: needinfo?(kgrandon)
Comment 23•11 years ago
|
||
(In reply to Vikas S Yaligar from comment #22)
> ok ! I am back now(as I am done with my exams).
>
> Kevin, I was not able to reproduce it. Can you please let me know which
> command to execute(sorry I am a newbie), as normal make works fine for me.
>
> Thank you
Have you tried running the build unit tests? You can do so with something like, `make build-test-unit`.
Flags: needinfo?(kgrandon)
Comment 24•7 years ago
|
||
Firefox OS is not being worked on
Status: REOPENED → RESOLVED
Closed: 11 years ago → 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•