Skip to content

Commit 4fa2aca

Browse files
committed
Merge
2 parents 285fa37 + 910dffe commit 4fa2aca

File tree

1,146 files changed

+14740
-7832
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,146 files changed

+14740
-7832
lines changed

.github/actions/get-msys2/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ runs:
3434
with:
3535
install: 'autoconf tar unzip zip make'
3636
path-type: minimal
37-
location: msys2
37+
location: ${{ runner.tool_cache }}/msys2
3838

3939
# We can't run bash until this is completed, so stick with pwsh
4040
- name: 'Set MSYS2 path'
4141
run: |
4242
# Prepend msys2/msys64/usr/bin to the PATH
43-
echo "$env:GITHUB_WORKSPACE/msys2/msys64/usr/bin" >> $env:GITHUB_PATH
43+
echo "$env:RUNNER_TOOL_CACHE/msys2/msys64/usr/bin" >> $env:GITHUB_PATH
4444
shell: pwsh

.github/workflows/build-linux.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -126,7 +126,6 @@ jobs:
126126
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
127127
--with-jtreg=${{ steps.jtreg.outputs.path }}
128128
--with-gtest=${{ steps.gtest.outputs.path }}
129-
--enable-jtreg-failure-handler
130129
--with-zlib=system
131130
--with-jmod-compress=zip-1
132131
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (

.github/workflows/build-macos.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -101,7 +101,6 @@ jobs:
101101
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
102102
--with-jtreg=${{ steps.jtreg.outputs.path }}
103103
--with-gtest=${{ steps.gtest.outputs.path }}
104-
--enable-jtreg-failure-handler
105104
--with-zlib=system
106105
--with-jmod-compress=zip-1
107106
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (

.github/workflows/build-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -114,7 +114,6 @@ jobs:
114114
--with-boot-jdk=${{ steps.bootjdk.outputs.path }}
115115
--with-jtreg=${{ steps.jtreg.outputs.path }}
116116
--with-gtest=${{ steps.gtest.outputs.path }}
117-
--enable-jtreg-failure-handler
118117
--with-msvc-toolset-version=${{ inputs.msvc-toolset-version }}
119118
--with-jmod-compress=zip-1
120119
${{ inputs.extra-conf-options }} ${{ inputs.configure-arguments }} || (
@@ -125,6 +124,7 @@ jobs:
125124
# We need a minimal PATH on Windows
126125
# Set PATH to "", so just GITHUB_PATH is included
127126
PATH: ''
127+
shell: env /usr/bin/bash --login -eo pipefail {0}
128128

129129
- name: 'Build'
130130
id: build

doc/testing.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,9 @@ <h4 id="repeat_count">REPEAT_COUNT</h4>
494494
<p>Repeat the tests up to a set number of times, stopping at first
495495
failure. This helps to reproduce intermittent test failures. Defaults to
496496
0.</p>
497+
<h4 id="report">REPORT</h4>
498+
<p>Use this report style when reporting test results (sent to JTReg as
499+
<code>-report</code>). Defaults to <code>files</code>.</p>
497500
<h3 id="gtest-keywords">Gtest keywords</h3>
498501
<h4 id="repeat">REPEAT</h4>
499502
<p>The number of times to repeat the tests

doc/testing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,11 @@ Repeat the tests up to a set number of times, stopping at first failure.
484484
This helps to reproduce intermittent test failures.
485485
Defaults to 0.
486486

487+
#### REPORT
488+
489+
Use this report style when reporting test results (sent to JTReg as `-report`).
490+
Defaults to `files`.
491+
487492
### Gtest keywords
488493

489494
#### REPEAT

make/RunTests.gmk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -196,11 +196,12 @@ $(eval $(call SetTestOpt,JAVA_OPTIONS,JTREG))
196196
$(eval $(call SetTestOpt,JOBS,JTREG))
197197
$(eval $(call SetTestOpt,TIMEOUT_FACTOR,JTREG))
198198
$(eval $(call SetTestOpt,FAILURE_HANDLER_TIMEOUT,JTREG))
199+
$(eval $(call SetTestOpt,REPORT,JTREG))
199200

200201
$(eval $(call ParseKeywordVariable, JTREG, \
201202
SINGLE_KEYWORDS := JOBS TIMEOUT_FACTOR FAILURE_HANDLER_TIMEOUT \
202203
TEST_MODE ASSERT VERBOSE RETAIN MAX_MEM RUN_PROBLEM_LISTS \
203-
RETRY_COUNT REPEAT_COUNT MAX_OUTPUT $(CUSTOM_JTREG_SINGLE_KEYWORDS), \
204+
RETRY_COUNT REPEAT_COUNT MAX_OUTPUT REPORT $(CUSTOM_JTREG_SINGLE_KEYWORDS), \
204205
STRING_KEYWORDS := OPTIONS JAVA_OPTIONS VM_OPTIONS KEYWORDS \
205206
EXTRA_PROBLEM_LISTS LAUNCHER_OPTIONS \
206207
$(CUSTOM_JTREG_STRING_KEYWORDS), \
@@ -745,6 +746,7 @@ define SetupRunJtregTestBody
745746
JTREG_RUN_PROBLEM_LISTS ?= false
746747
JTREG_RETRY_COUNT ?= 0
747748
JTREG_REPEAT_COUNT ?= 0
749+
JTREG_REPORT ?= files
748750

749751
ifneq ($$(JTREG_RETRY_COUNT), 0)
750752
ifneq ($$(JTREG_REPEAT_COUNT), 0)
@@ -857,6 +859,7 @@ define SetupRunJtregTestBody
857859
-dir:$$(JTREG_TOPDIR) \
858860
-reportDir:$$($1_TEST_RESULTS_DIR) \
859861
-workDir:$$($1_TEST_SUPPORT_DIR) \
862+
-report:$${JTREG_REPORT} \
860863
$$$${JTREG_STATUS} \
861864
$$(JTREG_OPTIONS) \
862865
$$(JTREG_FAILURE_HANDLER_OPTIONS) \

make/autoconf/basic.m4

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -101,6 +101,29 @@ AC_DEFUN_ONCE([BASIC_SETUP_PATHS],
101101
AUTOCONF_DIR=$TOPDIR/make/autoconf
102102
])
103103

104+
###############################################################################
105+
# Setup what kind of build environment type we have (CI or local developer)
106+
AC_DEFUN_ONCE([BASIC_SETUP_BUILD_ENV],
107+
[
108+
if test "x$CI" = "xtrue"; then
109+
DEFAULT_BUILD_ENV="ci"
110+
AC_MSG_NOTICE([CI environment variable set to $CI])
111+
else
112+
DEFAULT_BUILD_ENV="dev"
113+
fi
114+
115+
UTIL_ARG_WITH(NAME: build-env, TYPE: literal,
116+
RESULT: BUILD_ENV,
117+
VALID_VALUES: [auto dev ci], DEFAULT: auto,
118+
CHECKING_MSG: [for build environment type],
119+
DESC: [select build environment type (affects certain default values)],
120+
IF_AUTO: [
121+
RESULT=$DEFAULT_BUILD_ENV
122+
]
123+
)
124+
AC_SUBST(BUILD_ENV)
125+
])
126+
104127
###############################################################################
105128
# Evaluates platform specific overrides for devkit variables.
106129
# $1: Name of variable

make/autoconf/basic_tools.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -88,6 +88,7 @@ AC_DEFUN_ONCE([BASIC_SETUP_FUNDAMENTAL_TOOLS],
8888
UTIL_LOOKUP_PROGS(GIT, git)
8989
UTIL_LOOKUP_PROGS(NICE, nice)
9090
UTIL_LOOKUP_PROGS(READLINK, greadlink readlink)
91+
UTIL_LOOKUP_PROGS(WHOAMI, whoami)
9192
9293
# These are only needed on some platforms
9394
UTIL_LOOKUP_PROGS(PATHTOOL, cygpath wslpath)

make/autoconf/configure.ac

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2011, 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2011, 2023, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -86,6 +86,7 @@ PLATFORM_SETUP_OPENJDK_BUILD_AND_TARGET
8686

8787
# Continue setting up basic stuff. Most remaining code require fundamental tools.
8888
BASIC_SETUP_PATHS
89+
BASIC_SETUP_BUILD_ENV
8990

9091
# Check if it's a pure open build or if custom sources are to be used.
9192
JDKOPT_SETUP_OPEN_OR_CUSTOM
@@ -215,6 +216,9 @@ JDKOPT_SETUP_CODE_COVERAGE
215216
# AddressSanitizer
216217
JDKOPT_SETUP_ADDRESS_SANITIZER
217218

219+
# UndefinedBehaviorSanitizer
220+
JDKOPT_SETUP_UNDEFINED_BEHAVIOR_SANITIZER
221+
218222
###############################################################################
219223
#
220224
# Check dependencies for external and internal libraries.

0 commit comments

Comments
 (0)