Re: RFR: JDK-8247353: jtreg tests minor issues clean up

2020-06-10 Thread alexander . matveev
Hi Alexey, Looks good. Thanks, Alexander On 6/10/20 9:21 AM, Alexey Semenyuk wrote: Please review fix [2] for jpackage bug [1]. Minor jpackage jtreg tests clean up of issues uncovered during the recent local test runs. - Alexey [1] https://bugs.openjdk.java.net/browse/JDK-8247353 [2] 

Re: RFR: JDK-8246706: [macos] Allow SigningPackageTest to be built with real certificates

2020-06-08 Thread alexander . matveev
Hi Andy, Looks good. For changing "jpackagerTest.keychain" to ""jpackageTest.keychain" we can file followup bug for this, since SQE depend on this value to be "jpackagerTest.keychain". Thanks, Alexander On 6/5/20 2:27 PM, Alexey Semenyuk wrote: In SigningBase.java: --- KEYCHAIN = (value ==

Re: RFR: JDK-8231283: Evaluate option to install Linux packages in /usr hierarchy

2020-06-08 Thread alexander . matveev
Hi Alexey, Looks good. Thanks, Alexander On 6/8/20 7:26 AM, Alexey Semenyuk wrote: Please review fix [2] for jpackage bug [1]. Add support to jpackage to create Linux packages installing app images in '/usr' tree with splicing of the app image. For --install-dir=/usr jpackag option the

Re: JDK-8238204: run_tests.sh fails on macOS when called from test_jpackage.sh

2020-06-04 Thread alexander . matveev
Hi Alexey, Looks good. Thanks, Alexander On 6/4/20 9:21 AM, Alexey Semenyuk wrote: Please review fix [2] for jpackage bug [1]. Replace xargs call with --no-run-if-empty parameter with bash expressions in run_tests.sh Call run_tests.sh from test_jpackager.sh in a way to avoid shebang

Re: RFR: JDK-8246627: Consolidate app image bundlers

2020-06-04 Thread alexander . matveev
Hi Alexey, Looks good. Thanks, Alexander On 6/4/20 1:46 PM, Alexey Semenyuk wrote: Please review fix [2] for jpackage bug [1]. Move duplicated functionality from LinuxAppBundler, MacAppBundler and WinAppBundler classes in the base class. [2] webrev is on top of [3] webrev. - Alexey [1]

Re: RFR: JDK-824662: Refactor JLinkBundlerHelper and StandardBundlerParam classes

2020-06-04 Thread alexander . matveev
Hi Alexey, Looks good. Thanks, Alexander On 6/4/20 1:22 PM, Alexey Semenyuk wrote: Please review fix [2] for jpackage bug [1]. Move functionality to collect data about app (main class name, main jar, module name, etc) from JLinkBundlerHelper and StandardBundlerParam classes in dedicated

Re: RFR: JDK-8246792: Mac signing tests failed (unsealed contents present in the bundle root)

2020-06-10 Thread alexander . matveev
Hi Alexey, Looks good. Thanks, Alexander On 6/10/20 2:40 PM, Andy Herrick wrote: looks good - This works for me finally. /Andy On 6/10/2020 5:29 PM, Alexey Semenyuk wrote: Please review fix [2] for jpackage bug [1]. Move `.jpackage.xml` file in `app` directory of app image and keep it

Re: RFR: JDK-8247418: Only validate the certificates trust if using the default key user name.

2020-06-11 Thread alexander . matveev
Hi Andy, Looks good. Thanks, Alexander On 6/11/20 1:22 PM, Andy Herrick wrote: Please review the small jpackage test fix at [1] to issue [2]. [1] http://cr.openjdk.java.net/~herrick/8247418/webrev.01/ [2] https://bugs.openjdk.java.net/browse/JDK-8247418 /Andy

Re: RFR: JDK-8247422: --runtime-image on Mac should work for runtime root

2020-06-11 Thread alexander . matveev
Looks good. Thanks, Alexander On 6/11/20 1:19 PM, Andy Herrick wrote: looks good. /Andy On 6/11/2020 1:23 PM, Alexey Semenyuk wrote: Please review fix [2] for jpackage bug [1]. Restore handling not only Java runtime home but also Java runtime root directory in `--runtime-image` option on

RFR: 8236282: [macos] Find permanent solution to macOS test timeout problem JDK-8235738

2020-06-04 Thread alexander . matveev
Please review the jpackage fix for bug [1] at [2]. This is still a workaround for JDK-8236825. Implemented as per Roger suggestion to redirect output to temp file. I did a lot of testing using repro case and was not able to reproduce hang anymore. [1]

RFR: 8233215: jpackage doesn't allow enough flexibility for file type binding

2020-06-08 Thread alexander . matveev
Please review the jpackage fix for bug [1] at [2]. Added support for additional (macOS specific) file association properties. These additional properties should be set via same property file which used for file association. Names and values for properties should match name and values as

Re: RFR: 8233215: jpackage doesn't allow enough flexibility for file type binding

2020-06-09 Thread alexander . matveev
Hi Alexey, http://cr.openjdk.java.net/~almatvee/8233215/webrev.01/ - TKit.assertStringListEquals() will be used instead. Did not noticed that we had this method already. I removed my implementation. - Added "mac." prefix. Thanks, Alexander On 6/8/20 10:57 PM, Alexey Semenyuk wrote:

Re: RFR: JDK-8248239: jpackage adds some arguments twice in case it is re-executed by JLI

2020-07-24 Thread alexander . matveev
Looks good. Thanks, Alexander On 7/24/20 12:39 PM, Andy Herrick wrote: looks good /Andy On 7/21/2020 2:27 PM, Alexey Semenyuk wrote: Hi Aleksei, Looks good! - Alexey On 7/21/2020 11:42 AM, Aleksei Voitylov wrote: Hi, This is the updated fix which checks if LD_LIBRARY_PATH has been

RFR: 8245311: [macos] misc package tests failed due to "execution error: Finder got an error: AppleEvent timed out."

2020-07-15 Thread alexander . matveev
Please review the jpackage fix for bug [1] at [2]. - "hdiutil detach" resource busy error is fixed in same way as JDK-8242786 by repeating detach several times. - pkgbuild timeout will be covered with JDK-8249395. [1] https://bugs.openjdk.java.net/browse/JDK-8245311 [2]

Re: RFR: 8245311: [macos] misc package tests failed due to "execution error: Finder got an error: AppleEvent timed out."

2020-07-17 Thread alexander . matveev
Hi Alexey, Fixed as per your suggestion: http://cr.openjdk.java.net/~almatvee/8245311/webrev.01/ Thanks, Alexander On 7/17/20 4:26 PM, Alexey Semenyuk wrote: Alexander, The change in RetryExecutor.java results in Executor instance created only once and not every time command line should be

Re: 8248248: [macos] EmptyFolderPackageTest.java fails EmptyFolderPackageTest-dmg-setup.scpt exited with 134 code

2020-07-23 Thread alexander . matveev
http://cr.openjdk.java.net/~almatvee/8248248/webrev.01/ - Added INFINITE_TIMEOUT instead of -1. - Fix actually did not work correctly and process never timeout, since we were reading process output and wait with timeout never executed, since reading output was continue until process

RFR: 8250646: hdiutil detach fix JDK-8245311 still fails sometimes

2020-07-30 Thread alexander . matveev
Please review the jpackage fix for bug [1] at [2]. - DMG image can get detach even if "hdiutil detach" return resource busy error. Fixed by stopping trying detach if DMG already got detach. [1] https://bugs.openjdk.java.net/browse/JDK-8250646 [2]

Re: RFR: JDK-8249289: Exception thrown when --temp points to non-existant directory

2020-07-16 Thread alexander . matveev
Hi Andy, Looks good. Thanks, Alexander On 7/16/20 11:44 AM, Andy Herrick wrote: yes - revised as suggested - please re review. /Andy On 7/15/2020 6:41 PM, alexander.matv...@oracle.com wrote: Hi Andy, Can you double check two other places where File.list() was introduced with JDK-8223955

Re: RFR: JDK-8247734: [macos] jpackage fails to retrieve signing certificate when there are multiple

2020-07-16 Thread alexander . matveev
Hi Andy, Looks good. Thanks, Alexander On 7/16/20 2:23 PM, Andy Herrick wrote: Please review fix for jpackage bug [1] at [2]. The behavior is to allow (after a warning message) case where user has multiple certificates matching the given mac-signing-key-user-name, and to allow the full

RFR: 8248261: Add timestamps to jpackage and jpackage tests verbose output

2020-07-06 Thread alexander . matveev
Please review the jpackage fix for bug [1] at [2]. Added timestamp to verbose and test output in form of [HH:mm:ss.SSS]. [1] https://bugs.openjdk.java.net/browse/JDK-8248261 [2] http://cr.openjdk.java.net/~almatvee/8248261/webrev.00/ Thanks, Alexander

Integrated: 8255619: Localized WinResources.properties have MsiInstallerStrings_en.wxl resource

2020-12-07 Thread Alexander Matveev
On Sat, 5 Dec 2020 05:33:25 GMT, Alexander Matveev wrote: > Fixed by using correct localized resources. This pull request has now been integrated. Changeset: a265c201 Author: Alexander Matveev URL: https://git.openjdk.java.net/jdk/commit/a265c201 Stats: 2 lines in 2 files chan

RFR: 8255619: Localized WinResources.properties have MsiInstallerStrings_en.wxl resource

2020-12-04 Thread Alexander Matveev
Fixed by using correct localized resources. - Commit messages: - 8255619: Localized WinResources.properties have MsiInstallerStrings_en.wxl resource Changes: https://git.openjdk.java.net/jdk/pull/1638/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk=1638=00 Issue:

RFR: 8257924: Use full path when running external executable from jpackage

2020-12-09 Thread Alexander Matveev
Changed all external executables to run via full path to avoid potential issues. - Commit messages: - 8257924: Use full path when running external executable from jpackage Changes: https://git.openjdk.java.net/jdk/pull/1710/files Webrev:

Re: RFR: JDK-8257539: tools/jpackage/windows/WinL10nTest.java unpack.bat failed with Exit code: 1618

2020-12-07 Thread Alexander Matveev
On Mon, 7 Dec 2020 20:29:56 GMT, Andy Herrick wrote: > increase retries and timeout increasing in runMsiexecWithRetries Looks like test failed due to: [Fatal Error] b.wxl:3:1: XML document structures must start and end within the same entity. So, I am not sure how increased repeat will help.

RFR: 8238781: [macos] jpackage tests failed due to "hdiutil: convert failed" in various ways

2020-12-08 Thread Alexander Matveev
This is similar issue we used to have for hdiutil create/detach, but for "convert". Added same workaround to repeat command. I also added repeat for "udifrez" command just in case. - Commit messages: - 8238781: [macos] jpackage tests failed due to "hdiutil: convert failed" in

Re: RFR: JDK-8256801: tools/jpackage/share/FileAssociationsTest.java#id0 failed unpack.bat with "Exit code: 1603"

2020-11-23 Thread Alexander Matveev
On Mon, 23 Nov 2020 20:16:58 GMT, Andy Herrick wrote: > When executing msiexec (possibly from batch script) retry on exitCode 1603 as > well as 1618 Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/1400

Re: RFR: JDK-8257539: tools/jpackage/windows/WinL10nTest.java unpack.bat failed with Exit code: 1618

2020-12-09 Thread Alexander Matveev
On Wed, 9 Dec 2020 18:58:54 GMT, Andy Herrick wrote: > Same code change as https://github.com/openjdk/jdk/pull/1676 that got messed > up with merge Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/1720

Integrated: 8238781: [macos] jpackage tests failed due to "hdiutil: convert failed" in various ways

2020-12-09 Thread Alexander Matveev
On Tue, 8 Dec 2020 07:45:30 GMT, Alexander Matveev wrote: > This is similar issue we used to have for hdiutil create/detach, but for > "convert". Added same workaround to repeat command. I also added repeat for > "udifrez" command just in case. This pull re

Re: RFR: 8257924: Use full path when running external executable from jpackage

2020-12-09 Thread Alexander Matveev
On Wed, 9 Dec 2020 18:39:14 GMT, Alexey Semenyuk wrote: >> as long as your sure these are always in /usr/bin this is fine. >> If there is any chance of them being somewhere else instead we need a >> findTool type mechanism > > What if users would like to use not the default tools with jpackage?

Integrated: 8257924: Use full path when running external executable from jpackage

2020-12-09 Thread Alexander Matveev
On Wed, 9 Dec 2020 08:05:17 GMT, Alexander Matveev wrote: > Changed all external executables to run via full path to avoid potential > issues. This pull request has now been integrated. Changeset: eb1c8a15 Author:Alexander Matveev URL: https://git.openjdk.java.net/jdk/

Re: RFR: JDK-8223322: Improve concurrency in jpackage instances

2020-12-17 Thread Alexander Matveev
On Thu, 17 Dec 2020 20:46:50 GMT, Andy Herrick wrote: > Remove all non final static variables in jpackage java code (using > InheritableThreadLocal for Logger and Argument instances) and remove > sychronization in JPackageToolProvider. Changes looks fine, but are we sure that external 3rd

Re: [jdk16] RFR: 8258293: tools/jpackage/share/RuntimePackageTest.java#id0 with RuntimePackageTest.testUsrInstallDir2

2020-12-15 Thread Alexander Matveev
On Wed, 16 Dec 2020 00:24:20 GMT, Alexey Semenyuk wrote: > Ignore files created by prefs subsystem when checking if source runtime > contains the same files as packed runtime. Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk16/pull/31

Re: RFR: 8255899: Allow uninstallation of jpackage exe bundles

2020-12-14 Thread Alexander Matveev
On Mon, 14 Dec 2020 19:33:44 GMT, Alexey Semenyuk wrote: > Adds support for "uninstall" parameter for exe uninstallers created by > jpackage. > Added logging and error reporting to exe uninstallers. > > - jpackage jni lib (jpackage.cpp): added functionality to extract ProductCode > property

Re: RFR: 8233332: Need to create exploded tests covering all forms of modules

2020-11-10 Thread Alexander Matveev
On Fri, 6 Nov 2020 21:59:51 GMT, Alexey Semenyuk wrote: > 822: Need to create exploded tests covering all forms of modules Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/1103

Re: RFR: JDK-8189198: Add "forRemoval = true" to Applet APIs [v2]

2020-11-12 Thread Alexander Matveev
On Thu, 12 Nov 2020 20:48:13 GMT, Andy Herrick wrote: >> JDK-8189198: Add "forRemoval = true" to Applet APIs > > Andy Herrick has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes the unrelated changes > brought in by the

Re: RFR: 8255947: [macos] Signed macOS jpackage app doesn't filter spurious '-psn' argument [v2]

2020-11-12 Thread Alexander Matveev
> This is regression from JDK-8242302 and for some reason removing -psn > argument code was removed during refactoring. Fixed be adding removing -psn > argument back. Also, test was added to test this functionality. Alexander Matveev has updated the pull request incrementally

Integrated: 8255947: [macos] Signed macOS jpackage app doesn't filter spurious '-psn' argument

2020-11-16 Thread Alexander Matveev
On Wed, 11 Nov 2020 04:28:02 GMT, Alexander Matveev wrote: > This is regression from JDK-8242302 and for some reason removing -psn > argument code was removed during refactoring. Fixed be adding removing -psn > argument back. Also, test was added to test this functionality. This pul

Re: RFR: 8255947: [macos] Signed macOS jpackage app doesn't filter spurious '-psn' argument [v3]

2020-11-16 Thread Alexander Matveev
> This is regression from JDK-8242302 and for some reason removing -psn > argument code was removed during refactoring. Fixed be adding removing -psn > argument back. Also, test was added to test this functionality. Alexander Matveev has updated the pull request incrementally

Re: RFR: 8235304: JPackage Windows test should be added to set Publisher [v2]

2020-11-19 Thread Alexander Matveev
On Thu, 19 Nov 2020 22:26:20 GMT, Alexey Semenyuk wrote: >> 8235304: JPackage Windows test should be added to set Publisher > > Alexey Semenyuk has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes the unrelated changes > brought in

Re: RFR: JDK-8256475: Fix Behavior when Installer name differs from applicatio… [v4]

2020-11-19 Thread Alexander Matveev
On Thu, 19 Nov 2020 20:45:23 GMT, Andy Herrick wrote: >> …n name. > > Andy Herrick has updated the pull request incrementally with one additional > commit since the last revision: > > JDK-8256475: Fix Behavior when Installer name differs from application name. Marked as reviewed by almatvee

Re: RFR: JDK-8256475: Fix Behavior when Installer name differs from applicatio…

2020-11-18 Thread Alexander Matveev
On Wed, 18 Nov 2020 22:17:07 GMT, Andy Herrick wrote: > …n name. src/jdk.jpackage/windows/classes/jdk/jpackage/internal/WinMsiBundler.java line 312: > 310: Path appDir; > 311: if (appName == null) { > 312: // this can only happen when no name is given and using >

Re: RFR: 8227400: Adjust jib profiles to make 3rd party tools for creating installers available on Mach5 test machines

2020-11-18 Thread Alexander Matveev
On Wed, 18 Nov 2020 21:57:13 GMT, Alexey Semenyuk wrote: > Fix test failures. They didn't fail in Mach5 test runs as WiX was not > available on test machines and these tests were not executed. Marked as reviewed by almatvee (Committer). - PR:

RFR: 8255947: [macos] Signed macOS jpackage app doesn't filter spurious '-psn' argument

2020-11-10 Thread Alexander Matveev
This is regression from JDK-8242302 and for some reason removing -psn argument code was removed during refactoring. Fixed be adding removing -psn argument back. Also, test was added to test this functionality. - Commit messages: - 8255947: [macos] Signed macOS jpackage app doesn't

Re: RFR: JDK-8254920: Application launched with jpackage produced .exe crashes JVM [v2]

2020-10-30 Thread Alexander Matveev
On Fri, 30 Oct 2020 12:47:08 GMT, Andy Herrick wrote: >> JVM > > Andy Herrick has updated the pull request incrementally with one additional > commit since the last revision: > > JDK-8254920: Application launched with jpackage produced .exe crashes JVM Marked as reviewed by almatvee

Re: RFR: JDK-8254783: jpackage fails on Windows when application name differs …

2020-10-20 Thread Alexander Matveev
On Sat, 17 Oct 2020 14:01:22 GMT, Andy Herrick wrote: > …from installer name > JDK-8254783: jpackage fails on Windows when application name differs from > installer name > When using --app-image, to create MSI installer, use the application name > from AppImageData instead of the Msi >

Re: RFR: JDK-8259062: Remove MacAppStoreBundler

2021-01-13 Thread Alexander Matveev
On Wed, 6 Jan 2021 15:52:07 GMT, Andy Herrick wrote: > JDK-8259062: Remove MacAppStoreBundler Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/1962

Re: RFR: JDK-8259238: Clean up Log.java and remove usage of non-final static variables.

2021-01-13 Thread Alexander Matveev
On Thu, 7 Jan 2021 16:40:26 GMT, Andy Herrick wrote: > JDK-8259238: Clean up Log.java and remove usage of non-final static variables. Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/1977

Re: RFR: JDK-8258755: jpackage: Invalid 32-bit exe when building app-image

2021-01-13 Thread Alexander Matveev
On Mon, 11 Jan 2021 17:42:21 GMT, Andy Herrick wrote: > JDK-8258755: jpackage: Invalid 32-bit exe when building app-image src/jdk.jpackage/share/native/applauncher/JvmLauncher.cpp line 37: > 35: > 36: #if defined(_WIN32) && !defined(_WIN64) > 37: #define LAUNCH_FUNC "_JLI_Launch@56" Why

Re: RFR: JDK-8258755: jpackage: Invalid 32-bit exe when building app-image

2021-01-13 Thread Alexander Matveev
On Mon, 11 Jan 2021 17:42:21 GMT, Andy Herrick wrote: > JDK-8258755: jpackage: Invalid 32-bit exe when building app-image Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/2030

Re: RFR: 8259570: (macos) tools/jpackage tests fails with 'hdiutil: couldn't eject "disk2" - Resource busy' [v2]

2021-02-01 Thread Alexander Matveev
d seems to solves problem as well when hdiutil cannot acquire lock on > file. I also fixed in same way detach in our test helper. Alexander Matveev has updated the pull request incrementally with one additional commit since the last revision: 8259570: (macos) tools/jpackage test

Re: RFR: 8259570: (macos) tools/jpackage tests fails with 'hdiutil: couldn't eject "disk2" - Resource busy'

2021-02-01 Thread Alexander Matveev
On Tue, 2 Feb 2021 00:29:39 GMT, Alexey Semenyuk wrote: >> We did not able to run "hdiutil convert" due to hdiutil did not able to >> acquire lock on DMG image file. In this condition we got "Resource busy" >> from "hdiutil detach" and on repeated attempt we was getting "File Not >> Found"

Re: RFR: JDK-8259927: Windows jpackage installer issues

2021-02-03 Thread Alexander Matveev
On Wed, 3 Feb 2021 14:08:13 GMT, Andy Herrick wrote: > Remove lines in WixSourceBuilder that adds directive to rm-rf the parent > dir(s) of the install-dir. These directories get removed anyway if they are > empty without these lines, and should be left alone if not empty after > removing

Re: RFR: 8260592: jpackage tests fail when Desktop is not supported

2021-01-28 Thread Alexander Matveev
On Thu, 28 Jan 2021 23:41:44 GMT, Alexey Semenyuk wrote: >> I would prefer to have separate messages for "headless" and "desktop >> capable". I can merge these, if you insist. > > Duplicated messages are not much help in understanding control flow. I'd > change the new message or merge

Re: RFR: JDK-8260335: [macos] Running app using relative path causes problems

2021-01-28 Thread Alexander Matveev
On Wed, 27 Jan 2021 12:43:40 GMT, Andy Herrick wrote: > Fixing FileUtils.dirname() to skip over "/.". Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/2260

Re: RFR: 8254702: jpackage app launcher crashes on CentOS [v2]

2021-01-29 Thread Alexander Matveev
On Fri, 29 Jan 2021 23:06:20 GMT, Alexey Semenyuk wrote: >> Fix for https://bugs.openjdk.java.net/browse/JDK-8254702 >> >> The fix splits Linux app launcher in app launcher and launcher shared lib. >> App launcher is pure C and doesn't have C++ code. App launcher lib >> incorporates bulk of

Re: RFR: 8264144: Add handling of "--about-url" CLI parameter for RPM/DEB packages [v2]

2021-06-08 Thread Alexander Matveev
On Tue, 8 Jun 2021 17:25:46 GMT, Alexey Semenyuk wrote: >> …ages > > Alexey Semenyuk has updated the pull request with a new target base due to a > merge or a rebase. The incremental webrev excludes the unrelated changes > brought in by the merge/rebase. The pull request contains two

[jdk17] RFR: 8269036: tools/jpackage/share/AppImagePackageTest.java failed with "hdiutil: create failed - Resource busy"

2021-06-22 Thread Alexander Matveev
Looks like another "Resource busy" issue similar to recent fixes for "hdiutil convert" and "hdiutil detach". Workaround in same way by repeating "create" command. Modified RetryExecutor to pass write to file flag, otherwise "hdiutil create" might deadlock. Also, repeat is done only for creating

Re: RFR: 8268974: jpackage fails to handle --dest option containing "bin" folder

2021-06-18 Thread Alexander Matveev
On Fri, 18 Jun 2021 22:46:24 GMT, Alexey Semenyuk wrote: > GetApplicationHomeFromDll() fails if the path to libjli.so contains "bin" > component (/tmp/bin/HelloWorld/lib/runtime/lib/libjli.so). TruncatePath() > looks for "/bin/" first in "/tmp/bin/HelloWorld/lib/runtime/lib/libjli.so" >

Re: RFR: 8266456: Replace direct TKit.run() calls with jdk.jpackage.test.Annotations.Test annotation [v3]

2021-05-10 Thread Alexander Matveev
. > - Fixed issue with jtreg.SkippedException which caused test to fail instead > of being skipped, since it was wrapped in ExceptionBox. Alexander Matveev has updated the pull request incrementally with one additional commit since the last revision: 8266456: Replace direc

Re: RFR: 8266456: Replace direct TKit.run() calls with jdk.jpackage.test.Annotations.Test annotation [v2]

2021-05-10 Thread Alexander Matveev
On Sat, 8 May 2021 01:44:46 GMT, Alexander Matveev wrote: >> - Replaced direct TKit.run() calls with Test annotation. >> - Increased timeout for SigningPackageTest from default to 360 due to >> timeout. This is regression from JDK-8248904 due to changes done in signin

RFR: 8249395: (macos) jpackage tests timeout on MacPro5_1 systems

2021-05-13 Thread Alexander Matveev
Looks like it is similar to JDK-8236282, except for "hdiutil create". Based on call stack from failed test we launched "hdiutil create" and were waiting for it to terminate while reading output from it. However, based on process dump from machine which reproduced this issue, hdiutil no longer

Integrated: 8249395: (macos) jpackage tests timeout on MacPro5_1 systems

2021-05-14 Thread Alexander Matveev
On Fri, 14 May 2021 04:24:42 GMT, Alexander Matveev wrote: > Looks like it is similar to JDK-8236282, except for "hdiutil create". Based > on call stack from failed test we launched "hdiutil create" and were waiting > for it to terminate while reading output from

RFR: 8266456: Replace direct TKit.run() calls with jdk.jpackage.test.Annotations.Test annotation

2021-05-06 Thread Alexander Matveev
- Replaced direct TKit.run() calls with Test annotation. - Increased timeout for SigningPackageTest from default to 360 due to timeout. This is regression from JDK-8248904 due to changes done in signing and --remove-signature adds additional time since it is run per file. - Fixed issue with

Re: RFR: 8266603: jpackage: Add missing copyright file in Java runtime .deb installers [v2]

2021-05-07 Thread Alexander Matveev
On Fri, 7 May 2021 19:57:17 GMT, Alexey Semenyuk wrote: >> jpackage should create copyright file in /usr/share/doc directory tree when >> building .deb package for Java runtime with installation directory in /usr >> directory tree. >> >> jpackage creates share/doc/copyright file in

Re: RFR: 8266456: Replace direct TKit.run() calls with jdk.jpackage.test.Annotations.Test annotation

2021-05-07 Thread Alexander Matveev
On Fri, 7 May 2021 02:48:44 GMT, Alexander Matveev wrote: > - Replaced direct TKit.run() calls with Test annotation. > - Increased timeout for SigningPackageTest from default to 360 due to > timeout. This is regression from JDK-8248904 due to changes done in signing > and --remo

Re: RFR: 8266456: Replace direct TKit.run() calls with jdk.jpackage.test.Annotations.Test annotation

2021-05-07 Thread Alexander Matveev
On Fri, 7 May 2021 16:50:15 GMT, Alexey Semenyuk wrote: >> - Replaced direct TKit.run() calls with Test annotation. >> - Increased timeout for SigningPackageTest from default to 360 due to >> timeout. This is regression from JDK-8248904 due to changes done in signing >> and --remove-signature

Re: RFR: 8266456: Replace direct TKit.run() calls with jdk.jpackage.test.Annotations.Test annotation [v2]

2021-05-07 Thread Alexander Matveev
. > - Fixed issue with jtreg.SkippedException which caused test to fail instead > of being skipped, since it was wrapped in ExceptionBox. Alexander Matveev has updated the pull request incrementally with one additional commit since the last revision: 8266456: Replace direc

Re: RFR: 8266162: Remove JPackage duplicate tests

2021-05-12 Thread Alexander Matveev
On Wed, 12 May 2021 20:34:08 GMT, Alexey Semenyuk wrote: > 8266162: Remove JPackage duplicate tests Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/4003

RFR: 8267403: tools/jpackage/share/FileAssociationsTest.java#id0 failed with "Error: Bundler "Mac PKG Package" (pkg) failed to produce a package"

2021-05-20 Thread Alexander Matveev
Looks like another issue similar to hdiutil (JDK-8249395) when process is gone, but we still waiting for it. I was not able to reproduce this issue by running test or pkgbuild separately and conclusion was made based on logs. Fixed in same way as hdiutil issue. Also, I added logging PID for

Integrated: 8267056: tools/jpackage/share/RuntimePackageTest.java fails with NoSuchFileException

2021-05-20 Thread Alexander Matveev
On Wed, 19 May 2021 21:00:07 GMT, Alexander Matveev wrote: > For debug build on macOS, runtime which used for test fill be located in > /path/jdk-17/fastdebug and /path/jdk-17 will not contain any other files > except fastdebug and in this case our check to decide if we need to

Re: RFR: 8267056: tools/jpackage/share/RuntimePackageTest.java fails with NoSuchFileException [v2]

2021-05-20 Thread Alexander Matveev
rrect. Fixed by skipping > this check for runtime and only using it for app. Also, added ignoring > .DS_Store to test which is needed if user used Finder to look inside runtime > folder which will cause .DS_Store to be created and will cause test to fail, > since this file is not be

Re: RFR: 8267056: tools/jpackage/share/RuntimePackageTest.java fails with NoSuchFileException [v2]

2021-05-20 Thread Alexander Matveev
On Thu, 20 May 2021 16:15:21 GMT, Alexey Semenyuk wrote: >> Alexander Matveev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8267056: tools/jpackage/share/RuntimePackageTest.java fails with >> No

RFR: 8267056: tools/jpackage/share/RuntimePackageTest.java fails with NoSuchFileException

2021-05-19 Thread Alexander Matveev
For debug build on macOS, runtime which used for test fill be located in /path/jdk-17/fastdebug and /path/jdk-17 will not contain any other files except fastdebug and in this case our check to decide if we need to copy app or runtime will return /path/jdk-17 which is not correct. Fixed by

Integrated: 8266456: Replace direct TKit.run() calls with jdk.jpackage.test.Annotations.Test annotation

2021-05-11 Thread Alexander Matveev
On Fri, 7 May 2021 02:48:44 GMT, Alexander Matveev wrote: > - Replaced direct TKit.run() calls with Test annotation. > - Increased timeout for SigningPackageTest from default to 360 due to > timeout. This is regression from JDK-8248904 due to changes done in signing > and --remo

Re: RFR: JDK-8267598: jpackage removes system libraries from java.library.path

2021-06-01 Thread Alexander Matveev
On Wed, 26 May 2021 11:26:24 GMT, Andy Herrick wrote: > JDK-8267598: jpackage removes system libraries from java.library.path Marked as reviewed by almatvee (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/4203

Re: RFR: JDK-8267764: jpackage cannot handle window screensaver files when EXE renamed as SCR

2021-06-02 Thread Alexander Matveev
On Wed, 2 Jun 2021 13:48:47 GMT, Andy Herrick wrote: > JDK-8267764: jpackage cannot handle window screensaver files when EXE renamed > as SCR Marked as reviewed by almatvee (Reviewer). Can we add a simple test for .scr executables? - PR:

Re: RFR: JDK-8268150: tier2: test/jdk/tools/jpackage/junit/junit.java needs updating for jtreg 6

2021-06-02 Thread Alexander Matveev
On Thu, 3 Jun 2021 00:47:45 GMT, Jonathan Gibbons wrote: > Please review a small test fix, to include hamcrest.jar, as required by the > latest version of JUnit in jtreg 6. Marked as reviewed by almatvee (Reviewer). - PR: https://git.openjdk.java.net/jdk/pull/4328

Integrated: 8267403: tools/jpackage/share/FileAssociationsTest.java#id0 failed with "Error: Bundler "Mac PKG Package" (pkg) failed to produce a package"

2021-05-25 Thread Alexander Matveev
On Fri, 21 May 2021 04:34:22 GMT, Alexander Matveev wrote: > Looks like another issue similar to hdiutil (JDK-8249395) when process is > gone, but we still waiting for it. I was not able to reproduce this issue by > running test or pkgbuild separately and conclusion was made base

Re: [jdk17] RFR: 8269185: Directories in /opt/runtimepackagetest and /path/to/jdk-17 are different

2021-07-02 Thread Alexander Matveev
On Fri, 2 Jul 2021 22:17:09 GMT, Alexey Semenyuk wrote: > Disable stripping to prevent rpmbuild from modifying executables Marked as reviewed by almatvee (Reviewer). - PR: https://git.openjdk.java.net/jdk17/pull/207

Re: [jdk17] RFR: 8269403: Fix jpackage tests to gracefully handle jpackage app launcher crashes

2021-06-25 Thread Alexander Matveev
On Fri, 25 Jun 2021 22:41:10 GMT, Alexey Semenyuk wrote: > jpackage app launcher randomly crashes JVM at termination in EMS enabled JDK > builds. > Until the root cause of the issue is understood and fixed let's add a > workaround to jpackage tests to run test app few more times if the first

[jdk17] Integrated: 8269036: tools/jpackage/share/AppImagePackageTest.java failed with "hdiutil: create failed - Resource busy"

2021-06-25 Thread Alexander Matveev
On Tue, 22 Jun 2021 21:59:43 GMT, Alexander Matveev wrote: > Looks like another "Resource busy" issue similar to recent fixes for "hdiutil > convert" and "hdiutil detach". Workaround in same way by repeating "create" > command. Modified Re

RFR: 8266179: [macos] jpackage should specify architecture for produced pkg files

2021-04-29 Thread Alexander Matveev
jpackage should specify architecture for produced PKG files via hostArchitectures="x86_x64 or arm64". aarch64 installer will be installable on x64 without specifying hostArchitectures which is not correct and if install on arm Mac it will request Rosetta 2. With proposed fix by setting

Re: RFR: 8266179: [macos] jpackage should specify architecture for produced pkg files

2021-04-30 Thread Alexander Matveev
On Fri, 30 Apr 2021 04:22:37 GMT, Alexander Matveev wrote: > jpackage should specify architecture for produced PKG files via > hostArchitectures="x86_x64 or arm64". aarch64 installer will be installable > on x64 without specifying hostArchitectures which is not correc

Re: RFR: 8266179: [macos] jpackage should specify architecture for produced pkg files [v2]

2021-04-30 Thread Alexander Matveev
n x64 Mac and will be installable on arm Mac > without triggering installation of Rosetta 2. Alexander Matveev has updated the pull request incrementally with one additional commit since the last revision: 8266179: [macos] jpackage should specify architecture for produced pkg file

Re: RFR: JDK-8266227: Fix help text for --mac-signing-keychain

2021-04-30 Thread Alexander Matveev
On Fri, 30 Apr 2021 15:25:13 GMT, Andy Herrick wrote: > JDK-8266227: Fix help text for --mac-signing-keychain Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/3819

Re: RFR: JDK-8266129: tools/jpackage/windows/WinInstallerIconTest.java hangs with fastdebug

2021-04-30 Thread Alexander Matveev
On Fri, 30 Apr 2021 20:19:25 GMT, Andy Herrick wrote: > JDK-8266129: tools/jpackage/windows/WinInstallerIconTest.java hangs with > fastdebug > > just disabling this test when vm.debug Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/3827

Re: RFR: 8266179: [macos] jpackage should specify architecture for produced pkg files [v2]

2021-05-03 Thread Alexander Matveev
On Mon, 3 May 2021 16:01:36 GMT, Alexey Semenyuk wrote: >> Alexander Matveev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8266179: [macos] jpackage should specify architecture for produced pkg >>

Re: RFR: 8266179: [macos] jpackage should specify architecture for produced pkg files [v3]

2021-05-03 Thread Alexander Matveev
n x64 Mac and will be installable on arm Mac > without triggering installation of Rosetta 2. Alexander Matveev has updated the pull request incrementally with one additional commit since the last revision: 8266179: [macos] jpackage should specify architecture for produced pkg file

Integrated: 8266179: [macos] jpackage should specify architecture for produced pkg files

2021-05-04 Thread Alexander Matveev
On Fri, 30 Apr 2021 04:22:37 GMT, Alexander Matveev wrote: > jpackage should specify architecture for produced PKG files via > hostArchitectures="x86_x64 or arm64". aarch64 installer will be installable > on x64 without specifying hostArchitectures which is not correc

Re: RFR: 8266179: [macos] jpackage should specify architecture for produced pkg files [v2]

2021-05-03 Thread Alexander Matveev
On Mon, 3 May 2021 15:58:56 GMT, Alexey Semenyuk wrote: >> Alexander Matveev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> 8266179: [macos] jpackage should specify architecture for produced pkg >>

Re: RFR: 8266179: [macos] jpackage should specify architecture for produced pkg files [v4]

2021-05-03 Thread Alexander Matveev
n x64 Mac and will be installable on arm Mac > without triggering installation of Rosetta 2. Alexander Matveev has updated the pull request incrementally with one additional commit since the last revision: 8266179: [macos] jpackage should specify architecture for produced pkg file

Re: RFR: 8266179: [macos] jpackage should specify architecture for produced pkg files [v4]

2021-05-03 Thread Alexander Matveev
On Mon, 3 May 2021 22:52:21 GMT, Alexander Matveev wrote: >> jpackage should specify architecture for produced PKG files via >> hostArchitectures="x86_x64 or arm64". aarch64 installer will be installable >> on x64 without specifying hostArchitectures which is no

Re: RFR: 8261300: jpackage: rewrite while(0)/while(false) to proper blocks [v2]

2021-02-08 Thread Alexander Matveev
On Mon, 8 Feb 2021 15:25:02 GMT, Aleksey Shipilev wrote: >> After JDK-8254702, SonarCloud instance complains about blocks like these: >> "Change this loop body so that it can be executed more than once." >> >> int initJvmlLauncherData(JvmlLauncherData* ptr) const { >> // Store path

Re: RFR: 8261298: LinuxPackage.c, getJvmLauncherLibPath RPM->DEB typo

2021-02-08 Thread Alexander Matveev
On Mon, 8 Feb 2021 08:49:17 GMT, Aleksey Shipilev wrote: > SonarCloud instance reports as new warning after JDK-8254702: > > This branch can not be reached because the condition duplicates a previous > condition in the same sequence of "if/else if" statements. > > char*

Re: RFR: 8223188: Consider rewriting in C++ or moving to ".c" files

2021-02-08 Thread Alexander Matveev
On Mon, 8 Feb 2021 22:26:22 GMT, Alexey Semenyuk wrote: > Remove needless `#ifdef __cplusplus` from .cpp sources Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/2466

RFR: 8259570: (macos) tools/jpackage tests fails with 'hdiutil: couldn't eject "disk2" - Resource busy'

2021-02-01 Thread Alexander Matveev
We did not able to run "hdiutil convert" due to hdiutil did not able to acquire lock on DMG image file. In this condition we got "Resource busy" from "hdiutil detach" and on repeated attempt we was getting "File Not Found" error. According to some research "Resource Busy" is normal error

Integrated: 8259570: (macos) tools/jpackage tests fails with 'hdiutil: couldn't eject "disk2" - Resource busy'

2021-02-02 Thread Alexander Matveev
On Mon, 1 Feb 2021 23:41:38 GMT, Alexander Matveev wrote: > We did not able to run "hdiutil convert" due to hdiutil did not able to > acquire lock on DMG image file. In this condition we got "Resource busy" from > "hdiutil detach" and on repeated

Re: RFR: JDK-8259926: Error in jpackage sample usage in the help text

2021-03-22 Thread Alexander Matveev
On Mon, 22 Mar 2021 20:40:09 GMT, Andy Herrick wrote: > JDK-8259926: Error in jpackage sample usage in the help text Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/3132

Re: RFR: JDK-8263887: Re-create default icons

2021-03-22 Thread Alexander Matveev
On Mon, 22 Mar 2021 13:03:10 GMT, Andy Herrick wrote: > JDK-8263887: Re-create default icons Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/3118

Re: RFR: 8236127: Use value of --icon CLI option to set icon for exe installers

2021-04-05 Thread Alexander Matveev
On Mon, 5 Apr 2021 19:46:43 GMT, Alexey Semenyuk wrote: > Use value of `--icon` jpackage CLI option to set icon for exe installers. Marked as reviewed by almatvee (Committer). - PR: https://git.openjdk.java.net/jdk/pull/3347

<    1   2   3   4   5   6   >