Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
638a5c7
deps: update V8 to 9.2.230.21
targos Jul 20, 2021
4c23bab
build: reset embedder string to "-node.0"
targos Jul 20, 2021
7d8a1c7
deps: V8: un-cherry-pick bd019bd
refack Mar 27, 2019
6ed4a86
deps: V8: patch register-arm64.h
refack May 22, 2019
543332a
deps: V8: forward declaration of `Rtl*FunctionTable`
refack May 22, 2019
5a08ec7
deps: make v8.h compatible with VS2015
joaocgreis Nov 1, 2019
f025f24
deps: fix V8 build issue with inline methods
gengjiawen Oct 14, 2020
87333cf
deps: silence irrelevant V8 warnings
targos Jan 30, 2021
b91e49c
deps: silence irrelevant V8 warning
targos May 1, 2021
2c8be6d
tools: update V8 gypfiles for 9.2
targos Apr 11, 2021
512659e
src: use non-deprecated Symbol::Description
targos Apr 14, 2021
5a650f8
src: stop using deprecated v8::ApiObject
targos Apr 26, 2021
9a78845
test: update trace events test expectations
targos Apr 21, 2021
7aaa214
test: remove test-debug-args
targos Apr 26, 2021
dbe4a0b
test: ensure microtask queues are not automatically drained
jeisinger Apr 29, 2021
62349be
deps: V8: cherry-pick 3d24b3ab8af0
targos Jun 10, 2021
8ec3459
deps: V8: backport 71e8f8bb3c26
targos Jun 16, 2021
d518175
deps: V8: cherry-pick 986299250e6d
richardlau Jun 16, 2021
bc48c1e
deps: V8: cherry-pick a5cea1bfc38c
targos Jun 20, 2021
24078b2
deps: V8: cherry-pick 7ff6609a5385
targos Jun 20, 2021
7f7e8df
deps: V8: cherry-pick 53784bdb8f01
targos Jul 10, 2021
2cde0ab
deps: V8: cherry-pick 2b77ca200c56
targos Jul 10, 2021
fdaddab
deps: V8: cherry-pick 56fe020eec0c
targos Jul 10, 2021
dcb52a9
deps: V8: cherry-pick 3805a698f7b6
targos Jul 10, 2021
a47081b
deps: V8: cherry-pick 359d44df4cdd
targos Jul 10, 2021
bd01a54
deps: V8: backport 5c76da8ddcf8
targos Jul 10, 2021
3d4413b
tools: fetch googletest dependency for V8 CI
targos Jul 14, 2021
38c82dc
deps: make V8 9.2 abi-compatible with 9.0
targos Jul 20, 2021
2f4bb0e
deps: restore minimum ICU version to 68
targos Jul 20, 2021
0d09b3e
squash! deps: make V8 9.2 abi-compatible with 9.0
targos Jul 20, 2021
d06c730
squash! deps: make V8 9.2 abi-compatible with 9.0
targos Jul 20, 2021
6bb96dd
squash! deps: make V8 9.2 abi-compatible with 9.0
targos Jul 22, 2021
f9b7513
squash! deps: make V8 9.2 abi-compatible with 9.0
targos Jul 23, 2021
d171381
fixup! squash! deps: make V8 9.2 abi-compatible with 9.0
targos Jul 23, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deps: V8: un-cherry-pick bd019bd
Original commit message:

    [testrunner] delete ancient junit compatible format support

    Testrunner has ancient support for JUnit compatible XML output.

    This CL removes this old feature.

    R=mstarzinger@chromium.org,jgruber@chromium.org,jkummerow@chromium.org
    CC=​machenbach@chromium.org

    Bug: v8:8728
    Change-Id: I7e1beb011dbaec3aa1a27398a5c52abdd778eaf0
    Reviewed-on: https://chromium-review.googlesource.com/c/1430065
    Reviewed-by: Jakob Gruber <jgruber@chromium.org>
    Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
    Commit-Queue: Tamer Tas <tmrts@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#59045}

Refs: v8/v8@bd019bd

