Skip to content

integration test fixes for 4.18 - #7190

Merged
weizhouapache merged 6 commits into
apache:mainfrom
shapeblue:testFixesFor4.18
Feb 14, 2023
Merged

integration test fixes for 4.18#7190
weizhouapache merged 6 commits into
apache:mainfrom
shapeblue:testFixesFor4.18

Conversation

@DaanHoogland

Copy link
Copy Markdown
Contributor

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)

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?

@boring-cyborgboring-cyborgBot added component:integration-test Python Warning... Python code Ahead! labels Feb 10, 2023
@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

Comment threadtest/integration/smoke/test_deploy_vm_extra_config_data.py
updateConfigurationResponse = self.apiclient.updateConfiguration(updateConfigurationCmd)
self.debug("updated the parameter %s with value %s" % (
updateConfigurationResponse.name, updateConfigurationResponse.value))
self.cleanup = []

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it is empty by default, right ?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

yes, it is in this file only filled by deploy_vm()

@weizhouapacheweizhouapache left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5547

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a 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
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5552

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Trillian-Jenkins matrix job (centos7 mgmt + xenserver71, rocky8 mgmt + vmware67u3, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

@codecov

codecovBot commented Feb 10, 2023

Copy link
Copy Markdown

Codecov Report

Merging #7190 (2692fed) into main (23d8981) will increase coverage by 0.03%.
The diff coverage is n/a.

@@ Coverage Diff @@## main #7190 +/- ##
============================================
+ Coverage 12.63% 12.67% +0.03% - Complexity 8613 8639 +26 
============================================
Files 2711 2716 +5 Lines 255752 256112 +360 Branches 39873 39926 +53 ============================================
+ Hits 32325 32456 +131 - Misses 219320 219528 +208 - Partials 4107 4128 +21 
Impacted FilesCoverage Δ
...ma/src/main/java/com/cloud/user/UserAccountVO.java46.31% <0.00%> (-4.94%)⬇️
...ne/schema/src/main/java/com/cloud/user/UserVO.java42.85% <0.00%> (-4.02%)⬇️
...om/cloud/api/query/dao/UserAccountJoinDaoImpl.java20.00% <0.00%> (-1.74%)⬇️
...java/com/cloud/api/query/vo/UserAccountJoinVO.java27.08% <0.00%> (-0.58%)⬇️
...loud/hypervisor/kvm/resource/VRouterVifDriver.java5.40% <0.00%> (-0.16%)⬇️
...ain/java/org/apache/cloudstack/saml/SAMLUtils.java64.80% <0.00%> (-0.14%)⬇️
server/src/main/java/com/cloud/api/ApiServer.java1.83% <0.00%> (-0.05%)⬇️
...in/java/com/cloud/server/ManagementServerImpl.java5.65% <0.00%> (-0.01%)⬇️
...java/com/cloud/agent/manager/AgentManagerImpl.java4.94% <0.00%> (-0.01%)⬇️
...ain/java/com/cloud/api/query/QueryManagerImpl.java2.95% <0.00%> (-0.01%)⬇️
... and 22 more

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

@blueorangutan

Copy link
Copy Markdown

Trillian Build Failed (tid-6153)

@DaanHooglandDaanHoogland added this to the 4.18.0.0 milestone Feb 10, 2023
@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-6156)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 44666 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7190-t6156-kvm-centos7.zip
Smoke tests completed. 105 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_02_deploy_vm_with_extraconfig_kvmError38.53test_deploy_vm_extra_config_data.py
test_03_update_vm_with_extraconfig_kvmError132.82test_deploy_vm_extra_config_data.py
test_01_deploy_vm_on_specific_hostError37.09test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_clusterError4.32test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_podError5.38test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_clusterError4.37test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_podError4.33test_vm_deployment_planner.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-6154)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 44798 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7190-t6154-xenserver-71.zip
Smoke tests completed. 105 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_07_deploy_vm_with_extraconfig_xenserverError46.71test_deploy_vm_extra_config_data.py
test_01_deploy_vm_on_specific_hostError10.43test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_clusterError9.41test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_podError9.40test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_clusterError11.41test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_podError10.46test_vm_deployment_planner.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-6155)
Environment: vmware-67u3 (x2), Advanced Networking with Mgmt server r8
Total time taken: 46820 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7190-t6155-vmware-67u3.zip
Smoke tests completed. 105 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_05_deploy_vm_with_extraconfig_vmwareError4.40test_deploy_vm_extra_config_data.py
test_01_deploy_vm_on_specific_hostError11.69test_vm_deployment_planner.py
test_02_deploy_vm_on_specific_clusterError10.69test_vm_deployment_planner.py
test_03_deploy_vm_on_specific_podError10.66test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_clusterError12.66test_vm_deployment_planner.py
test_05_deploy_vm_on_cluster_override_podError13.67test_vm_deployment_planner.py

@weizhouapache

Copy link
Copy Markdown
Member

@DaanHoogland
you need to create vm using VirtualMachine.create, or roll back all changes on deploy/destroy vm

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@weizhouapache I reverted changes on test_vm_deployment_planner as the failures seem intemitted, and I don't see a reason. I reverted most changes on test_deploy_vm_extra_config_data, but added the possibility to call on the marvin object directly.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 5570

@weizhouapache

Copy link
Copy Markdown
Member

@weizhouapache I reverted changes on test_vm_deployment_planner as the failures seem intemitted, and I don't see a reason. I reverted most changes on test_deploy_vm_extra_config_data, but added the possibility to call on the marvin object directly.

The vm, which is created by deployVirtualMachine.deployVirtualMachineCmd, cannot be cleaned up by tearDown class.
need to use VirtualMachine.create, like other tests, then it can be cleaned up in tearDown.

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@weizhouapache I reverted changes on test_vm_deployment_planner as the failures seem intemitted, and I don't see a reason. I reverted most changes on test_deploy_vm_extra_config_data, but added the possibility to call on the marvin object directly.

The vm, which is created by deployVirtualMachine.deployVirtualMachineCmd, cannot be cleaned up by tearDown class. need to use VirtualMachine.create, like other tests, then it can be cleaned up in tearDown.

Yes, I realise that. I think that is a big change now, it got me some request signing errors trying. I want to merge as is.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed! Quality Gate passed

BugA0 Bugs
VulnerabilityA0 Vulnerabilities
Security HotspotA0 Security Hotspots
Code SmellA0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@DaanHoogland
DaanHoogland marked this pull request as ready for review February 13, 2023 12:22

@nvazqueznvazquez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code LGTM, can we run a final round of tests?

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-6175)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 41159 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr7190-t6175-kvm-centos7.zip
Smoke tests completed. 108 look OK, 0 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File

@weizhouapache

Copy link
Copy Markdown
Member

Merging based on Simulator CI and Trillian test results

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@DaanHoogland@blueorangutan@weizhouapache@nvazquez