You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After spending quite a bit of time looking into this, I'm pretty stumped on why this is failing. Benjamin Pasero (@bpasero)João Moreno (@joaomoreno) any help would be great as I'm not sure where to go from here.
Here's what I've found so far:
I can reproduce using the following:
git clean -xfd
scripts\npm.bat i
npm run gulp -- --max_old_space_size=4096 "vscode-win32-ia32-min"
scripts\test.bat --build --reporter dot
Unit tests on Windows fail at random times
Passing --debug shows the window and all tests complete, with KeyboardMapper tests failing which I frequently when running unit tests on Windows.
Listening to the IPCRunner.emit in addition to printing test names seems to stop at random spots, telling me that this isn't related to a single test. Here are the end of some logs from test runs:
emit test end
test start Types isArray
emit test
emit pass
test end Types isArray
emit test end
test start Types isString
emit test
emit pass
test end Types isString
test start EventEmitter add 1 listener, remove it, emit event
emit test
emit hook
emit hook end
emit pass
test end EventEmitter add 1 listener, remove it, emit event
emit test end
emit hook
emit hook end
emit start
emit suite
emit suite
test start Browsers all
emit test
emit pass
test end Browsers all
emit test end
emit suite end
emit suite
The test runner pauses for 2-5 seconds after a the last output and then exits.
Daniel Imms (@Tyriar) I just tried to reproduce on Windows, for me the tests are looking all OK. Do you see the test failures on the command line as output?
When I log in to the build machine and try to run scripts\test.bat, the unit tests don't even run at all. All I see is two Code.exe processes stuck. Do you see this too?
I also can't find the build where you had a 255 exit code.
Daniel Imms (@Tyriar)roblourens interestingly I just noticed that Electron marks 1.7.5 as "latest release" while 1.7.4 is still a pre-release. We should consider being on the latest official release if possible imho.
João Moreno (@joaomoreno) well I've never been able to log into the machine, I added an echo %errorlevel% and it was printing 255 after the tests. It looks like VSTS has discarded the build as it wasn't marked as retain. If the Windows builds succeed after this line is removed then all is well:
Update: I have Electron 1.7.5 on the branch tyriar/electron-1-7-5, I'm running into build issues on VSTS/macOS though which appear to be related to using the new file watcher in the build?
2017-08-17T02:32:40.3193210Z [04:32:40] [i18n] No localized message found for key relativeIconUrlRequiresHttpsRepository
2017-08-17T02:32:40.3205310Z [04:32:40] [i18n] No localized message found for key relativeBadgeUrlRequiresHttpsRepository
2017-08-17T02:32:40.3217850Z events.js:163
2017-08-17T02:32:40.3234730Z throw er; // Unhandled 'error' event
2017-08-17T02:32:40.3251300Z ^
2017-08-17T02:32:40.3256600Z
2017-08-17T02:32:40.3274350Z Error: ENFILE: file table overflow, open '/Users/code/tfs/agent3/_work/2/s/extensions/json/server/node_modules/ms/readme.md'
2017-08-17T02:32:40.3644680Z
2017-08-17T02:32:40.3724250Z npm ERR! Darwin 15.3.0
2017-08-17T02:32:40.3742940Z npm ERR! argv "/Users/code/.nvm/versions/node/v7.10.0/bin/node" "/Users/code/.nvm/versions/node/v7.10.0/bin/npm" "run" "gulp" "--" "vscode-darwin-min" "upload-vscode-sourcemaps"
2017-08-17T02:32:40.3763770Z npm ERR! node v7.10.0
2017-08-17T02:32:40.3775140Z npm ERR! npm v4.2.0
2017-08-17T02:32:40.3786550Z npm ERR! code ELIFECYCLE
2017-08-17T02:32:40.3798160Z npm ERR! errno 1
2017-08-17T02:32:40.3816040Z npm ERR! [email protected] gulp: `gulp --max_old_space_size=4096 "vscode-darwin-min" "upload-vscode-sourcemaps"`
2017-08-17T02:32:40.3835260Z npm ERR! Exit status 1
2017-08-17T02:32:40.3847860Z npm ERR!
2017-08-17T02:32:40.3867020Z npm ERR! Failed at the [email protected] gulp script 'gulp --max_old_space_size=4096 "vscode-darwin-min" "upload-vscode-sourcemaps"'.
2017-08-17T02:32:40.3955810Z npm ERR! Make sure you have the latest version of node.js and npm installed.
2017-08-17T02:32:40.3985600Z npm ERR! If you do, this is most likely a problem with the code-oss-dev package,
2017-08-17T02:32:40.4019720Z npm ERR! not with npm itself.
2017-08-17T02:32:40.4042080Z npm ERR! Tell the author that this fails on your system:
2017-08-17T02:32:40.4089040Z npm ERR! gulp --max_old_space_size=4096 "vscode-darwin-min" "upload-vscode-sourcemaps"
2017-08-17T02:32:40.4136260Z npm ERR! You can get information on how to open an issue for this project with:
2017-08-17T02:32:40.4153810Z npm ERR! npm bugs code-oss-dev
2017-08-17T02:32:40.4187170Z npm ERR! Or if that isn't available, you can get their info via:
2017-08-17T02:32:40.4218010Z npm ERR! npm owner ls code-oss-dev
2017-08-17T02:32:40.4246120Z npm ERR! There is likely additional logging output above.
2017-08-17T02:32:40.4256410Z
2017-08-17T02:32:40.4267660Z npm ERR! Please include the following file with any support request:
2017-08-17T02:32:40.4314550Z npm ERR! /Users/code/tfs/agent3/_work/npm-cache/_logs/2017-08-17T02_32_40_412Z-debug.log
Not sure why an updated Electron would make this error occur yet though.
Activity
Tyriar commentedon Jul 17, 2017
Branch is at https://github.com/Microsoft/vscode/tree/electron/1.7.4
Tyriar commentedon Jul 17, 2017
The
--buildarg is causing the issue on Windows. This:Calls
%CODE% .\test\electron\index.js %*which passes--buildtotest\electron\index.js.Tyriar commentedon Jul 18, 2017
It may not work because out-build doesn't exist. I can repro when doing:
Tyriar commentedon Jul 18, 2017
After spending quite a bit of time looking into this, I'm pretty stumped on why this is failing. Benjamin Pasero (@bpasero) João Moreno (@joaomoreno) any help would be great as I'm not sure where to go from here.
Here's what I've found so far:
I can reproduce using the following:
Unit tests on Windows fail at random times
Passing
--debugshows the window and all tests complete, with KeyboardMapper tests failing which I frequently when running unit tests on Windows.Listening to the
IPCRunner.emitin addition to printing test names seems to stop at random spots, telling me that this isn't related to a single test. Here are the end of some logs from test runs:The test runner pauses for 2-5 seconds after a the last output and then exits.
bpasero commentedon Jul 18, 2017
Daniel Imms (@Tyriar) I just tried to reproduce on Windows, for me the tests are looking all OK. Do you see the test failures on the command line as output?
Tyriar commentedon Jul 18, 2017
Benjamin Pasero (@bpasero) the output stops before any failures example output:
etc.
bpasero commentedon Jul 19, 2017
Daniel Imms (@Tyriar) does this reproduce with mocha tests (and the exact same node.js version that electron 1.7.4 uses) too?
11 remaining items
egamma commentedon Jul 28, 2017
Discussed with Kai Maetzel (@kieferrm) we will shift this to August.
Tyriar commentedon Aug 2, 2017
João Moreno (@joaomoreno) could you look into the exit code issue when you get a chance? We're seeing VSTS giving an exit code of 255 even though
app.exit(0)appears to be getting called. The change for that is here: https://github.com/Microsoft/vscode/pull/31942/files#diff-81f83972da9328e55444850e3b36091ejoaomoreno commentedon Aug 8, 2017
When I log in to the build machine and try to run
scripts\test.bat, the unit tests don't even run at all. All I see is two Code.exe processes stuck. Do you see this too?I also can't find the build where you had a 255 exit code.
bpasero commentedon Aug 12, 2017
Daniel Imms (@Tyriar) roblourens interestingly I just noticed that Electron marks 1.7.5 as "latest release" while 1.7.4 is still a pre-release. We should consider being on the latest official release if possible imho.
Tyriar commentedon Aug 14, 2017
João Moreno (@joaomoreno) well I've never been able to log into the machine, I added an echo %errorlevel% and it was printing 255 after the tests. It looks like VSTS has discarded the build as it wasn't marked as retain. If the Windows builds succeed after this line is removed then all is well:
https://github.com/Microsoft/vscode/blob/1531c8d2f4610afb6f8575bc78d1083a5cb478dd/scripts/test.bat#L32
Tyriar commentedon Aug 17, 2017
Update: I have Electron 1.7.5 on the branch
tyriar/electron-1-7-5, I'm running into build issues on VSTS/macOS though which appear to be related to using the new file watcher in the build?Not sure why an updated Electron would make this error occur yet though.
roblourens commentedon Aug 17, 2017
Daniel Imms (@Tyriar) We got that error in the official smoke tests and Andre said in Slack that the Mac build machine was messed up. Try it again.
Tyriar commentedon Aug 17, 2017
Will do