JDK-8277493 : [REDO] Quarantined jpackage apps are labeled as "damaged"
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Affected Version: 18
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: aarch64
  • Submitted: 2021-11-19
  • Updated: 2022-12-12
  • Resolved: 2022-05-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 19
17.0.5-oracleFixed 19 b23Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8277494 :  
Description
The following tests failed in the JDK18 CI:

tools/jpackage/share/SimplePackageTest.java
tools/jpackage/share/MultiLauncherTwoPhaseTest.java
tools/jpackage/share/LicenseTest.java#id0
tools/jpackage/share/InstallDirTest.java#id0
tools/jpackage/share/EmptyFolderTest.java
tools/jpackage/share/ArgumentsTest.java
tools/jpackage/share/EmptyFolderPackageTest.java
tools/jpackage/share/AppLauncherEnvTest.java
tools/jpackage/share/AppContentTest.java
tools/jpackage/share/AddLShortcutTest.java
tools/jpackage/share/AddLauncherTest.java#id1
tools/jpackage/share/jdk/jpackage/tests/NoMPathRuntimeTest.java
tools/jpackage/share/jdk/jpackage/tests/MultipleJarAppTest.java
tools/jpackage/share/jdk/jpackage/tests/ModulePathTest3.java
tools/jpackage/share/jdk/jpackage/tests/ModulePathTest2.java
tools/jpackage/share/jdk/jpackage/tests/ModulePathTest.java
tools/jpackage/share/jdk/jpackage/tests/MainClassTest.java
tools/jpackage/share/jdk/jpackage/tests/JLinkOptionsTest.java
tools/jpackage/share/jdk/jpackage/tests/JavaOptionsTest.java
tools/jpackage/share/jdk/jpackage/tests/JavaOptionsEqualsTest.java#id1
tools/jpackage/share/jdk/jpackage/tests/JavaOptionsEqualsTest.java#id0
tools/jpackage/share/jdk/jpackage/tests/DotInNameTest.java
tools/jpackage/share/jdk/jpackage/tests/CookedRuntimeTest.java
tools/jpackage/share/jdk/jpackage/tests/BasicTest.java
tools/jpackage/share/jdk/jpackage/tests/AppVersionTest.java
tools/jpackage/macosx/NameWithSpaceTest.java
tools/jpackage/macosx/MacPropertiesTest.java
tools/jpackage/macosx/MacFileAssociationsTest.java
tools/jpackage/macosx/HostArchPkgTest.java
tools/jpackage/macosx/DmgContentTest.java
tools/jpackage/macosx/ArgumentsFilteringTest.java


Here's a log file snippet from tools/jpackage/share/SimplePackageTest.java:

[17:14:02.320] TRACE: Clearing PATH in environment
[17:14:02.320] TRACE: exec: Execute [/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S136985/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/cc47db66-d714-414b-95ce-458cd2fe0a26/runs/d45112a4-66bc-4c51-92fb-888d53d63b81/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/0/./test/unpacked-pkg/unpacked/Applications/SimplePackageTest.app/Contents/MacOS/SimplePackageTest](1); inherit I/O; in directory [./test]...
[17:14:02.322] TRACE: exec: Done. Exit code: 137
[17:14:07.474] TRACE: Clearing PATH in environment
[17:14:07.474] TRACE: exec: Execute [/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S136985/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/cc47db66-d714-414b-95ce-458cd2fe0a26/runs/d45112a4-66bc-4c51-92fb-888d53d63b81/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/0/./test/unpacked-pkg/unpacked/Applications/SimplePackageTest.app/Contents/MacOS/SimplePackageTest](1); inherit I/O; in directory [./test]...
[17:14:07.482] TRACE: exec: Done. Exit code: 137
[17:14:12.628] TRACE: Clearing PATH in environment
[17:14:12.628] TRACE: exec: Execute [/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S136985/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/cc47db66-d714-414b-95ce-458cd2fe0a26/runs/d45112a4-66bc-4c51-92fb-888d53d63b81/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/0/./test/unpacked-pkg/unpacked/Applications/SimplePackageTest.app/Contents/MacOS/SimplePackageTest](1); inherit I/O; in directory [./test]...
[17:14:12.633] TRACE: exec: Done. Exit code: 137
[17:14:17.692] ERROR: Expected [0]. Actual [137]: Check command [/System/Volumes/Data/mesos/work_dir/slaves/a2dc162d-743b-4800-9e92-31f85abb45b1-S136985/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/cc47db66-d714-414b-95ce-458cd2fe0a26/runs/d45112a4-66bc-4c51-92fb-888d53d63b81/testoutput/test-support/jtreg_open_test_jdk_tier2_part2/scratch/0/./test/unpacked-pkg/unpacked/Applications/SimplePackageTest.app/Contents/MacOS/SimplePackageTest](1) exited with 0 code
[17:14:17.693] [  FAILED  ] SimplePackageTest.test; checks=18
[17:14:17.693] [==========] 1 tests ran
[17:14:17.693] [  PASSED  ] 0 tests
[17:14:17.694] [  FAILED  ] 1 test, listed below
[17:14:17.694] [  FAILED  ] SimplePackageTest.test; workDir=[./test]
[17:14:17.694] 1 FAILED TEST
----------System.err:(62/4616)----------


Originally I thought these failures were due to the "crowd" service
outage earlier today, but these same failures happened in
jdk-18+25-1653-tier2 and jdk-18+25-1654-tier2.
Comments
Fix request [17u] I backport this for parity with 17.0.5-oracle. Clean backport except for a patch to a test not in 17. SAP nightly testing passed.
22-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/576 Date: 2022-07-21 11:03:54 +0000
21-07-2022

Changeset: 273c7329 Author: Alexander Matveev <almatvee@openjdk.org> Date: 2022-05-13 18:39:16 +0000 URL: https://git.openjdk.java.net/jdk/commit/273c7329e7dff6e97ffe5b299a6bbb5de8ea9190
13-05-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8527 Date: 2022-05-04 03:56:10 +0000
04-05-2022

[~rkennke], http://cr.openjdk.java.net/~rkennke/AppLauncherEnvTest.jtr failure seems to be an unrelated issue. It is either a test bug, or something is off in the environment. Please file a separate CR.
13-04-2022

One test is currently failing regularily here (as part of tier2 runs), could this be related, or should I open a separate bug or is it perhaps a config issue on my build/machine? failing test: tools/jpackage/share/AppLauncherEnvTest.java failure log: http://cr.openjdk.java.net/~rkennke/AppLauncherEnvTest.jtr
13-04-2022

Now that JDK-8276150 is backed out, this bug is changed from P2 -> P3 to match the original bug fix and this bug becomes the [REDO].
20-11-2021

That's three Tier2 job sets in a row on three different macosx-aarch64 machines. I'm preparing a [BACKOUT] of JDK-8276150.
19-11-2021

One changeset in the jdk-18+25-1653-tier2 build-ID caught my eye: JDK-8276150 Quarantined jpackage apps are labeled as "damaged"
19-11-2021