Skip to content

Commit 25489d3

Browse files
author
joeylee.lz
committed
[Misc] Fix unstable feature tests
Summary: Fix unstable feature tests Test Plan: github action Reviewed-by: yuleil, Accelerator1996 Issue: #301
1 parent d980158 commit 25489d3

16 files changed

+50
-62
lines changed

.github/workflows/submit.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
runs-on: "ubuntu-20.04"
7474
container:
7575
image: docker.io/dragonwelljdk/build_jdk:8u
76+
defaults:
77+
run:
78+
shell: bash
7679
strategy:
7780
fail-fast: false
7881
matrix:
@@ -100,12 +103,14 @@ jobs:
100103
ls /opt/dragonwell8
101104
chmod -R 777 /opt/dragonwell8
102105
/opt/dragonwell8/bin/java -version
106+
echo "Current shell $SHELL"
107+
csh
108+
echo "Current shell $SHELL"
109+
ps
103110
- name: Test
104111
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 }}"
112+
SHELL=/bin/bash 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 }}"
106113
- name: Check that all tests executed successfully
107114
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
115+
cat /__w/dragonwell8/dragonwell8/JTreport/newfailures.txt /__w/dragonwell8/dragonwell8/JTreport/other_errors.txt
116+
egrep -q "(failed|error)" /__w/dragonwell8/dragonwell8/JTreport/text/stats.txt && exit 1 ;

hotspot/test/ProblemList.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,4 @@ runtime/coroutine/PreemptWispInternalBugTest.java generic-all
8686
runtime/coroutine/PremainWithWispMonitorTest.java generic-all
8787
runtime/coroutine/PremainWithWispMonitorTest.java generic-all
8888
runtime/coroutine/WispStealMonitorC2Test.java generic-all
89-
serviceability/sa/jmap-hashcode/Test8028623.java generic-all
90-
jwarmup/issue9780156.sh generic-all
91-
jwarmup/TestCheckIfCompilationIsComplete.sh generic-all
92-
jwarmup/TestDisableMethodData.sh generic-all
93-
jwarmup/TestNotDeoptJITMethod.sh generic-all
94-
jwarmup/TestNotifyDeopt.sh generic-all
95-
jwarmup/TestTieredCompilationInRecording.sh generic-all
96-
multi-tenant/TestParGCAllocatorLeak.sh generic-all
97-
multi-tenant/TestTenantJVMOptions.sh generic-all
89+
serviceability/sa/jmap-hashcode/Test8028623.java generic-all

hotspot/test/jwarmup/TestCheckIfCompilationIsComplete.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Copyright (c) 2019 Alibaba Group Holding Limited. All Rights Reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

hotspot/test/jwarmup/TestDisableMethodData.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/bin/sh
2-
#
1+
#!/bin/bash
32
# Copyright (c) 2019 Alibaba Group Holding Limited. All Rights Reserved.
43
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
54
#

hotspot/test/jwarmup/TestNotDeoptJITMethod.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Copyright (c) 2019 Alibaba Group Holding Limited. All Rights Reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

hotspot/test/jwarmup/TestNotifyDeopt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Copyright (c) 2019 Alibaba Group Holding Limited. All Rights Reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

hotspot/test/jwarmup/TestTieredCompilationInRecording.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Copyright (c) 2019 Alibaba Group Holding Limited. All Rights Reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

hotspot/test/jwarmup/issue9780156.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
#
33
# Copyright (c) 2019 Alibaba Group Holding Limited. All Rights Reserved.
44
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.

hotspot/test/multi-tenant/TestParGCAllocatorLeak.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/env bash
2-
#
1+
#!/bin/bash
32
# Copyright (c) 2020 Alibaba Group Holding Limited. All Rights Reserved.
43
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
54
#

hotspot/test/multi-tenant/TestTenantJVMOptions.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/usr/bin/env bash
2-
#
1+
#!/bin/bash
32
# Copyright (c) 2020 Alibaba Group Holding Limited. All Rights Reserved.
43
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
54
#

0 commit comments

Comments
 (0)