Skip to content

Commit 81085d4

Browse files
authored
Merge pull request #5 from openjdk/master
updating to openjdk/jdk
2 parents 69481fc + 41ee582 commit 81085d4

File tree

23,852 files changed

+1745735
-1345926
lines changed

Some content is hidden

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

23,852 files changed

+1745735
-1345926
lines changed

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
11
* -text
2+
*.java diff=java
3+
*.c diff=cpp
4+
*.h diff=cpp
5+
*.cpp diff=cpp
6+
*.hpp diff=cpp
7+
*.md diff=markdown
8+
*.sh diff=bash
9+
*.html diff=html
10+
*.css diff=css

.github/actions/config/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ runs:
4141
id: read-config
4242
run: |
4343
# Extract value from configuration file
44-
value="$(grep -h ${{ inputs.var }}= make/conf/github-actions.conf | cut -d '=' -f 2-)"
44+
value="$(grep -h '^${{ inputs.var }}'= make/conf/github-actions.conf | cut -d '=' -f 2-)"
4545
echo "value=$value" >> $GITHUB_OUTPUT
4646
shell: bash

.github/actions/do-build/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ runs:
6666
shell: bash
6767

6868
- name: 'Upload build logs'
69-
uses: actions/upload-artifact@v3
69+
uses: actions/upload-artifact@v4
7070
with:
7171
name: failure-logs-${{ inputs.platform }}${{ inputs.debug-suffix }}
7272
path: failure-logs
7373
if: steps.check.outputs.failure == 'true'
7474

7575
# This is the best way I found to abort the job with an error message
7676
- name: 'Notify about build failures'
77-
uses: actions/github-script@v6
77+
uses: actions/github-script@v7
7878
with:
7979
script: core.setFailed('Build failed. See summary for details.')
8080
if: steps.check.outputs.failure == 'true'

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

Lines changed: 4 additions & 4 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
@@ -65,7 +65,7 @@ runs:
6565

6666
- name: 'Check cache for BootJDK'
6767
id: get-cached-bootjdk
68-
uses: actions/cache@v3
68+
uses: actions/cache@v4
6969
with:
7070
path: bootjdk/jdk
7171
key: boot-jdk-${{ inputs.platform }}-${{ steps.sha256.outputs.value }}
@@ -104,6 +104,6 @@ runs:
104104
- name: 'Export path to where BootJDK is installed'
105105
id: path-name
106106
run: |
107-
# Export the path
108-
echo 'path=bootjdk/jdk' >> $GITHUB_OUTPUT
107+
# Export the absolute path
108+
echo "path=`pwd`/bootjdk/jdk" >> $GITHUB_OUTPUT
109109
shell: bash

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ runs:
4848
steps:
4949
- name: 'Download bundles artifact'
5050
id: download-bundles
51-
uses: actions/download-artifact@v3
51+
uses: actions/download-artifact@v4
5252
with:
5353
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
5454
path: bundles
5555
continue-on-error: true
5656

5757
- name: 'Download bundles artifact (retry)'
58-
uses: actions/download-artifact@v3
58+
uses: actions/download-artifact@v4
5959
with:
6060
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
6161
path: bundles

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ runs:
4040
var: GTEST_VERSION
4141

4242
- name: 'Checkout GTest source'
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444
with:
4545
repository: google/googletest
4646
ref: 'v${{ steps.version.outputs.value }}'

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

Lines changed: 10 additions & 4 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) 2023, 2024, 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
@@ -41,13 +41,13 @@ runs:
4141

4242
- name: 'Check cache for JTReg'
4343
id: get-cached-jtreg
44-
uses: actions/cache@v3
44+
uses: actions/cache@v4
4545
with:
4646
path: jtreg/installed
4747
key: jtreg-${{ steps.version.outputs.value }}
4848

4949
- name: 'Checkout the JTReg source'
50-
uses: actions/checkout@v3
50+
uses: actions/checkout@v4
5151
with:
5252
repository: openjdk/jtreg
5353
ref: jtreg-${{ steps.version.outputs.value }}
@@ -56,8 +56,14 @@ runs:
5656

5757
- name: 'Build JTReg'
5858
run: |
59+
# If runner architecture is x64 set JAVA_HOME_17_X64 otherwise set to JAVA_HOME_17_arm64
60+
if [[ '${{ runner.arch }}' == 'X64' ]]; then
61+
JDK="$JAVA_HOME_17_X64"
62+
else
63+
JDK="$JAVA_HOME_17_arm64"
64+
fi
5965
# Build JTReg and move files to the proper locations
60-
bash make/build.sh --jdk "$JAVA_HOME_11_X64"
66+
bash make/build.sh --jdk "$JDK"
6167
mkdir ../installed
6268
mv build/images/jtreg/* ../installed
6369
working-directory: jtreg/src

.github/actions/get-msys2/action.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
@@ -30,7 +30,7 @@ runs:
3030
using: composite
3131
steps:
3232
- name: 'Install MSYS2'
33-
uses: msys2/setup-msys2@v2
33+
uses: msys2/setup-msys2@v2.22.0
3434
with:
3535
install: 'autoconf tar unzip zip make'
3636
path-type: minimal

.github/actions/upload-bundles/action.yml

Lines changed: 7 additions & 3 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, 2024, 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
@@ -45,6 +45,7 @@ runs:
4545
jdk_bundle_tar_gz="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
4646
symbols_bundle="$(ls build/*/bundles/jdk-*_bin${{ inputs.debug-suffix }}-symbols.tar.gz 2> /dev/null || true)"
4747
tests_bundle="$(ls build/*/bundles/jdk-*_bin-tests${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
48+
static_libs_bundle="$(ls build/*/bundles/jdk-*_bin-static-libs${{ inputs.debug-suffix }}.tar.gz 2> /dev/null || true)"
4849
4950
mkdir bundles
5051
@@ -60,16 +61,19 @@ runs:
6061
if [[ "$tests_bundle" != "" ]]; then
6162
mv "$tests_bundle" "bundles/tests-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
6263
fi
64+
if [[ "$static_libs_bundle" != "" ]]; then
65+
mv "$static_libs_bundle" "bundles/static-libs-${{ inputs.platform }}${{ inputs.debug-suffix }}.tar.gz"
66+
fi
6367
64-
if [[ "$jdk_bundle_zip$jdk_bundle_tar_gz$symbols_bundle$tests_bundle" != "" ]]; then
68+
if [[ "$jdk_bundle_zip$jdk_bundle_tar_gz$symbols_bundle$tests_bundle$static_libs_bundle" != "" ]]; then
6569
echo 'bundles-found=true' >> $GITHUB_OUTPUT
6670
else
6771
echo 'bundles-found=false' >> $GITHUB_OUTPUT
6872
fi
6973
shell: bash
7074

7175
- name: 'Upload bundles artifact'
72-
uses: actions/upload-artifact@v3
76+
uses: actions/upload-artifact@v4
7377
with:
7478
name: bundles-${{ inputs.platform }}${{ inputs.debug-suffix }}
7579
path: bundles

.github/scripts/gen-build-failure-report.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,19 @@
2424
# questions.
2525
#
2626

27+
# Import common utils
28+
. report-utils.sh
29+
2730
GITHUB_STEP_SUMMARY="$1"
2831
BUILD_DIR="$(ls -d build/*)"
2932

3033
# Send signal to the do-build action that we failed
3134
touch "$BUILD_DIR/build-failure"
3235

36+
# Collect hs_errs for build-time crashes, e.g. javac, jmod, jlink, CDS.
37+
# These usually land in make/
38+
hs_err_files=$(ls make/hs_err*.log 2> /dev/null || true)
39+
3340
(
3441
echo '### :boom: Build failure summary'
3542
echo ''
@@ -46,6 +53,20 @@ touch "$BUILD_DIR/build-failure"
4653
echo '</details>'
4754
echo ''
4855

56+
for hs_err in $hs_err_files; do
57+
echo "<details><summary><b>View HotSpot error log: "$hs_err"</b></summary>"
58+
echo ''
59+
echo '```'
60+
echo "$hs_err:"
61+
echo ''
62+
cat "$hs_err"
63+
echo '```'
64+
echo '</details>'
65+
echo ''
66+
done
67+
4968
echo ''
5069
echo ':arrow_right: To see the entire test log, click the job in the list to the left. To download logs, see the `failure-logs` [artifact above](#artifacts).'
5170
) >> $GITHUB_STEP_SUMMARY
71+
72+
truncate_summary

0 commit comments

Comments
 (0)