Closed Bug 1095219 Opened 10 years ago Closed 10 years ago

Failing unit test, smart-home-test/unit/card_manager_test.js | Uncaught Error: ReferenceError: evt is not defined

Categories

(Firefox OS Graveyard :: Gaia, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kgrandon, Assigned: dwi2)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
johnhu
: review+
rickychien
: review+
Details | Review
1) [smart-home-test/unit/card_manager_test.js] smart-home/CardManager "before all" hook: Uncaught Error: ReferenceError: evt is not defined (app://smart-home.gaiamobile.org/js/card_manager.js?time=1415320658875:9) at onerror (app://smart-home.gaiamobile.org/common/vendor/mocha/mocha.js:4959:10) Likely caused by bug 1093436.
Disabled for now for being perma red: https://github.com/mozilla-b2g/gaia/commit/2eab7a4ca9b6196e429623ce39c4dae1368ecb84 John - can you take a look at this? I'm wondering if there's some magic we need to do to support the tv_shared path.
Flags: needinfo?(im)
Changed disabling strategy, as it seemed it could still be failing due to includes throwing errors, https://github.com/mozilla-b2g/gaia/commit/e0c1beb76148ee539ff00f7f84194dd5458c09f2
I could fix this.
Assignee: nobody → tzhuang
Status: NEW → ASSIGNED
Flags: needinfo?(im)
Attached file pull request
Hi John, Please help to review the patch. Thanks
Attachment #8518617 - Flags: review?(im)
Comment on attachment 8518617 [details] [review] pull request It looks good to me. But we should wait for clear information about why others will fail with this test. IIRC, we don't run the unit tests which is not built into profile folder. If this correct, the tests of smart-home only run at TV build. And we don't have any CI runs with TV build. Ricky, I am not sure about which unit tests will be run at phone build. Do we run the tests under TV build? BTW, this is for Kevin: We use app's build script do the magic like webapps-shared.js does. We had created a tv_build/tv_shared_helper.js. All apps who uses any thing in tv_shared should include this helper file in its build script, build/build.js. It just scans html/css files and copies the used files to app's build_stage folder.
Flags: needinfo?(ricky060709)
Attachment #8518617 - Flags: review?(im) → review+
So currently these tests are being run on taskcluster, and also fail when running on b2g desktop. I'm assuming that the problem is that the taskcluster is running them, and maybe it should not be?
Here are the errors, you can see this failing in the 'GU21' chunk: https://treeherder.allizom.org/ui/#/jobs?repo=gaia&revision=8fa4a3e5ed2db23e9f34e71a5fd0b364a99817a8
Test-agent doesn't concern profile folder. However, it tries to search whole gaia/ folder and find out those tests which match the path '*/test/unit/*' and '*_test.js'. So I saw GAIA_ALLAPPDIR is included 'tv_apps', it should run tv unit testing in Gu.
Flags: needinfo?(ricky060709)
Comment on attachment 8518617 [details] [review] pull request Hi all, I think we should disable tv_apps/ unit tests in all CI. But I'll like them to run locally somewhat easily. I rename the unit test folder name. Then it won't be include in dev_apps/test-agent/config.json
Attachment #8518617 - Flags: review?(ricky060709)
Attachment #8518617 - Flags: feedback?(kgrandon)
Comment on attachment 8518617 [details] [review] pull request It looks fine to me.
Attachment #8518617 - Flags: review?(ricky060709) → review+
Comment on attachment 8518617 [details] [review] pull request Seems like you have some reviews, so that's fine by me.
Attachment #8518617 - Flags: feedback?(kgrandon)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: