I suggest we use a newer version of B2G Desktop in Gaia's build system. Currently it's: B2G_SDK_VERSION := 34.0a1 B2G_SDK_DATE := 2014/08/2014-08-12-04-02-01
Attachment #8512093 - Flags: review?(21)
Kevin, Julien -- do you have any ideas why Gij in https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=936ea60fbb91 might be failing?
I don't know Gij enough :/ But I also think b2g_sdk is not what is used to run the integration tests... I think it's used only to run the build scripts. but I don't really know actually :/
Thanks for chiming in. I too think b2g_sdk is only used for build scripts, which is why I need it for bug 994357 (which uses <template>'s Document Fragments which recently got a fix in mozilla-central). I'll keep investigating.
Comment on attachment 8512093 [details] [diff] [review] B2G_SDK_VERSION := 36.0a1 Review of attachment 8512093 [details] [diff] [review]: ----------------------------------------------------------------- Going to re-assign this since Vivien is out for a bit. Not sure who the best person to review this is, but I think Ricky should perhaps do it as a new peer of the build system?
Attachment #8512093 - Flags: review?(21) → review?(ricky060709)
Attachment #8512093 - Flags: review?(ricky060709) → review-
I think that it may relate to loader while import 'resource://gre/modules/commonjs/toolkit/loader.js'. However, I have no idea why it breaks on mac but work fine on windows. :( Alex, do you have any idea?
Flags: needinfo?(ricky060709) → needinfo?(poirot.alex)
Error comes from Cu.import("resource://gre/modules/XPCOMUtils.jsm"); at line 5 in DirectoryProvider.js which is beautified by http://jsbeautifier.org/. I even try it on latest b2g build but there is same problem here.
What's the next step here? Who can help with this? It's becoming important as it blocks us from landing DOM Overlays and we'd prefer to land it early in 2.2 cycle.
I'm going to investigate this upgrade problem on OS X.
Assignee: nobody → ricky060709
Status: NEW → ASSIGNED
Problem comes from: const Cu = Components.utils; Cu.import("resource://gre/modules/XPCOMUtils.jsm"); Cu.import("resource://gre/modules/Services.jsm"); NS_ERROR_FILE_NOT_FOUND occurred in Cu.import(...) whichever modules in resource://gre/modules/* on Mac. I'm sure both XPCOMUtils.jsm and Services.jsm between b2g 34.0a1 and b2g 36.0a1 are same. Still cannot find the root cause. Alex, do you know who is good at this part can help us?
(In reply to Ricky Chien [:rickychien] from comment #13) > Problem comes from: > > const Cu = Components.utils; > Cu.import("resource://gre/modules/XPCOMUtils.jsm"); > Cu.import("resource://gre/modules/Services.jsm"); This code is in DirectoryProvider.js
B2G broke on Mac since 2014/09/2014-09-30-16-02-07 build .  http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/2014/09/2014-09-30-16-02-07-mozilla-central/
Hi Stephen, I saw there some commits relate to Mac so that caused failures when running |make| on Mac (see also comment 13). This regression occur on 2014/09/2014-09-30-16-02-07 b2g_sdk 35.0a1 and I find out these changesets in  could be the protential risk to this issue. Do you have any idea about that? Or maybe someone can help with us? Thanks!  http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=7c24470b6b3a&tochange=2ae57957e4bb
The meaning of the GreD (aka gre) has changed, i.e. it's now pointing at Contents/Resources. I suspect that B2G.app still has all its resources files under Contents/MacOS, which is why the imports can't be resolved. Personally, I'd recommend updating the way B2G.app is packaged, as this will be required to sign with Apple's v2 signatures (I'm assuming that's something we'd want to do eventually). See bug 1046906 and dependent bugs to see what was done for Firefox Desktop. A temporary workaround might be to make imports read from GreBinD (which points to Contents/MacOS on Mac), but this will prevent B2G.app from being signed with Apple v2 signatures.
How to specify GreBinD? I tried Cu.import("resource://gre/bin/modules/XPCOMUtils.jsm"); but in vain. I move Contents/MacOS/modules to Contents/Resources/modules and it works, even though b2g crash in the end. I think that it's possible that I miss something, but in my experiment has proved your right. There are so many utils.import() which point to GreD currently. Are there any bug dealing with updating B2G.app package now? I think we should set dependency for it.
(In reply to Ricky Chien [:rickychien] from comment #18) > I move Contents/MacOS/modules to Contents/Resources/modules and it works, > even though b2g crash in the end. I think that it's possible that I miss > something, but in my experiment has proved your right. After moving modules/, I also move Contents/MacOS/res to Contents/Resources/res can work properly.
(In reply to Ricky Chien [:rickychien] from comment #18) > How to specify GreBinD? I tried > Cu.import("resource://gre/bin/modules/XPCOMUtils.jsm"); but in vain. Right, this won't work since conceptually, you're actually looking for a path equivalent to "resource://gre/../MacOS/modules/XPCOMUtils.jsm". I'm pretty sure this wouldn't work though, due to the relative path. Ideally, something like |Cu.import("resource://greBinD/modules/XPCOMUtils.jsm");| would work, but greBinD may not be defined for the lookup in Components.utils.import. > There are so many utils.import() which point to GreD currently. Since Components.utils.import is really used to load *resources*, this is actually correct. Like I mentioned earlier, the proper fix would be to move the resources to Contents/Resources, but a workaround may be to find a way to load resources out of Contents/MacOS. > Are there any bug dealing with updating B2G.app package now? I think we > should set dependency for it. I'm not aware of such a bug. If you do file one, please CC me on it. I have virtually no experience with B2G, but I'm happy to help out or provide feedback wherever I can.
Just FYI, 8 days ago bug 1097450 landed and it depends on Gecko 36 (mozSettings.get API change). It's currently impossible to launch integration tests on desktop until this bug is fixed.
On Desktop on MacOS X, you mean?
Not really understand you question. :) Problem arose from B2G desktop 36 only on Mac OS X.
Has there been any progress on this lately? We're still using B2G SDK 34 from August 2014 on master :( I don't have a Mac to test on; can the error from comment 6 be reproduced also with Gecko 38?
This is mainly blocked on bug 1101331.
I just tested it and unfortunately the problem still exist with Gecko 38.0a1.
Summary: Upgrade to B2G Desktop 36 → Upgrade to B2G Desktop 39
In case of it breaks testing again, push to try for verification https://treeherder.mozilla.org/#/jobs?repo=try&revision=c2d2a7205946 Cross fingers and wait for try green.
Landed in master: https://github.com/mozilla-b2g/gaia/commit/c278cec4edaa6dd7a01c703c7109d51e0fda9257
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
https://treeherder.mozilla.org/logviewer.html#?job_id=1462099&repo=b2g-inbound 06:17:47 INFO - You rock! 1 errors has been removed from apps/system/style/devtools/devtools_auth.css. Please update build/csslint/xfail.list with the updated number of errors (0) or remove the file from build/csslint/xfail.list Follow-up Linter fix: Master: https://github.com/mozilla-b2g/gaia/commit/4c38360375ae2692ffc4e644bd3f56a2bf58c002
Ricky, I think the error didn't show up in the try because you need to remove the git_revision property when you specify a branch.
OMG, you guys fixed this. I go on vacation for a week and when I come back this morning, you totally make my day. Thanks!
You need to log in before you can comment on or make changes to this bug.