cloudstack icon indicating copy to clipboard operation
cloudstack copied to clipboard

Add access modifiers to `VirtualMachineTO`

Open FelipeM525 opened this issue 1 year ago • 2 comments

Description

The class VirtualMachineTO lacks access modifiers in its fields. This PR aims to improve adherence to object-oriented programming by adding private access modifiers to all fields in the class mentioned above, along with their respective getters and setters.

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)
  • [x] Cleanup (Code refactoring and cleanup, that may add test cases)
  • [ ] build/CI

Feature/Enhancement Scale

  • [ ] Major
  • [x] Minor

How Has This Been Tested?

I ran all the tests related to VirtualMachineTO, checked all usages of the class, and made sure nothing was broken.

FelipeM525 avatar Jun 20 '24 13:06 FelipeM525

@FelipeM525 there are some test failures

JoaoJandre avatar Aug 01 '24 17:08 JoaoJandre

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

github-actions[bot] avatar Aug 22 '24 15:08 github-actions[bot]

@blueorangutan package

sureshanaparti avatar Jun 05 '25 09:06 sureshanaparti

@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 avatar Jun 05 '25 09:06 blueorangutan

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

blueorangutan avatar Jun 05 '25 12:06 blueorangutan

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

blueorangutan avatar Jun 11 '25 19:06 blueorangutan

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

blueorangutan avatar Jun 12 '25 09:06 blueorangutan

@winterhazel , can you assess the status of this PR , please?

DaanHoogland avatar Jun 13 '25 14:06 DaanHoogland

@blueorangutan package

winterhazel avatar Jun 16 '25 00:06 winterhazel

@winterhazel 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 avatar Jun 16 '25 00:06 blueorangutan

@winterhazel , can you assess the status of this PR , please?

@DaanHoogland I fixed the merge conflicts, it should be good to go if the CI passses. I don't think we need more testing for a simple change like this one.

winterhazel avatar Jun 16 '25 00:06 winterhazel

Codecov Report

Attention: Patch coverage is 23.07692% with 30 lines in your changes missing coverage. Please review.

Project coverage is 16.60%. Comparing base (e83a347) to head (f3cb29c). Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
.../java/com/cloud/agent/api/to/VirtualMachineTO.java 23.07% 30 Missing :warning:
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9277      +/-   ##
============================================
- Coverage     16.60%   16.60%   -0.01%     
- Complexity    13923    13924       +1     
============================================
  Files          5730     5730              
  Lines        508224   508254      +30     
  Branches      61789    61789              
============================================
- Hits          84383    84382       -1     
- Misses       414406   414436      +30     
- Partials       9435     9436       +1     
Flag Coverage Δ
uitests 3.93% <ø> (ø)
unittests 17.49% <23.07%> (-0.01%) :arrow_down:

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov[bot] avatar Jun 16 '25 01:06 codecov[bot]

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

blueorangutan avatar Jun 16 '25 02:06 blueorangutan

@blueorangutan test

DaanHoogland avatar Jun 16 '25 07:06 DaanHoogland

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

blueorangutan avatar Jun 16 '25 07:06 blueorangutan

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

Test Result Time (s) Test File

blueorangutan avatar Jun 17 '25 00:06 blueorangutan