-
-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jdk_tools_1 jpackage tests in Windows JDK 17 & 21 fail due to signing issue #4831
Comments
According to history tests only passed on test-azure-win2012r2-x64-1 and test-azure-win2012r2-x64-3. test-azure-win2012r2-x64-1 is offline and rerun on test-azure-win2012r2-x64-3 got the same failure. https://ci.adoptium.net/job/Grinder/7783/ . Current tests failed on all machines. |
@sxa Could you take a look at this? |
Brain is exploding today with too many things going on ... I've kicked off https://ci.adoptium.net/job/Grinder/7834/ on the previous GA level to verify whether this is somehow the result of a regression while I try and figure out the next step... |
@sophia-guo @jiekang Can you try running it on one of the TC windows machines? |
OK that one with jdk-17.0.8 GA failed a couple of tzdata tests but passed the others that you were having trouble with - this is a direct comparison running on the same test-azure-win2012r2-x64-3 as your Grinder 7783, so this would seem to be something different in the new build rather than something having changed in the infrastructure. Direct link to one particular test: |
I got same failure on TC windows machines temurin-compliance/job/Grinder/3828, temurin-compliance/job/Grinder/3827 |
@judovana Could you please take a look at this? If it happens to red hat jdk? |
Running jdk21 with azul latest JDK21.0.1+12 on different machines passed temurin-compliance/job/Grinder/3843 - win11-x64-4cpu-f5z0vu
Temurin build consistently hit the same issue on all machines. Need deeper investigation |
I temporarily turned off windows defender on test-azure-win2022-x64-1 in light of the warning message above and kicked off jdk_tools jdk17 https://ci.adoptium.net/job/Grinder/7862/console still 57 failures |
FWIW:
|
Noting that Sophia has confirmed in an edit to her previous comment that Azul and Temurin are showing different results when the test is run on the same machine. |
@RadekCap do we have windows defender on on out vms? I really doubt |
Windows Defender is disabled because it prevents running code from unknown locations. You can't create a folder in a disk root and run exe file from there. It's stopped by Defender. |
I think it's still worth disabling the defender on test-azure-win2012r2-x64-3 to see if tests behavior will be different as the tests result does suggest that might affect the tests. @Haroon-Khel The latest successful run in on Sep 18 on test-azure-win2012r2-x64-1 . |
Disable the defender might help to find the real cause of the failure. |
This method does not seem to work on test-azure-win2012r2-x64-3. Neither does the method I used to disable defender on test-azure-win2022-x64-1. From some google searches, i'm beginning to think that defender is not installed on test-azure-win2012r2-x64-3 |
It is also worth noting that in the rerun on test-azure-win2022-x64-1 after disabling defender, https://ci.adoptium.net/job/Grinder/7862/, though the test |
Some notes: test-ibmcloud-win2012r2-x64-2 https://ci.adoptium.net/job/Grinder/7876/ The main failing tests are the following 24
For test jobs showing 48 failures, the TAP files consist of 24 duplicated tests I've rebuilt test-azure-win2019-x64-1's grinder after turning its defender off jdk_tools using the last GA: |
Previous comment seems consistent with what I saw (which is good!). |
Some more Grinders to gether more data points ... All using the master branch of aqa-tests due to an issue with the AIX .1 respin on the 0.9.9-release branch
Note: 2023-09-15 had no win64 build |
Based on the table above there was a difference in the windows signing process between the build that worked (29th September) and the first that didn't (4th October). FYI @andrew-m-leonard |
Significance of jpackage is it is signed within the JMOD now:
need to investigate |
jmod jdk.jpackages file: classes\jdk\jpackage\internal\resources\jpackageapplauncher.exe |
ARGH! That's in the pipelines which I wasn't looking it. On this basis I feel we need a ci-jenkins-pipelines reference in the SBOM as well which we don't currently have. OK So adoptium/ci-jenkins-pipelines@9ff239d went in around the same time (PR 822) |
Not sure but it's consistent with all the builds from a specific date based on the table above. |
So looks like it's not being signed, as it's not being stashed... I'll work on a fix |
No, jpackageapplauncher is unique as only being present in the JMOD, the signing job signs signs the visible jdk bin exe's the JMOD exe signing happens during the build. |
Yeah I remember having to specifically edge-case this with the macOS binaries when this change was first made to the JDK |
Thanks @gdams yes, it was my misstake in adding the Windows signing of jpackagelauncher, not ensuring the correct windows exe's are signed!! |
@sxa @Haroon-Khel fyi, we will also need to re-publish jdk17u Win32: http://20.90.182.165/output/test?id=65304a2220748f006f8fd465 |
Fixed by adoptium/ci-jenkins-pipelines#831 |
Re-builds in-progress for release: |
From examining:
Failed run: https://ci.adoptium.net/job/Test_openjdk21_hs_extended.openjdk_x86-64_windows_testList_2/22/testReport/tools_jpackage_windows_WinConsoleTest/java/WinConsoleTest/
Successful run:
https://ci.adoptium.net/job/Test_openjdk21_hs_extended.openjdk_x86-64_windows_testList_2/18/testReport/tools_jpackage_windows_WinConsoleTest/java/WinConsoleTest/
Almost all of the failures mention something similar to:
The notable output in the failure run that isn't in the successful run is:
Test Info
Test Name: jdk_tools_1
Test Duration: 18 min 1 sec
Machine: build-azure-win2012r2-x64-2
TRSS link for the test output: http://20.90.182.165/output/test?id=65301ea720748f006f8f3b66
Build Info
Build Name: Test_openjdk17_hs_extended.openjdk_x86-64_windows_testList_0
Jenkins Build start time: Oct 18 2023, 06:21 am
Jenkins Build URL: https://ci.adoptium.net/job/Test_openjdk17_hs_extended.openjdk_x86-64_windows_testList_0/117/
TRSS link for the build: http://20.90.182.165/allTestsInfo?buildId=65301def20748f006f8f3776
Java Version
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode, sharing)
This test has been failed 3 times since Sep 24 2023, 09:31 am
Java Version when the issue first seen
openjdk version "17.0.9-beta" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+7-202309241213 (build 17.0.9-beta+7-202309241213)
OpenJDK 64-Bit Server VM Temurin-17.0.9+7-202309241213 (build 17.0.9-beta+7-202309241213, mixed mode, sharing)
Jenkins Build URL: https://ci.adoptium.net/job/Test_openjdk17_hs_extended.openjdk_x86-64_windows_testList_0/115/
The test failed on machine build-azure-win2012r2-x64-2 1 times
The test failed on machine test-azure-win2019-x64-1 1 times
The test failed on machine test-azure-win2016-x64-1 1 times
Rerun in Grinder
The text was updated successfully, but these errors were encountered: