Skip to content

build: run node tests on CI - #19403

Merged
MarshallOfSound merged 6 commits into
masterfrom
node-tests
Jul 24, 2019
Merged

MarshallOfSound merged 6 commits into
masterfrom
node-tests

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

This PR does a few things

  • Runs the node.js test suite on our CI 🎉
  • Ignores all the node.js tests that are currently failing (around 300 / 3000)
  • Fixes an issue where ELECTRON_RUN_AS_NODE would not parse CLI flags correctly because the v8 isolate was initialized before SetFlagsFromCommandLine was called inside node::Init. A quick re-ordering fixed that issue 👍

Notes: ELECTRON_RUN_AS_NODE now correctly parses both node options and v8 flags. E.g. --expose_gc

@MarshallOfSound
MarshallOfSound requested a review from a team as a code owner July 23, 2019 18:44
Comment thread script/node-spec-runner.js Resolved
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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we rather set this up in the env?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 jkleinsc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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

@MarshallOfSound

Copy link
Copy Markdown
Member Author

@jkleinsc I did some tricks and now node failures are reported through Circle

image

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.
@MarshallOfSound
MarshallOfSound merged commit 6d83eaa into master Jul 24, 2019
@release-clerk

release-clerk Bot commented Jul 24, 2019

Copy link
Copy Markdown

Release Notes Persisted

ELECTRON_RUN_AS_NODE now correctly parses both node options and v8 flags. E.g. --expose_gc

@trop

trop Bot commented Sep 3, 2019

Copy link
Copy Markdown
Contributor

A maintainer has manually backported this PR to "6-0-x", please check out #20098

@trop trop Bot added the in-flight/6-0-x label Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants