Skip to content

Commit d980158

Browse files
joeylee.lzj0826
authored andcommitted
[Misc] Polish Dragonwell action for monorepo
Summary: Refactor github action check. Test Plan: github action Reviewed-by: yuleil, Accelerator1996 Issue: #301
1 parent a0a9138 commit d980158

File tree

4 files changed

+141
-225
lines changed

4 files changed

+141
-225
lines changed

.github/workflows/check_pr.yml

Lines changed: 2 additions & 207 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2020
#
2121

22-
name: Dragonwell_8_build_test
22+
name: Dragonwell_8_commit_style_check
2323

2424
on: [pull_request]
2525

@@ -28,209 +28,4 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- uses: actions/checkout@v2
31-
- uses: dragonwell-releng/check_commit_action@master
32-
33-
build_release_jdk:
34-
runs-on: ubuntu-latest
35-
container:
36-
image: docker.io/dragonwelljdk/build_jdk:8u
37-
steps:
38-
- name: Check out alibaba/dragonwell8
39-
uses: actions/checkout@v2
40-
with:
41-
path: 'dragonwell8'
42-
- name: Check out alibaba/dragonwell8_corba
43-
uses: actions/checkout@v2
44-
with:
45-
repository: 'alibaba/dragonwell8_corba'
46-
path: 'corba'
47-
- name: Check out alibaba/dragonwell8_langtools
48-
uses: actions/checkout@v2
49-
with:
50-
repository: 'alibaba/dragonwell8_langtools'
51-
path: 'langtools'
52-
- name: Check out alibaba/dragonwell8_hotspot
53-
uses: actions/checkout@v2
54-
with:
55-
repository: 'alibaba/dragonwell8_hotspot'
56-
path: 'hotspot'
57-
- name: Check out alibaba/dragonwell8_jdk
58-
uses: actions/checkout@v2
59-
with:
60-
repository: 'alibaba/dragonwell8_jdk'
61-
path: 'jdk'
62-
- name: Check out alibaba/dragonwell8_jaxws
63-
uses: actions/checkout@v2
64-
with:
65-
repository: 'alibaba/dragonwell8_jaxws'
66-
path: 'jaxws'
67-
- name: Check out alibaba/dragonwell8_jaxp
68-
uses: actions/checkout@v2
69-
with:
70-
repository: 'alibaba/dragonwell8_jaxp'
71-
path: 'jaxp'
72-
- name: Check out alibaba/dragonwell8_nashorn
73-
uses: actions/checkout@v2
74-
with:
75-
repository: 'alibaba/dragonwell8_nashorn'
76-
path: 'nashorn'
77-
78-
- name: Compile release mode
79-
run: |
80-
mv hotspot dragonwell8
81-
mv jdk dragonwell8
82-
mv langtools dragonwell8
83-
mv corba dragonwell8
84-
mv jaxp dragonwell8
85-
mv jaxws dragonwell8
86-
mv nashorn dragonwell8
87-
cd dragonwell8
88-
sh configure --with-debug-level=release --with-cacerts-file=${PWD}/common/security/cacerts --with-milestone=fcs --enable-unlimited-crypto
89-
make LOG=trace images
90-
91-
- name: Sanity test
92-
run: |
93-
cd dragonwell8
94-
TEST_JDK_HOME=build/linux-x86_64-normal-server-release/images/j2sdk-image
95-
${TEST_JDK_HOME}/bin/java -version
96-
97-
#- name: Tier1 test
98-
#run: |
99-
#make test TEST="hotspot_tier1 jdk_tier1"
100-
101-
build_fastdebug_jdk:
102-
runs-on: ubuntu-latest
103-
container:
104-
image: docker.io/dragonwelljdk/build_jdk:8u
105-
steps:
106-
- name: Check out alibaba/dragonwell8
107-
uses: actions/checkout@v2
108-
with:
109-
path: 'dragonwell8'
110-
- name: Check out alibaba/dragonwell8_corba
111-
uses: actions/checkout@v2
112-
with:
113-
repository: 'alibaba/dragonwell8_corba'
114-
path: 'corba'
115-
- name: Check out alibaba/dragonwell8_langtools
116-
uses: actions/checkout@v2
117-
with:
118-
repository: 'alibaba/dragonwell8_langtools'
119-
path: 'langtools'
120-
- name: Check out alibaba/dragonwell8_hotspot
121-
uses: actions/checkout@v2
122-
with:
123-
repository: 'alibaba/dragonwell8_hotspot'
124-
path: 'hotspot'
125-
- name: Check out alibaba/dragonwell8_jdk
126-
uses: actions/checkout@v2
127-
with:
128-
repository: 'alibaba/dragonwell8_jdk'
129-
path: 'jdk'
130-
- name: Check out alibaba/dragonwell8_jaxws
131-
uses: actions/checkout@v2
132-
with:
133-
repository: 'alibaba/dragonwell8_jaxws'
134-
path: 'jaxws'
135-
- name: Check out alibaba/dragonwell8_jaxp
136-
uses: actions/checkout@v2
137-
with:
138-
repository: 'alibaba/dragonwell8_jaxp'
139-
path: 'jaxp'
140-
- name: Check out alibaba/dragonwell8_nashorn
141-
uses: actions/checkout@v2
142-
with:
143-
repository: 'alibaba/dragonwell8_nashorn'
144-
path: 'nashorn'
145-
146-
- name: Compile fastdebug mode
147-
run: |
148-
mv hotspot dragonwell8
149-
mv jdk dragonwell8
150-
mv langtools dragonwell8
151-
mv corba dragonwell8
152-
mv jaxp dragonwell8
153-
mv jaxws dragonwell8
154-
mv nashorn dragonwell8
155-
cd dragonwell8
156-
sh configure --with-debug-level=fastdebug --with-cacerts-file=${PWD}/common/security/cacerts --with-milestone=fcs --enable-unlimited-crypto
157-
make LOG=trace images
158-
159-
- name: Sanity test
160-
run: |
161-
cd dragonwell8
162-
TEST_JDK_HOME=build/linux-x86_64-normal-server-fastdebug/images/j2sdk-image
163-
${TEST_JDK_HOME}/bin/java -version
164-
165-
#- name: Tier1 test
166-
#run: |
167-
#make test TEST="hotspot_tier1 jdk_tier1"
168-
169-
build_slowdebug_jdk:
170-
runs-on: ubuntu-latest
171-
container:
172-
image: docker.io/dragonwelljdk/build_jdk:8u
173-
steps:
174-
- name: Check out alibaba/dragonwell8
175-
uses: actions/checkout@v2
176-
with:
177-
path: 'dragonwell8'
178-
- name: Check out alibaba/dragonwell8_corba
179-
uses: actions/checkout@v2
180-
with:
181-
repository: 'alibaba/dragonwell8_corba'
182-
path: 'corba'
183-
- name: Check out alibaba/dragonwell8_langtools
184-
uses: actions/checkout@v2
185-
with:
186-
repository: 'alibaba/dragonwell8_langtools'
187-
path: 'langtools'
188-
- name: Check out alibaba/dragonwell8_hotspot
189-
uses: actions/checkout@v2
190-
with:
191-
repository: 'alibaba/dragonwell8_hotspot'
192-
path: 'hotspot'
193-
- name: Check out alibaba/dragonwell8_jdk
194-
uses: actions/checkout@v2
195-
with:
196-
repository: 'alibaba/dragonwell8_jdk'
197-
path: 'jdk'
198-
- name: Check out alibaba/dragonwell8_jaxws
199-
uses: actions/checkout@v2
200-
with:
201-
repository: 'alibaba/dragonwell8_jaxws'
202-
path: 'jaxws'
203-
- name: Check out alibaba/dragonwell8_jaxp
204-
uses: actions/checkout@v2
205-
with:
206-
repository: 'alibaba/dragonwell8_jaxp'
207-
path: 'jaxp'
208-
- name: Check out alibaba/dragonwell8_nashorn
209-
uses: actions/checkout@v2
210-
with:
211-
repository: 'alibaba/dragonwell8_nashorn'
212-
path: 'nashorn'
213-
214-
- name: Compile slowdebug mode
215-
run: |
216-
mv hotspot dragonwell8
217-
mv jdk dragonwell8
218-
mv langtools dragonwell8
219-
mv corba dragonwell8
220-
mv jaxp dragonwell8
221-
mv jaxws dragonwell8
222-
mv nashorn dragonwell8
223-
cd dragonwell8
224-
sh configure --with-debug-level=slowdebug --with-cacerts-file=${PWD}/common/security/cacerts --with-milestone=fcs --enable-unlimited-crypto
225-
226-
make LOG=trace images
227-
228-
- name: Sanity test
229-
run: |
230-
cd dragonwell8
231-
TEST_JDK_HOME=build/linux-x86_64-normal-server-slowdebug/images/j2sdk-image
232-
${TEST_JDK_HOME}/bin/java -version
233-
234-
# - name: Tier1 test
235-
# run: |
236-
# make test TEST="hotspot_tier1 jdk_tier1"
31+
- uses: dragonwell-releng/check_commit_action@master

.github/workflows/submit.yml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
#
2+
# Copyright (c) 2022 Alibaba Group Holding Limited. All Rights Reserved.
3+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
#
5+
# This code is free software; you can redistribute it and/or modify it
6+
# under the terms of the GNU General Public License version 2 only, as
7+
# published by the Free Software Foundation. Alibaba designates this
8+
# particular file as subject to the "Classpath" exception as provided
9+
# by Oracle in the LICENSE file that accompanied this code.
10+
#
11+
# This code is distributed in the hope that it will be useful, but WITHOUT
12+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+
# version 2 for more details (a copy is included in the LICENSE file that
15+
# accompanied this code).
16+
#
17+
# You should have received a copy of the GNU General Public License version
18+
# 2 along with this work; if not, write to the Free Software Foundation,
19+
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20+
#
21+
22+
name: Dragonwell_8_build_test
23+
24+
on:
25+
pull_request:
26+
types: [opened, synchronize, reopened]
27+
28+
jobs:
29+
prerequisites:
30+
name: Prerequisites
31+
runs-on: "ubuntu-20.04"
32+
outputs:
33+
bundle_id: ${{ steps.check_bundle_id.outputs.bundle_id }}
34+
steps:
35+
- name: Determine unique bundle identifier
36+
id: check_bundle_id
37+
run: echo "::set-output name=bundle_id::${GITHUB_ACTOR}_${GITHUB_SHA:0:8}"
38+
39+
linux_x64_build:
40+
needs: prerequisites
41+
name: Linux x64
42+
runs-on: "ubuntu-20.04"
43+
container:
44+
image: docker.io/dragonwelljdk/build_jdk:8u
45+
steps:
46+
- name: Checkout target source
47+
uses: actions/checkout@v3
48+
with:
49+
ref: ${{ github.event.pull_request.head.sha }}
50+
- name: Compile debug
51+
run: |
52+
sh configure --with-debug-level=fastdebug --with-cacerts-file=${PWD}/common/security/cacerts --with-milestone=fcs --enable-unlimited-crypto
53+
make images CONF=linux-x86_64-normal-server-fastdebug
54+
- name: Compile release
55+
run: |
56+
make clean || true
57+
[ -d build ] && rm -rf build
58+
sh configure --with-debug-level=release --with-cacerts-file=${PWD}/common/security/cacerts --with-milestone=fcs --enable-unlimited-crypto
59+
make images CONF=linux-x86_64-normal-server-release
60+
- name: Upload Test image
61+
uses: actions/upload-artifact@v2
62+
with:
63+
name: dragonwell8_release_image_${{ needs.prerequisites.outputs.bundle_id }}
64+
path: |
65+
build/linux-x86_64-normal-server-release/images/j2sdk-image
66+
67+
linux_x64_test:
68+
name: Linux x64 Test
69+
needs:
70+
- prerequisites
71+
- linux_x64_build
72+
73+
runs-on: "ubuntu-20.04"
74+
container:
75+
image: docker.io/dragonwelljdk/build_jdk:8u
76+
strategy:
77+
fail-fast: false
78+
matrix:
79+
test:
80+
- jdk/test/:jdk_tier1
81+
- jdk/test/:dragonwell_jdk_features
82+
- hotspot/test/:hotspot_tier1
83+
- hotspot/test/:hotspot_jwarmup
84+
- hotspot/test/:hotspot_elastic_heap
85+
- hotspot/test/:hotspot_multi_tenant
86+
steps:
87+
- name: Checkout target source
88+
uses: actions/checkout@v3
89+
with:
90+
ref: ${{ github.event.pull_request.head.sha }}
91+
- name: Download image
92+
id: jtreg_restore
93+
uses: actions/download-artifact@v2
94+
with:
95+
name: dragonwell8_release_image_${{ needs.prerequisites.outputs.bundle_id }}
96+
path: /opt/dragonwell8
97+
continue-on-error: false
98+
- name: Test image version
99+
run: |
100+
ls /opt/dragonwell8
101+
chmod -R 777 /opt/dragonwell8
102+
/opt/dragonwell8/bin/java -version
103+
- name: Test
104+
run: |
105+
jtreg -agentvm -a -ea -esa -v:fail,error,time,nopass -jdk:/opt/dragonwell8 -exclude:"/__w/dragonwell8/dragonwell8/hotspot/test/ProblemList.txt" -exclude:"/__w/dragonwell8/dragonwell8/jdk/test/ProblemList.txt" "${{ matrix.test }}"
106+
- name: Check that all tests executed successfully
107+
run: >
108+
if [[ egrep -q "(failed|error)" /__w/dragonwell8/dragonwell8/JTreport/text/stats.txt ]]; then
109+
cat /__w/dragonwell8/dragonwell8/JTreport/newfailures.txt /__w/dragonwell8/dragonwell8/JTreport/other_errors.txt;
110+
exit 1 ;
111+
fi

jdk/test/ProblemList.txt

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ tools/launcher/FXLauncherTest.java windows-all,linux-all
364364

365365
# jdk_jdi
366366

367+
# 6951287
368+
com/sun/jdi/PopAndInvokeTest.java generic-all
367369
############################################################################
368370

369371
# jdk_util
@@ -395,15 +397,6 @@ sample/chatserver/ChatTest.java 8178912 generic-all
395397
############################################################################
396398

397399
com/sun/jdi/RedefineCrossEvent.java generic-all
398-
com/sun/jndi/ldap/LdapTimeoutTest.java generic-all
399-
com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest.java generic-all
400-
java/lang/invoke/MethodHandles/CatchExceptionTest.java generic-all
401-
java/net/Inet4Address/LookUpAllAddrsTest.sh generic-all
402-
java/security/KeyPairGenerator/FinalizeHalf.java generic-all
403-
java/security/Security/SynchronizedAccess.java generic-all
404-
java/text/BreakIterator/BreakIteratorTest.java generic-all
405-
java/util/stream/boottest/java/util/stream/SpinedBufferTest.java generic-all
406-
jdk/asm/AsmSanity.java generic-all
407400
jdk/net/rsocket/Exceptions.java generic-all
408401
jdk/net/rsocket/NullBind.java generic-all
409402
jdk/net/rsocket/RsocketTest.java generic-all
@@ -427,12 +420,24 @@ jdk/net/rsocket/SocketChannel/VectorIO.java generic-all
427420
jdk/net/rsocket/Socket/GetLocalAddress.java generic-all
428421
jdk/net/rsocket/SocketOption/OptionsTest.java generic-all
429422
jdk/net/rsocket/SocketOption/UnsupportedOptionsTest.java generic-all
430-
sun/net/www/http/ChunkedOutputStream/checkError.java generic-all
431-
sun/security/krb5/auto/ReplayCacheTestProc.java generic-all
432-
sun/security/krb5/auto/ReplayCacheTestProc.java generic-all
433-
sun/security/lib/cacerts/VerifyCACerts.java generic-all
434-
sun/security/pkcs11/Secmod/TestNssDbSqlite.java generic-all
435-
sun/security/ssl/X509TrustManagerImpl/Symantec/Distrust.java generic-all
436-
sun/tools/jstatd/TestJstatdExternalRegistry.java generic-all
437-
sun/tools/jstatd/TestJstatdPortAndServer.java generic-all
438-
sun/tools/jstatd/TestJstatdPort.java generic-all
423+
com/alibaba/wisp/bug/TestThreadStackTrace.sh generic-all
424+
com/alibaba/wisp/bug/WispSocketLeakWhenConnectTimeoutTest.java generic-all
425+
com/alibaba/wisp2/Wisp2StackSizeTest.java generic-all
426+
com/alibaba/wisp2/Wisp2WorkStealTest.java generic-all
427+
com/alibaba/wisp/monitor/PassTokenTest.java generic-all
428+
com/alibaba/wisp/bug/WispSelectorReadyOpsTest.java generic-all
429+
com/alibaba/wisp2/NmtTracingWispTaskRecycleTest.java generic-all
430+
com/alibaba/wisp2/WispControlGroupCpuTest.java generic-all
431+
432+
# resource limit
433+
434+
############################################################################
435+
436+
java/util/WeakHashMap/GCDuringIteration.java
437+
java/util/zip/3GBZipFiles.sh generic-all
438+
java/util/ResourceBundle/Test4300693.java generic-all
439+
java/util/ResourceBundle/RestrictedBundleTest.java generic-all
440+
java/lang/invoke/LFCaching/LFGarbageCollectedTest.java generic-all
441+
java/util/AbstractList/CheckForComodification.java generic-all
442+
java/lang/StringBuilder/HugeCapacity.java generic-all
443+

0 commit comments

Comments
 (0)