Closed Bug 1001530 Opened 12 years ago Closed 12 years ago

[Camera][Perf] Don't block startup waiting for activities

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S1 (9may)

People

(Reporter: wilsonpage, Assigned: wilsonpage)

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
justindarc
: review+
Details | Review
No description provided.
Assignee: nobody → wilsonpage
Attached file pull-request (master)
Attachment #8412746 - Flags: review?(jdarcangelo)
Wilson: The 1.3T patch in Bug 989290 needs to be incorporated in with our `pick` activity handling.
Wilson: Patch seems to run ok for me and I'm not seeing any issues with Activities. Before I R+ though, it looks like we have 2 test failures: - [camera-test/unit/lib/camera_test.js] Should emit a 'busy' event Error: expected false to be truthy at chaiAssert (http://camera.gaiamobile.org:8080/common/test/helper.js:33:1) at get (http://camera.gaiamobile.org:8080/common/vendor/chai/chai.js:352:1) at ok (http://camera.gaiamobile.org:8080/common/vendor/chai/chai.js:1225:5) at (anonymous) (http://camera.gaiamobile.org:8080/test/unit/lib/camera_test.js:169:7) at wrapper (http://camera.gaiamobile.org:8080/common/test/mocha_generators.js:62:13) at run (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3709:7) at runTest (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4081:5) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4127:7) at next (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4007:7) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4016:7) at next (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3964:16) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3979:7) at done (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3700:5) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3712:9) at (anonymous) (http://camera.gaiamobile.org:8080/common/test/mocha_generators.js:46:13) at wrapper (http://camera.gaiamobile.org:8080/common/test/mocha_generators.js:73:15) at run (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3709:7) at next (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3973:5) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3984:5) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4932:28) - [camera-test/unit/lib/camera_test.js] Should set the following onSuccess Error: expected false to be truthy at chaiAssert (http://camera.gaiamobile.org:8080/common/test/helper.js:33:1) at get (http://camera.gaiamobile.org:8080/common/vendor/chai/chai.js:352:1) at ok (http://camera.gaiamobile.org:8080/common/vendor/chai/chai.js:1225:5) at (anonymous) (http://camera.gaiamobile.org:8080/test/unit/lib/camera_test.js:256:7) at wrapper (http://camera.gaiamobile.org:8080/common/test/mocha_generators.js:62:13) at run (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3709:7) at runTest (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4081:5) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4127:7) at next (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4007:7) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4016:7) at next (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3964:16) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3979:7) at done (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3700:5) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3712:9) at (anonymous) (http://camera.gaiamobile.org:8080/common/test/mocha_generators.js:46:13) at wrapper (http://camera.gaiamobile.org:8080/common/test/mocha_generators.js:73:15) at run (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3709:7) at next (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3973:5) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:3984:5) at (anonymous) (http://camera.gaiamobile.org:8080/common/vendor/mocha/mocha.js:4932:28) In addition to those, we should either integrate the patch for Bug 989290 into this one, unless you think we should instead do a follow-up patch for that? Your call.
justindarc: Travis Green and ready to land.
Attachment #8412746 - Flags: review?(jdarcangelo) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
NI for Wilson Hi Wilson, I noticed while merging changes for bug 1001724 into master that as part of this bug you commented-out the 'displayImage embedded preview, bigEnough=true' test in camera/test/unit/media_frame_test.js. After merging bug 1001724 changes, I uncommented out this test and it passed. Is there a reason is should be commented out? Thanks in advance for the info.
Flags: needinfo?(wilsonpage)
russn: Apologies, I don't that should have been committed. I was having issues running that particular test locally. I also have issues with the fact that this is a 'shared' library, but its unit-tests reside in the camera app. Is there a better place we can move this?
Flags: needinfo?(wilsonpage)
There is a bug to move unit tests for shared code out of gallery (bug 841422). It would seem straightforward to take the same approach for the unit tests for shared code in camera -- to move them to the 'sharedtest' app. Btw, whoever moves the media_frame_test into 'sharedtest' can uncomment out the test mentioned in comment #6.
Target Milestone: --- → 2.0 S1 (9may)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: