Merge ~vpa1977/ubuntu/+source/openjdk-lts:02_jdk_11_specific into ubuntu/+source/openjdk-lts:ubuntu/devel

Proposed by Vladimir Petko
Status: Merged
Merged at revision: fe5c7bedd2533f98432b5b9d83c13cfeb19bd841
Proposed branch: ~vpa1977/ubuntu/+source/openjdk-lts:02_jdk_11_specific
Merge into: ubuntu/+source/openjdk-lts:ubuntu/devel
Prerequisite: ~vpa1977/ubuntu/+source/openjdk-lts:01_backport_jdk17
Diff against target: 280 lines (+64/-59)
8 files modified
debian/changelog (+4/-6)
debian/patches/disable-thumb-assertion.patch (+2/-2)
debian/patches/exclude-broken-tests.patch (+29/-12)
debian/patches/series (+1/-3)
debian/rules (+0/-1)
debian/tests/control (+14/-6)
debian/tests/control.in (+14/-6)
dev/null (+0/-23)
Reviewer Review Type Date Requested Status
Graham Inggs (community) Approve
git-ubuntu import Pending
Review via email: mp+440211@code.launchpad.net

Description of the change

This merge request is a final part of the series [1][2]

Summary of changes:
 - exclude javadoc tests (broken by the debian patch)
 - drop openjdk-17-specific changes:
    - patches for tests that do not exist in 11
    - system gtest can not be used because it is too new for this JDK
 - refresh test patches
 - disable autopkgtest (just call java and javac) since for those to pass we need to supply native image now and without it tests are not very informative (we already do it for Java 17). Future work here is to package native test image and enable tests back.

PPA: ppa:vpa1977/openjdk-tiers2 [4]

Testing:
 - JTREG tests should pass (depends on integration of [2])

[1] https://code.launchpad.net/~vpa1977/ubuntu/+source/openjdk-lts/+git/openjdk-lts/+merge/440210
[2] https://code.launchpad.net/~vpa1977/ubuntu/+source/openjdk-lts/+git/openjdk-lts/+merge/440211
[3] https://code.launchpad.net/~vpa1977/ubuntu/+source/openjdk-17/+git/openjdk-17/+merge/440209
[4] https://launchpad.net/~vpa1977/+archive/ubuntu/openjdk-tiers2

To post a comment you must log in.
Revision history for this message
Vladimir Petko (vpa1977) wrote (last edit ):
Download full text (27.6 KiB)

amd64 --> /~vpa1977/+archive/ubuntu/openjdk-tiers2/+build/25984072
----------------cut----------------------------------------------
Platform: amd64
--------------- jtreg console summary for hotspot ---------------
Test results: passed: 1,947
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary for langtools ---------------
Test results: passed: 3,922
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary for jaxp ---------------
Test results: passed: 440
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary for jdk ---------------
(xfwm4:460900): dbind-WARNING **: 04:44:30.834: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
(xfwm4:460900): xfwm4-WARNING **: 04:44:31.326: Another compositing manager is running on screen 0
(xfwm4:460900): xfwm4-WARNING **: 04:44:31.328: Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined
Test results: passed: 5,329
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
Killed
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
 Command being timed: "/usr/bin/make -f debian/rules -k jtregcheck TEST_SUITES=hotspot langtools jaxp jdk JTREG_OPTIONS="
 User time (seconds): 21614.67
 System time (seconds): 1311.39
 Percent of CPU this job got: 323%
 Elapsed (wall clock) time (h:mm:ss or m:ss): 1:57:59
 Average shared text size (kbytes): 0
 Average unshared data size (kbytes): 0
 Average stack size (kbytes): 0
 Average total size (kbytes): 0
 Maximum resident set size (kbytes): 4851200
 Average resident set size (kbytes): 0
 Major (requiring I/O) page faults: 1341
 Minor (reclaiming a frame) page faults: 343350593
 Voluntary context switches: 47559698
 Involuntary context switches: 29074215
 Swaps: 0
 File system inputs: 2292264
 File system outputs: 67117984
 Socket messages sent: 0
 Socket messages received: 0
 Signals delivered: 0
 Page size (bytes): 4096
 Exit status: 0
--------------- jtreg console summary for hotspot ---------------
Test results: passed: 1,947
[debian/tests/jtreg-autopkgtest.sh] nothing to cleanup
Unable to compare jtreg results: no build jtreport found for hotspot/amd64.
Reason: '/usr/share/doc/openjdk-11-jre-headless//test-amd64/jtreport-hotspot.tar.gz' does not exist.
--------------- jtreg console summary ...

Revision history for this message
Graham Inggs (ginggs) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index c18925b..9ab7e64 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,17 +1,13 @@
6-openjdk-lts (11.0.18+10-0ubuntu5) UNRELEASED; urgency=medium
7+openjdk-lts (11.0.18+10-0ubuntu5) lunar; urgency=medium
8
9 * d/control: add jtreg6 dependencies, regenerate control.
10 * d/t/{jdk,hotspot,jaxp,lantools}: run tier1 and tier2 jtreg tests only,
11 add test options from OpenJDK makefile.
12 * d/t/*: fix test environment: add missing -nativepath (LP: #2001563).
13 * d/t/jdk: provide dbus session for the window manager (LP: #2001576).
14- * d/p/build_gtest.patch: build OpenJDK with the system googletest
15- (LP: #2012316).
16 * d/p/*: add patches for jtreg tests:
17 - disable-thumb-assertion.patch: fix JDK-8305481.
18 - update-assertion-for-armhf.patch: fix JDK-8305480.
19- - misalign-pointer-for-armhf.patch: packaging-specific patch to fix test
20- failure introduced by d/p/m68k-support.diff.
21 - log-generated-classes-test.patch: workaround JDK-8166162.
22 - update-permission-test.patch: add security permissions for testng 7.
23 - ldap-timeout-test-use-ip.patch, test-use-ip-address.patch: Ubuntu-specific
24@@ -20,9 +16,11 @@ openjdk-lts (11.0.18+10-0ubuntu5) UNRELEASED; urgency=medium
25 * d/rules: package external debug symbols (LP: #2015835).
26 * drop d/p/{jaw-classpath.diff, jaw-optional.diff}: the atk wrapper is disabled
27 and these patches cause class data sharing tests to fail (LP: #2016194).
28- * d/p/exclude-broken-tests.patch: add OpenJDK 17 failures.
29+ * d/p/exclude-broken-tests.patch: add OpenJDK 11 failures.
30 * d/t/jtreg-autopkgtest.in: pass JTREG home to locate junit.jar, regenerate
31 d/t/jtreg-autopkgtest.sh (LP: #2016206).
32+ * d/t/control.in: disable jtreg autopkgtests in line with openjdk 17,
33+ regenerate control (LP: #2016438).
34
35 -- Vladimir Petko <vladimir.petko@canonical.com> Fri, 14 Apr 2023 11:29:59 +1200
36
37diff --git a/debian/patches/build_gtest.patch b/debian/patches/build_gtest.patch
38deleted file mode 100644
39index 0d7f6ea..0000000
40--- a/debian/patches/build_gtest.patch
41+++ /dev/null
42@@ -1,29 +0,0 @@
43-Description: Add support for building with the system google test
44- A major portion of hotspot tests require google test.
45- In order to get tier1 tests passing the package should build
46- with the system google test.
47-Author: Vladimir Petko <vladimir.petko@canonical.com>
48-Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/openjdk-20/+bug/2012316
49-Last-Update: 2023-04-13
50---- a/make/autoconf/lib-tests.m4
51-+++ b/make/autoconf/lib-tests.m4
52-@@ -36,6 +36,8 @@
53- AC_MSG_CHECKING([for gtest])
54- if test "x${with_gtest}" = xno; then
55- AC_MSG_RESULT([no, disabled])
56-+ elif test "x${with_gtest}" = xsystem; then
57-+ GTEST_FRAMEWORK_SRC=/usr/src/googletest
58- elif test "x${with_gtest}" = xyes; then
59- AC_MSG_RESULT([no, error])
60- AC_MSG_ERROR([--with-gtest must have a value])
61---- a/test/hotspot/gtest/gtestMain.cpp
62-+++ b/test/hotspot/gtest/gtestMain.cpp
63-@@ -230,7 +230,7 @@
64- bool is_vmassert_test = false;
65- bool is_othervm_test = false;
66- // death tests facility is used for both regular death tests, other vm and vmassert tests
67-- if (::testing::internal::GTEST_FLAG(internal_run_death_test).length() > 0) {
68-+ if (::testing::GTEST_FLAG(internal_run_death_test).length() > 0) {
69- // when we execute death test, filter value equals to test name
70- const char* test_name = ::testing::GTEST_FLAG(filter).c_str();
71- const char* const othervm_suffix = "_other_vm"; // TEST_OTHER_VM
72diff --git a/debian/patches/disable-thumb-assertion.patch b/debian/patches/disable-thumb-assertion.patch
73index 30d0243..cdd8e1a 100644
74--- a/debian/patches/disable-thumb-assertion.patch
75+++ b/debian/patches/disable-thumb-assertion.patch
76@@ -5,11 +5,11 @@ Bug: https://bugs.openjdk.org/browse/JDK-8305481
77 Last-Update: 2023-03-30
78 --- a/test/hotspot/gtest/runtime/test_os.cpp
79 +++ b/test/hotspot/gtest/runtime/test_os.cpp
80-@@ -844,7 +844,7 @@
81+@@ -347,7 +347,7 @@
82 }
83
84 TEST_VM(os, is_first_C_frame) {
85--#if !defined(_WIN32) && !defined(ZERO)
86+-#ifndef _WIN32
87 +#if !defined(_WIN32) && !defined(ZERO) && !defined(__thumb__)
88 frame invalid_frame;
89 EXPECT_TRUE(os::is_first_C_frame(&invalid_frame)); // the frame has zeroes for all values
90diff --git a/debian/patches/exclude-broken-tests.patch b/debian/patches/exclude-broken-tests.patch
91index 0eb04d5..2a9983b 100644
92--- a/debian/patches/exclude-broken-tests.patch
93+++ b/debian/patches/exclude-broken-tests.patch
94@@ -5,7 +5,7 @@ Forwarded: not-needed
95 Last-Update: 2023-03-24
96 --- a/test/hotspot/jtreg/ProblemList.txt
97 +++ b/test/hotspot/jtreg/ProblemList.txt
98-@@ -38,6 +38,22 @@
99+@@ -38,6 +38,26 @@
100 #
101 #############################################################################
102
103@@ -25,12 +25,16 @@ Last-Update: 2023-03-24
104 +runtime/cds/appcds/jcmd/JCmdTestFileSafety.java 000000 generic-all
105 +runtime/cds/appcds/jcmd/JCmdTestStaticDump.java 000000 generic-all
106 +
107++# Unexpected exit from the test
108++
109++runtime/NMT/SafepointPollingPages.java 000000 generic-all
110++
111 # :hotspot_compiler
112
113- compiler/ciReplay/TestSAServer.java 8029528 generic-all
114+ compiler/aot/verification/vmflags/TrackedFlagTest.java 8215224 generic-all
115 --- a/test/langtools/ProblemList.txt
116 +++ b/test/langtools/ProblemList.txt
117-@@ -23,6 +23,11 @@
118+@@ -23,6 +23,32 @@
119 #
120 ###########################################################################
121
122@@ -39,12 +43,33 @@ Last-Update: 2023-03-24
123 +
124 +jdk/jshell/JdiListeningLocalhostExecutionControlTest.java 0000000 generic-all
125 +
126++# tests failing due to disable-doclint-by-default.diff
127++
128++jdk/javadoc/doclet/testSupplementary/TestSupplementary.java 0000000 generic-all
129++jdk/javadoc/doclet/testPackageHtml/TestPackageHtml.java 0000000 generic-all
130++jdk/javadoc/doclet/testSummaryTag/TestSummaryTag.java 0000000 generic-all
131++jdk/javadoc/doclet/testStylesheet/TestStylesheet.java 0000000 generic-all
132++jdk/javadoc/doclet/testSeeTag/TestSeeTag.java 0000000 generic-all
133++jdk/javadoc/doclet/testRelativeLinks/TestRelativeLinks.java 0000000 generic-all
134++jdk/javadoc/doclet/testBadHtml/TestBadHtml.java 0000000 generic-all
135++jdk/javadoc/doclet/testParamTaglet/TestParamTaglet.java 0000000 generic-all
136++jdk/javadoc/doclet/testNonInlineHtmlTagRemoval/TestNonInlineHtmlTagRemoval.java 0000000 generic-all
137++jdk/javadoc/doclet/dupThrowsTags/TestDupThrowsTags.java 0000000 generic-all
138++jdk/javadoc/doclet/testLinkOption/TestLinkOption.java 0000000 generic-all
139++jdk/javadoc/doclet/T6735320/T6735320.java 0000000 generic-all
140++jdk/javadoc/doclet/testValueTag/TestValueTag.java 0000000 generic-all
141++jdk/javadoc/tool/modules/Modules.java 0000000 generic-all
142++jdk/javadoc/doclet/testWarnings/TestWarnings.java 0000000 generic-all
143++jdk/javadoc/doclet/testHtmlTableStyles/TestHtmlTableStyles.java 0000000 generic-all
144++jdk/javadoc/tool/doclint/DocLintTest.java 0000000 generic-all
145++jdk/javadoc/doclet/testBadPackageFileInJar/TestBadPackageFileInJar.java 0000000 generic-all
146++
147 ###########################################################################
148 #
149 # javadoc
150 --- a/test/jdk/ProblemList.txt
151 +++ b/test/jdk/ProblemList.txt
152-@@ -109,6 +109,49 @@
153+@@ -110,6 +110,49 @@
154 #
155 #############################################################################
156
157@@ -94,11 +119,3 @@ Last-Update: 2023-03-24
158 ############################################################################
159
160 # jdk_awt
161-@@ -539,7 +582,6 @@
162- java/lang/ProcessHandle/InfoTest.java 8211847 aix-ppc64
163- java/lang/invoke/LFCaching/LFMultiThreadCachingTest.java 8151492 generic-all
164- java/lang/invoke/LFCaching/LFGarbageCollectedTest.java 8078602 generic-all
165--java/lang/invoke/lambda/LambdaFileEncodingSerialization.java 8249079 linux-x64
166-
167- ############################################################################
168-
169diff --git a/debian/patches/misalign-pointer-for-armhf.patch b/debian/patches/misalign-pointer-for-armhf.patch
170deleted file mode 100644
171index 9117554..0000000
172--- a/debian/patches/misalign-pointer-for-armhf.patch
173+++ /dev/null
174@@ -1,23 +0,0 @@
175-Description: Misalign address in the test rather than structure
176- mk68-support.diff aligned metaspace structures by 4 bytes breaking the test.
177- Add 1 to address type rather than aligned structure to produce misaligned pointer.
178---- a/test/hotspot/gtest/metaspace/test_is_metaspace_obj.cpp
179-+++ b/test/hotspot/gtest/metaspace/test_is_metaspace_obj.cpp
180-@@ -61,7 +61,7 @@
181- ASSERT_TRUE(MetaspaceObj::is_valid(p));
182-
183- // A misaligned object shall not be recognized
184-- const MetaspaceObj* p_misaligned = (MetaspaceObj*)((address)p) + 1;
185-+ const MetaspaceObj* p_misaligned = (MetaspaceObj*)((address)p + 1);
186- ASSERT_FALSE(MetaspaceObj::is_valid(p_misaligned));
187-
188- // Test VirtualSpaceList::contains
189-@@ -72,7 +72,7 @@
190- ASSERT_TRUE(vslist->contains((MetaWord*)p));
191-
192- // A misaligned pointer shall still be recognized by list::contains
193-- ASSERT_TRUE(vslist->contains((MetaWord*)((address)p) + 1));
194-+ ASSERT_TRUE(vslist->contains((MetaWord*)((address)p + 1)));
195-
196- // Now for some bogus values
197- ASSERT_FALSE(MetaspaceObj::is_valid((MetaspaceObj*)NULL));
198diff --git a/debian/patches/series b/debian/patches/series
199index bf4cb7f..595607b 100644
200--- a/debian/patches/series
201+++ b/debian/patches/series
202@@ -32,12 +32,10 @@ reproducible-copyright-headers.diff
203 reproducible-build-user.diff
204 reproducible-build-jmod.diff
205 hotspot-test-fix-npe-on-missing-file.patch
206-build_gtest.patch
207 disable-thumb-assertion.patch
208 update-assertion-for-armhf.patch
209-misalign-pointer-for-armhf.patch
210 log-generated-classes-test.patch
211 update-permission-test.patch
212 ldap-timeout-test-use-ip.patch
213 test-use-ip-address.patch
214-exclude-broken-tests.patch
215\ No newline at end of file
216+exclude-broken-tests.patch
217diff --git a/debian/rules b/debian/rules
218index 8dd64ba..5ba542f 100755
219--- a/debian/rules
220+++ b/debian/rules
221@@ -504,7 +504,6 @@ COMMON_CONFIGURE_ARGS += \
222 --with-pcsclite=system \
223 --disable-warnings-as-errors \
224 --disable-javac-server \
225- --with-gtest=system \
226
227 ifeq (,$(filter $(distrel),jessie stretch precise trusty xenial))
228 COMMON_CONFIGURE_ARGS += \
229diff --git a/debian/tests/control b/debian/tests/control
230index e263c54..96c01d4 100644
231--- a/debian/tests/control
232+++ b/debian/tests/control
233@@ -1,7 +1,15 @@
234-Tests: hotspot, jaxp, langtools
235-Depends: @, default-jre-headless, jtreg6:native (>= 6+1-0~), testng:native, build-essential
236-Restrictions: allow-stderr, skippable, flaky
237+Test-Command: java --version
238+Depends: openjdk-11-jre-headless
239+Restrictions: superficial
240
241-Tests: jdk
242-Depends: @, default-jre-headless, jtreg6:native (>= 6+1-0~), testng:native, build-essential, xfwm4:native, xvfb, dbus-x11, zip
243-Restrictions: allow-stderr, skippable, flaky
244+Test-Command: javac --version
245+Depends: openjdk-11-jdk-headless
246+Restrictions: superficial
247+
248+#Tests: hotspot, jaxp, langtools
249+#Depends: @, default-jre-headless, jtreg6:native (>= 6+1-0~), testng:native, build-essential
250+#Restrictions: allow-stderr, skippable, flaky
251+
252+#Tests: jdk
253+#Depends: @, default-jre-headless, jtreg6:native (>= 6+1-0~), testng:native, build-essential, xfwm4:native, xvfb, dbus-x11, zip
254+#Restrictions: allow-stderr, skippable, flaky
255diff --git a/debian/tests/control.in b/debian/tests/control.in
256index a54a506..1659327 100644
257--- a/debian/tests/control.in
258+++ b/debian/tests/control.in
259@@ -1,7 +1,15 @@
260-Tests: hotspot, jaxp, langtools
261-Depends: @, default-jre-headless, @jtreg_pkg@:native (>= @min_jtreg_version@), testng:native, build-essential
262-Restrictions: allow-stderr, skippable, flaky
263+Test-Command: java --version
264+Depends: openjdk-11-jre-headless
265+Restrictions: superficial
266
267-Tests: jdk
268-Depends: @, default-jre-headless, @jtreg_pkg@:native (>= @min_jtreg_version@), testng:native, build-essential, xfwm4:native, xvfb, dbus-x11, zip
269-Restrictions: allow-stderr, skippable, flaky
270+Test-Command: javac --version
271+Depends: openjdk-11-jdk-headless
272+Restrictions: superficial
273+
274+#Tests: hotspot, jaxp, langtools
275+#Depends: @, default-jre-headless, @jtreg_pkg@:native (>= @min_jtreg_version@), testng:native, build-essential
276+#Restrictions: allow-stderr, skippable, flaky
277+
278+#Tests: jdk
279+#Depends: @, default-jre-headless, @jtreg_pkg@:native (>= @min_jtreg_version@), testng:native, build-essential, xfwm4:native, xvfb, dbus-x11, zip
280+#Restrictions: allow-stderr, skippable, flaky

Subscribers

People subscribed via source and target branches