Skip to content

Conversation

@weizhouapache
Copy link
Member

Description

This PR...

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

@codecov
Copy link

codecov bot commented Jun 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.36%. Comparing base (ca0c353) to head (705afae).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main   #11030   +/-   ##
=========================================
  Coverage     17.36%   17.36%           
  Complexity    15237    15237           
=========================================
  Files          5888     5888           
  Lines        525737   525737           
  Branches      64164    64164           
=========================================
  Hits          91275    91275           
  Misses       424163   424163           
  Partials      10299    10299           
Flag Coverage Δ
uitests 3.63% <ø> (ø)
unittests 18.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@weizhouapache weizhouapache marked this pull request as ready for review June 16, 2025 09:47
@weizhouapache
Copy link
Member Author

@blueorangutan package

@blueorangutan
Copy link

@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 13789

@sureshanaparti
Copy link
Contributor

@blueorangutan package

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the project’s Java setup to JDK 17 across CI/build workflows and adjusts the Maven argLine for JDK 17 compatibility.

  • Bump CI and build GitHub Actions from JDK 11 (Adopt) to JDK 17 (Temurin)
  • Add --add-exports=java.base/sun.security.provider=ALL-UNNAMED to the Maven argLine for JDK 17

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pom.xml Add export for sun.security.provider in argLine
.github/workflows/ci.yml Rename step and switch to JDK 17 (Temurin)
.github/workflows/build.yml Rename step and switch to JDK 17 (Temurin)
Comments suppressed due to low confidence (2)

pom.xml:61

  • [nitpick] Include a brief comment or documentation to explain why the --add-exports=java.base/sun.security.provider flag is required for JDK 17, so future maintainers understand its purpose.
        <argLine>-Djava.security.egd=file:/dev/./urandom -noverify --add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED --add-exports=java.base/sun.security.provider=ALL-UNNAMED --add-opens=java.base/javax.net.ssl=ALL-UNNAMED</argLine>

.github/workflows/ci.yml:219

  • The JDK setup steps are duplicated in both ci.yml and build.yml. Consider extracting this into a reusable workflow or shared action to simplify future JDK version updates.
      - name: Set up JDK 17

<sonar.host.url>https://sonarcloud.io</sonar.host.url>

<!-- Build properties -->
<cs.jdk.version>11</cs.jdk.version>
Copy link

Copilot AI Jul 15, 2025

Choose a reason for hiding this comment

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

The <cs.jdk.version> property is still set to 11 but workflows now use JDK 17. Update this to <cs.jdk.version>17</cs.jdk.version> for consistency.

Suggested change
<cs.jdk.version>11</cs.jdk.version>
<cs.jdk.version>17</cs.jdk.version>

Copilot uses AI. Check for mistakes.
Copy link
Contributor

Choose a reason for hiding this comment

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

this one actually makes sense, does it @weizhouapache ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@DaanHoogland

It will drop the support of jdk11.
I think it is better to change it when we work on jdk21 support

@sonarqubecloud
Copy link

@sureshanaparti
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 14266

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 14296

@blueorangutan
Copy link

Packaging result [SF]: ✖️ el8 ✖️ el9 ✔️ debian ✖️ suse15. SL-JID 14305

@sureshanaparti
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@sureshanaparti a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14307

@DaanHoogland
Copy link
Contributor

@blueorangutan test matrix

@blueorangutan
Copy link

@DaanHoogland a [SL] Trillian-Jenkins matrix job (EL8 mgmt + EL8 KVM, Ubuntu22 mgmt + Ubuntu22 KVM, EL8 mgmt + VMware 7.0u3, EL9 mgmt + XCP-ng 8.2 ) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-13855)
Environment: kvm-ol8 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 54662 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11030-t13855-kvm-ol8.zip
Smoke tests completed. 140 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_16_retrieve_ssvm_single_file Failure 2.30 test_diagnostics.py
test_17_retrieve_cpvm_default_files Failure 2.19 test_diagnostics.py
test_18_retrieve_cpvm_single_file Failure 2.17 test_diagnostics.py
test_02_enableHumanReadableLogs Error 0.42 test_human_readable_logs.py

@blueorangutan
Copy link

[SF] Trillian test result (tid-13857)
Environment: kvm-ubuntu22 (x2), Advanced Networking with Mgmt server u22
Total time taken: 59385 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11030-t13857-kvm-ubuntu22.zip
Smoke tests completed. 142 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File

@blueorangutan
Copy link

[SF] Trillian test result (tid-13858)
Environment: xcpng82 (x2), Advanced Networking with Mgmt server ol9
Total time taken: 82715 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11030-t13858-xcpng82.zip
Smoke tests completed. 141 look OK, 1 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_prepare_and_cancel_maintenance Error 0.14 test_ms_maintenance_and_safe_shutdown.py

@blueorangutan
Copy link

[SF] Trillian test result (tid-13856)
Environment: vmware-70u3 (x2), Advanced Networking with Mgmt server ol8
Total time taken: 138482 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11030-t13856-vmware-70u3.zip
Smoke tests completed. 139 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_01_prepare_and_cancel_maintenance Error 0.14 test_ms_maintenance_and_safe_shutdown.py
test_01_deploy_vm_on_specific_host Error 3605.20 test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_cluster Error 18.73 test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_pod Error 3602.74 test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_cluster Error 17.82 test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_pod Error 3603.04 test_vm_deployment_planner.py
test_01_migrate_vm_strict_tags_success Error 3609.33 test_vm_strict_host_tags.py
test_02_migrate_vm_strict_tags_failure Error 6.16 test_vm_strict_host_tags.py
test_01_restore_vm_strict_tags_success Error 20.30 test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failure Error 7203.99 test_vm_strict_host_tags.py
test_01_scale_vm_strict_tags_success Error 3604.65 test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failure Error 3.98 test_vm_strict_host_tags.py
test_01_deploy_vm_on_specific_host_without_strict_tags Error 21.25 test_vm_strict_host_tags.py
test_02_deploy_vm_on_any_host_without_strict_tags Error 3609.77 test_vm_strict_host_tags.py
test_03_deploy_vm_on_specific_host_with_strict_tags_success Error 21.39 test_vm_strict_host_tags.py
test_04_deploy_vm_on_any_host_with_strict_tags_success Error 3605.86 test_vm_strict_host_tags.py

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 1, 2025

@weizhouapache
Copy link
Member Author

Merging based on approval and CI results

image

@weizhouapache weizhouapache merged commit 574ed78 into main Sep 1, 2025
50 checks passed
@weizhouapache weizhouapache deleted the 4.21-gha-jdk17-build branch September 1, 2025 08:41
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Sep 4, 2025
* .github: Update to JDK 17 in build.yml

* .github: update JDK in ci.yml

---------

Co-authored-by: Suresh Kumar Anaparti <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants