Skip to content

Conversation

@shwstppr
Copy link
Contributor

@shwstppr shwstppr commented Sep 4, 2025

Description

Add null check for URI in BroadcastDomainType to prevent NullPointerException. When passing a null URI while enum should be reported as UnDecided, value as null.

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?

Add null check for URI in BroadcastDomainType to prevent NullPointerException.
When passing a null URI while enum should be reported as UnDecided, value as null.

Signed-off-by: Abhishek Kumar <[email protected]>
@shwstppr shwstppr force-pushed the add-nullcheck-networksbroadcastdomaintype branch from 4585c7f to c626a1f Compare September 4, 2025 05:51
@shwstppr shwstppr changed the title refactor: add null check for BroadcastDomainType retrievalis refactor: add null check for BroadcastDomainType retrievals Sep 4, 2025
@codecov
Copy link

codecov bot commented Sep 4, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.17%. Comparing base (973b333) to head (020527b).
⚠️ Report is 88 commits behind head on 4.20.

Files with missing lines Patch % Lines
api/src/main/java/com/cloud/network/Networks.java 66.66% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               4.20   #11572      +/-   ##
============================================
- Coverage     16.17%   16.17%   -0.01%     
+ Complexity    13287    13284       -3     
============================================
  Files          5656     5656              
  Lines        498008   498015       +7     
  Branches      60404    60412       +8     
============================================
- Hits          80541    80539       -2     
- Misses       408505   408512       +7     
- Partials       8962     8964       +2     
Flag Coverage Δ
uitests 4.00% <ø> (-0.01%) ⬇️
unittests 17.02% <66.66%> (-0.01%) ⬇️

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.

@shwstppr
Copy link
Contributor Author

shwstppr commented Sep 4, 2025

@blueorangutan package

@blueorangutan
Copy link

@shwstppr 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.

Signed-off-by: Abhishek Kumar <[email protected]>
Copy link
Contributor

@harikrishna-patnala harikrishna-patnala left a comment

Choose a reason for hiding this comment

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

code LGTM

@blueorangutan
Copy link

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

@shwstppr
Copy link
Contributor Author

shwstppr commented Sep 7, 2025

@blueorangutan test

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian test result (tid-14230)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 54911 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11572-t14230-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

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

@shwstppr
Copy link
Contributor Author

@harikrishna-patnala @DaanHoogland do we need some testing here?

@DaanHoogland
Copy link
Contributor

@harikrishna-patnala @DaanHoogland do we need some testing here?

I think regular regression test are in order. We could also try to white-box this somehow.

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@DaanHoogland 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 15855

@blueorangutan
Copy link

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

@blueorangutan
Copy link

[SF] Trillian test result (tid-14886)
Environment: kvm-ol8 (x2), zone: Advanced Networking with Mgmt server ol8
Total time taken: 54335 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr11572-t14886-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

@DaanHoogland
Copy link
Contributor

We could also try to white-box this somehow.

on second thought, regression- and unit tests should be enough.

@DaanHoogland DaanHoogland merged commit 243f566 into apache:4.20 Dec 1, 2025
42 of 43 checks passed
@DaanHoogland DaanHoogland deleted the add-nullcheck-networksbroadcastdomaintype branch December 1, 2025 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants