Skip to content

Adopt Electron 1.7.x #28582

Description

Currently blocked by: electron/electron#9696

Activity

  1. added
    plan-item
    on Jun 13, 2017
  2. Tyriar commented on Jul 17, 2017

    @Tyriar
    Contributor

    The --build arg is causing the issue on Windows. This:

    .\scripts\test.bat --build --reporter dot
    

    Calls %CODE% .\test\electron\index.js %* which passes --build to test\electron\index.js.

  3. Tyriar commented on Jul 18, 2017

    @Tyriar
    Contributor

    It may not work because out-build doesn't exist. I can repro when doing:

    npm run watch
    .\scripts\test.bat --build --reporter dot
    
  4. Tyriar commented on Jul 18, 2017

    @Tyriar
    Contributor

    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.

      image

    • 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.

  5. bpasero commented on Jul 18, 2017

    @bpasero
    ContributorAuthor

    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?

  6. Tyriar commented on Jul 18, 2017

    @Tyriar
    Contributor

    Benjamin Pasero (@bpasero) the output stops before any failures example output:

    
    (nothing, just line breaks)
    
    
    
    ......
    
    
    ............
    

    etc.

  7. bpasero commented on Jul 19, 2017

    @bpasero
    ContributorAuthor

    Daniel Imms (@Tyriar) does this reproduce with mocha tests (and the exact same node.js version that electron 1.7.4 uses) too?

  8. 11 remaining items

  9. removed this from the July 2017 milestone on Jul 28, 2017
  10. egamma commented on Jul 28, 2017

    @egamma
    Member

    Discussed with Kai Maetzel (@kieferrm) we will shift this to August.

  11. Tyriar commented on Aug 2, 2017

    @Tyriar
    Contributor

    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-81f83972da9328e55444850e3b36091e

  12. joaomoreno commented on Aug 8, 2017

    @joaomoreno
    Contributor

    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?

    image

    I also can't find the build where you had a 255 exit code.

  13. bpasero commented on Aug 12, 2017

    @bpasero
    ContributorAuthor

    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.

    image

    image

  14. Tyriar commented on Aug 14, 2017

    @Tyriar
    Contributor

    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

  15. Tyriar commented on Aug 17, 2017

    @Tyriar
    Contributor

    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.

  16. roblourens commented on Aug 17, 2017

    @roblourens
    Member

    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.

  17. Tyriar commented on Aug 17, 2017

    @Tyriar
    Contributor

    Will do

  18. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

on-testplanplan-item

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions