Closed Bug 1007689 Opened 11 years ago Closed 10 years ago

Intermittent build failure: build/utils-xpc.js :: getFileContent :: line 63

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ehsan.akhgari, Assigned: rickychien)

Details

(Keywords: intermittent-failure)

https://tbpl.mozilla.org/php/getParsedLog.php?id=39280425&tree=Try https://tbpl.mozilla.org/?tree=Try&rev=318e0c4deab5 07:18:17 INFO - clear callscreen in build_stage 07:18:17 INFO - [multilocale] App "search" doesn't have app manifest localization. A .properties file is missing at following path: /builds/slave/b2g_try_emu_dep-00000000000000/build/gaia-l10n/bg/apps/search/manifest.properties 07:18:17 INFO - [multilocale] App "search" doesn't have app manifest localization. A .properties file is missing at following path: /builds/slave/b2g_try_emu_dep-00000000000000/build/gaia-l10n/el/apps/search/manifest.properties 07:18:17 INFO - [multilocale] App "search" doesn't have app manifest localization. A .properties file is missing at following path: /builds/slave/b2g_try_emu_dep-00000000000000/build/gaia-l10n/es/apps/search/manifest.properties 07:18:17 INFO - clear video in build_stage 07:18:17 INFO - [multilocale] App "search" doesn't have app manifest localization. A .properties file is missing at following path: /builds/slave/b2g_try_emu_dep-00000000000000/build/gaia-l10n/pt-BR/apps/search/manifest.properties 07:18:17 INFO - clear sharedtest in build_stage 07:18:17 INFO - clear search in build_stage 07:18:17 INFO - clear browser in build_stage 07:18:17 INFO - clear wallpaper in build_stage 07:18:17 INFO - clear camera in build_stage 07:18:17 INFO - Invalid JSON file : /builds/slave/b2g_try_emu_dep-00000000000000/build/gaia/build_stage/camera/manifest.webapp 07:18:17 INFO - Exception: Error: -*- build/utils.js: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFileInputStream.init]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: resource://gre/modules/commonjs/toolkit/loader.js -> file:///builds/slave/b2g_try_emu_dep-00000000000000/build/gaia/build/utils-xpc.js :: getFileContent :: line 63" data: no] 07:18:17 INFO - file not found: /builds/slave/b2g_try_emu_dep-00000000000000/build/gaia/build_stage/camera/manifest.webapp 07:18:17 INFO - getFileContent@resource://gre/modules/commonjs/toolkit/loader.js -> file:///builds/slave/b2g_try_emu_dep-00000000000000/build/gaia/build/utils-xpc.js:79:5 07:18:17 INFO - getJSON@resource://gre/modules/commonjs/toolkit/loader.js -> file:///builds/slave/b2g_try_emu_dep-00000000000000/build/gaia/build/utils-xpc.js:146:1 07:18:17 INFO - localizeManifest@resource://gre/modules/commonjs/toolkit/loader.js -> file:///builds/slave/b2g_try_emu_dep-00000000000000/build/gaia/build/multilocale.js:315:1 07:18:17 INFO - fillAppManifest@resource://gre/modules/commonjs/toolkit/loader.js -> file:///builds/slave/b2g_try_emu_dep-00000000000000/build/gaia/build/webapp-manifests.js:117:1 07:18:17 INFO - execute/<@resource://gre/modules/commonjs/toolkit/loader.js -> file:///builds/slave/b2g_try_emu_dep-00000000000000/build/gaia/build/webapp-manifests.js:325:7 07:18:17 INFO - execute@resource://gre/modules/commonjs/toolkit/loader.js -> file:///builds/slave/b2g_try_emu_dep-00000000000000/build/gaia/build/webapp-manifests.js:321:3 07:18:17 INFO - CommonjsRunner.prototype.run@/builds/slave/b2g_try_emu_dep-00000000000000/build/gaia/build/xpcshell-commonjs.js:69:5 07:18:17 INFO - run@/builds/slave/b2g_try_emu_dep-00000000000000/build/gaia/build/xpcshell-commonjs.js:84:3 07:18:17 INFO - @-e:1:1 07:18:17 INFO - clear ringtones in build_stage 07:18:17 INFO - clear system in build_stage 07:18:17 INFO - clear wappush in build_stage 07:18:17 INFO - clear clock in build_stage 07:18:17 INFO - run-js-command gaia/test-agent-bootstrap 07:18:17 INFO - clear settings in build_stage 07:18:17 INFO - clear music in build_stage 07:18:17 INFO - clear fl in build_stage 07:18:17 ERROR - make[1]: *** [webapp-manifests] Error 3 07:18:17 INFO - make[1]: *** Waiting for unfinished jobs....
like a dependency bug but I think the dependency for makefile rule is right.
Hi Ehsan, it looks good in tbpl now. I haven't found related fail report today.
Flags: needinfo?(ehsan)
(In reply to George Duan [:gduan] [:喬智] from comment #2) > Hi Ehsan, > it looks good in tbpl now. I haven't found related fail report today. Yes, which is why I marked the bug as an intermittent-failure, not a permanent one.
Flags: needinfo?(ehsan)
Summary: Intermittent build failure: Exception: Error: -*- build/utils.js: [Exception... "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFileInputStream.init]" nsresult: "0x80520012 (NS_ERROR_FILE_NOT_FOUND)" location: "JS frame :: re → Intermittent build failure: build/utils-xpc.js :: getFileContent :: line 63
Issue relates to Ci.nsIFileInputStream in getFileContent, so I'm going to replace our file I/O API from 'ozilla.org/network/file-input-stream' [1] to OS.File [2]. [1] https://developer.mozilla.org/en-US/Add-ons/Code_snippets/File_I_O#Line_by_line [2] https://developer.mozilla.org/en-US/docs/JavaScript_OS.File/OS.File_for_the_main_thread
Assignee: nobody → ricky060709
Since File I/O isn't compatible with OS.File, it's hard to convert to OS.File. George told me that File I/O is a stable API for a few years which shouldn't have such problems. Furthermore, I think that issue has been solved in master now. For instance, according to comment 28 ~ comment 32 on 11/17, 5 failed builds came from my build-related commit [1]. So I'm sure that failure isn't an intermittent failure. (As well as comment 27) I stop tracking in previous comment because I speculate that someone accidentally landed build-related failures in b2g-inbound. In a word, I think it's stable almost 4 months and we still can wait for a few weeks to see robot report. Then fix this issue if robot don't report again. [1] https://treeherder.mozilla.org/ui/#/jobs?repo=b2g-inbound&revision=43d6148d629f
Need info from George. If you think my analysis on comment 35 is reasonable, we should resolve this bug.
Flags: needinfo?(gduan)
I think it makes sense. Close it.
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: needinfo?(gduan)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.