PR-URL: #32116
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
refack authored and targos committed Jul 20, 2021
commit 7d8a1c7350737a108d6f2df12a8ede4c79d9437b
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.0',
'v8_embedder_string': '-node.1',

##### V8 defaults for Node.js #####

Expand Down
6 changes: 6 additions & 0 deletions deps/v8/tools/testrunner/base_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ def _add_parser_default_options(self, parser):
help="Path to a file for storing json results.")
parser.add_option('--slow-tests-cutoff', type="int", default=100,
help='Collect N slowest tests')
parser.add_option("--junitout", help="File name of the JUnit output")
parser.add_option("--junittestsuite", default="v8tests",
help="The testsuite name in the JUnit output file")
parser.add_option("--exit-after-n-failures", type="int", default=100,
help="Exit after the first N failures instead of "
"running all tests. Pass 0 to disable this feature.")
Expand Down Expand Up @@ -798,6 +801,9 @@ def _get_shard_info(self, options):

def _create_progress_indicators(self, test_count, options):
procs = [PROGRESS_INDICATORS[options.progress]()]
if options.junitout:
procs.append(progress.JUnitTestProgressIndicator(options.junitout,
options.junittestsuite))
if options.json_test_results:
procs.append(progress.JsonTestProgressIndicator(self.framework_name))

Expand Down
49 changes: 49 additions & 0 deletions deps/v8/tools/testrunner/local/junit_output.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2013 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


import xml.etree.ElementTree as xml


class JUnitTestOutput:
def __init__(self, test_suite_name):
self.root = xml.Element("testsuite")
self.root.attrib["name"] = test_suite_name

def HasRunTest(self, test_name, test_cmd, test_duration, test_failure):
testCaseElement = xml.Element("testcase")
testCaseElement.attrib["name"] = test_name
testCaseElement.attrib["cmd"] = test_cmd
testCaseElement.attrib["time"] = str(round(test_duration, 3))
if len(test_failure):
failureElement = xml.Element("failure")
failureElement.text = test_failure
testCaseElement.append(failureElement)
self.root.append(testCaseElement)

def FinishAndWrite(self, f):
xml.ElementTree(self.root).write(f, "UTF-8")
40 changes: 40 additions & 0 deletions deps/v8/tools/testrunner/testproc/progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

from . import base
from . import util
from ..local import junit_output


def print_failure_header(test):
Expand Down Expand Up @@ -348,6 +349,45 @@ def _clear_line(self, last_length):
print(("\r" + (" " * last_length) + "\r"), end='')


class JUnitTestProgressIndicator(ProgressIndicator):
def __init__(self, junitout, junittestsuite):
super(JUnitTestProgressIndicator, self).__init__()
self._requirement = base.DROP_PASS_STDOUT

self.outputter = junit_output.JUnitTestOutput(junittestsuite)
if junitout:
self.outfile = open(junitout, "w")
else:
self.outfile = sys.stdout

def _on_result_for(self, test, result):
# TODO(majeski): Support for dummy/grouped results
fail_text = ""
output = result.output
if result.has_unexpected_output:
stdout = output.stdout.strip()
if len(stdout):
fail_text += "stdout:\n%s\n" % stdout
stderr = output.stderr.strip()
if len(stderr):
fail_text += "stderr:\n%s\n" % stderr
fail_text += "Command: %s" % result.cmd.to_string()
if output.HasCrashed():
fail_text += "exit code: %d\n--- CRASHED ---" % output.exit_code
if output.HasTimedOut():
fail_text += "--- TIMEOUT ---"
self.outputter.HasRunTest(
test_name=str(test),
test_cmd=result.cmd.to_string(relative=True),
test_duration=output.duration,
test_failure=fail_text)

def finished(self):
self.outputter.FinishAndWrite(self.outfile)
if self.outfile != sys.stdout:
self.outfile.close()


class JsonTestProgressIndicator(ProgressIndicator):
def __init__(self, framework_name):
super(JsonTestProgressIndicator, self).__init__()
Expand Down