Repository navigation
build: run node tests on CI - #19403
Conversation
| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
| From: Samuel Attard <[email protected]> | ||
| Date: Tue, 23 Jul 2019 11:36:48 -0700 | ||
| Subject: chore: handle default_configuration not being set in the electron env |
There was a problem hiding this comment.
should we rather set this up in the env?
There was a problem hiding this comment.
mmaayybbeeee but our config.gypi doesn't currently support dynamic changes, happy to raise a TODO though to update our GN files to generate the config.gypi 😆
jkleinsc
left a comment
There was a problem hiding this comment.
@MarshallOfSound do you know if the node tests support test output to file? If so we should save the test results to CircleCI:
https://circleci.com/docs/2.0/collect-test-data
|
@jkleinsc I did some tricks and now node failures are reported through Circle |
This re-orders our node clean up so that we free the environment before the task runner is cleaned up as node uses the task runner during clean up. It also calls WaitForDisconnect() to ensure that inspector agents are notified that the context is going down.
5018934 to
5a1cc01
Compare
5a1cc01 to
17cd76b
Compare
|
Release Notes Persisted
|
|
A maintainer has manually backported this PR to "6-0-x", please check out #20098 |

This PR does a few things
ELECTRON_RUN_AS_NODEwould not parse CLI flags correctly because the v8 isolate was initialized before SetFlagsFromCommandLine was called insidenode::Init. A quick re-ordering fixed that issue 👍Notes:
ELECTRON_RUN_AS_NODEnow correctly parses both node options and v8 flags. E.g.--expose_gc