Skip to content

server: get id from persisted object ReservationVO#7785

Merged
weizhouapache merged 1 commit intoapache:4.18from
shapeblue:checkedReservationTestQuirk
Jul 28, 2023
Merged

server: get id from persisted object ReservationVO#7785
weizhouapache merged 1 commit intoapache:4.18from
shapeblue:checkedReservationTestQuirk

Conversation

@DaanHoogland
Copy link
Copy Markdown
Contributor

@DaanHoogland DaanHoogland commented Jul 27, 2023

Description

This PR fixes a bug that broke a test in CheckedReservationTest. Not sure why it didn't show before (on merge and healthcheck).

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)

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?

unit test passes:

[INFO] Running com.cloud.resourcelimit.CheckedReservationTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.055 s - in com.cloud.resourcelimit.CheckedReservationTest

@DaanHoogland DaanHoogland requested a review from shwstppr July 27, 2023 12:21
Copy link
Copy Markdown
Contributor

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

@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@blueorangutan package

@blueorangutan
Copy link
Copy Markdown

@DaanHoogland a [SF] 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.

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 27, 2023

Codecov Report

Merging #7785 (9b41e7d) into 4.18 (cdf0187) will not change coverage.
Report is 1 commits behind head on 4.18.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##               4.18    #7785   +/-   ##
=========================================
  Coverage     13.02%   13.02%           
  Complexity     9029     9029           
=========================================
  Files          2720     2720           
  Lines        256998   256998           
  Branches      40081    40081           
=========================================
  Hits          33462    33462           
  Misses       219336   219336           
  Partials       4200     4200           
Files Changed Coverage Δ
...va/com/cloud/resourcelimit/CheckedReservation.java 48.83% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@blueorangutan
Copy link
Copy Markdown

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

@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan
Copy link
Copy Markdown

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

@weizhouapache
Copy link
Copy Markdown
Member

@DaanHoogland
test looks good on my laptop, without any change.
where did you see the error ?

@DaanHoogland
Copy link
Copy Markdown
Contributor Author

@DaanHoogland test looks good on my laptop, without any change. where did you see the error ?

locally, both on a dev branch and on 4.18 sec. I didn't see it on the health check for 4.18 either, but the change is a good improvement so I want it anyway.

@weizhouapache
Copy link
Copy Markdown
Member

@DaanHoogland test looks good on my laptop, without any change. where did you see the error ?

locally, both on a dev branch and on 4.18 sec. I didn't see it on the health check for 4.18 either, but the change is a good improvement so I want it anyway.

Ok, lgtm

@weizhouapache weizhouapache changed the title get id from persisted object server: get id from persisted object ReservationVO Jul 28, 2023
@weizhouapache weizhouapache added this to the 4.18.1.0 milestone Jul 28, 2023
@blueorangutan
Copy link
Copy Markdown

[SF] Trillian test result (tid-7192)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 45495 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7785-t7192-kvm-centos7.zip
Smoke tests completed. 107 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_migrate_VM_and_root_volume Error 81.73 test_vm_life_cycle.py
test_02_migrate_VM_with_two_data_disks Error 52.33 test_vm_life_cycle.py

@weizhouapache weizhouapache marked this pull request as ready for review July 28, 2023 03:16
@weizhouapache weizhouapache merged commit d958882 into apache:4.18 Jul 28, 2023
@DaanHoogland DaanHoogland deleted the checkedReservationTestQuirk branch July 28, 2023 07:32
DaanHoogland added a commit that referenced this pull request Jul 31, 2023
* 4.18:
  UI: Filter templates by zone and hypervisor type when reinstall a VM (#7739)
  KVM: fix SSVM starting when overprovisioning memory (#7663)
  pom.xml: add property project.systemvm.template.location (#7706)
  cloudutils: fix adding rocky9 host failure due to missing /etc/sysconfig/libvirtd (#7779)
  server: get id from persisted object ReservationVO (#7785)
  search in (too) large result sets (#7766)
  ui: fix 404 error when list volumes of system vms (#7772)
  packaging: install tzdata-java on centos7/centos8 (#7768)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants