Skip to content
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

Pass patch number into installer job #2218

Conversation

adamfarley
Copy link
Contributor

Patch numbers have been added into the upstream build jobs for Windows,
but are not passed downstream, where it appears to prevent us from
finding the build in the installer job.

Signed-off-by: Adam Farley adfarley@redhat.com

@adamfarley adamfarley changed the title Pass patch number into installer job WIP: Pass patch number into installer job Nov 6, 2020
@adamfarley
Copy link
Contributor Author

adamfarley commented Nov 6, 2020

Ok, I think this is the fix for the Windows installer issue seen here:

Step 1: Add "PRODUCT_BUILD_NUMBER" as a parameter for the create_windows_installer job.
Step 2: Replace all references to "PRODUCT_PATCH_VERSION" in the create_windows_installer job with "PRODUCT_BUILD_NUMBER"
Step 3: Change the create_windows_installer job so that we search for major.minor.maintenance.patch+build as the "fourth" step here:

J:\jenkins\workspace\build-scripts\release\create_installer_windows\wix>IF NOT "" == "true" 
Generate OpenJDK setup "hotspot" for "x64" platform "jdk"
****************************************************
First .\SourceDir\OpenJDK11\hotspot\x64\jdk-11.0.9 not exists
Second .\SourceDir\OpenJDK11\hotspot\x64\jdk-11+1 not exists
Third .\SourceDir\OpenJDK11\hotspot\x64\jdk-11.0.9+1 not exists

Step 4: Merge this PR

I don't have access to the installer job config, and I'm not seeing scripts for them, so I assume steps 1-3 will have to be done manually, inside the job, by someone with access.

Does that sound right?

EDIT: This is now:

Step 1: Add "PRODUCT_BUILD_NUMBER" as a parameter for the create_windows_installer job.

Step 2+3: Merge adoptium/installer#258

Step 4: Merge this PR.

@sxa
Copy link
Member

sxa commented Nov 6, 2020

Instead of renaming the existing ones we could just add PRODUCT_FIX_NUMBER to handle the "new" (usually empty!) number

@adamfarley
Copy link
Contributor Author

adamfarley commented Nov 6, 2020

This is true, though since Andrew's new variable inside Version Info is called "patch" (e.g. major.minor.(security|maintenance).patch+build), I was trying for consistency with the variable names.

I'm happy to set "consistency" aside for now if it poses a problem, or makes things significantly more difficult.

@karianna karianna added the bug Issues that are problems in the code as reported by the community label Nov 6, 2020
@karianna karianna added this to In Progress in temurin-build via automation Nov 6, 2020
@karianna karianna added this to the November 2020 milestone Nov 6, 2020
@adamfarley
Copy link
Contributor Author

This PR is paired with adoptium/installer#258

Both should be merged at the same time, ideally when no Windows jobs are running.

@karianna
Copy link
Contributor

karianna commented Nov 8, 2020

@adamfarley should this still be WIP?

Copy link
Contributor

@karianna karianna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@douph1 douph1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good to see this kind if error fixed : PATCH != buildNumber

Where does the buildNumber come from ? Jenkins job build number ?

temurin-build automation moved this from In Progress to Review/QA Nov 9, 2020
@andrew-m-leonard
Copy link
Contributor

@douph1 Can we simply make this code: https://github.com/AdoptOpenJDK/openjdk-installer/blob/fe8c79d25551401db3cb06b3c7a72f013a56051c/wix/Build.OpenJDK_generic.cmd#L111
Query the folder: .\SourceDir!PRODUCT_SKU!!PRODUCT_MAJOR_VERSION!!PACKAGE_TYPE!!FOLDER_PLATFORM!\jdk-*
to work out what the jdk-* path is?

@adamfarley
Copy link
Contributor Author

@douph1 Can we simply make this code: https://github.com/AdoptOpenJDK/openjdk-installer/blob/fe8c79d25551401db3cb06b3c7a72f013a56051c/wix/Build.OpenJDK_generic.cmd#L111
Query the folder: .\SourceDir!PRODUCT_SKU!!PRODUCT_MAJOR_VERSION!!PACKAGE_TYPE!!FOLDER_PLATFORM!\jdk-*
to work out what the jdk-* path is?

Good idea for a new PR, I think.

Right now I'm looking at the JDK8 issue.

P.S. https://github.com/AdoptOpenJDK/openjdk-build/pull/2219/files should go in before this change, so they merge properly.

@adamfarley
Copy link
Contributor Author

JDK8 issue resolved.

@adamfarley adamfarley changed the title WIP: Pass patch number into installer job Pass patch number into installer job Nov 10, 2020
@adamfarley adamfarley force-pushed the pass_build_number_into_windows_installer_job branch from c37561d to d8e7cbd Compare November 10, 2020 13:33
Patch numbers have been added into the upstream build jobs for Windows,
but are not passed downstream, where it appears to prevent us from
finding the build in the installer job.

Signed-off-by: Adam Farley <adfarley@redhat.com>
@adamfarley adamfarley force-pushed the pass_build_number_into_windows_installer_job branch from d8e7cbd to 56a6310 Compare November 10, 2020 13:39
@andrew-m-leonard andrew-m-leonard merged commit c0a1a87 into adoptium:master Nov 10, 2020
temurin-build automation moved this from Review/QA to Done Nov 10, 2020
@adamfarley adamfarley deleted the pass_build_number_into_windows_installer_job branch July 10, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that are problems in the code as reported by the community
Projects
No open projects
temurin-build
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants