Skip to content

cleanup some smoke tests - #8196

Closed
DaanHoogland wants to merge 1 commit into
apache:mainfrom
shapeblue:smoke_tests_cleanup
Closed

cleanup some smoke tests#8196
DaanHoogland wants to merge 1 commit into
apache:mainfrom
shapeblue:smoke_tests_cleanup

Conversation

@DaanHoogland

@DaanHooglandDaanHoogland commented Nov 8, 2023

Copy link
Copy Markdown
Contributor

Description

This PR splits the test_vm_life_cycle.py test file and cleans some of the conditional test skipping. This all in an attempt to reduce intermittent integration test failures.

The reason is that a lot of tests are not basic life cycle tests and differnt failures on different platform are mostly pre-conditional instead of genuine positives.

During this work I also noticed that we might gain by eliminating tests as it seems a lot of the same functionalities are tested at different locations. I will not investigate that further or address it in this PR.

I will look at other intermittent failures as well and try to address those as well. This may happen in this PR or in separate PRs.

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

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?

@boring-cyborgboring-cyborgBot added component:integration-test Python Warning... Python code Ahead! labels Nov 8, 2023
@apacheapache deleted a comment from blueorangutanNov 8, 2023
@apacheapache deleted a comment from blueorangutanNov 8, 2023
@codecov

codecovBot commented Nov 8, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (08749d8) 13.12% compared to head (251a913) 13.13%.

Additional details and impacted files
@@ Coverage Diff @@## 4.18 #8196 +/- ##
=========================================
Coverage 13.12% 13.13% - Complexity 9141 9142 +1 
=========================================
Files 2720 2720 Lines 257726 257726 Branches 40177 40177 =========================================
+ Hits 33838 33847 +9 + Misses 219598 219588 -10 - Partials 4290 4291 +1 

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

@apacheapache deleted a comment from blueorangutanNov 8, 2023
@apacheapache deleted a comment from blueorangutanNov 8, 2023
Comment threadtest/integration/smoke/test_kvm_lifemigration.py
Comment threadtest/integration/smoke/test_secured_vm_migration.py
@DaanHooglandDaanHoogland changed the title cleanup vm life cycle test filecleanup some smoke testsNov 14, 2023
@apacheapache deleted a comment from blueorangutanNov 14, 2023
@apacheapache deleted a comment from blueorangutanNov 14, 2023
@apacheapache deleted a comment from blueorangutanNov 14, 2023
@apacheapache deleted a comment from blueorangutanNov 14, 2023
@apacheapache deleted a comment from blueorangutanNov 14, 2023
@apacheapache deleted a comment from blueorangutanNov 14, 2023
@apacheapache deleted a comment from blueorangutanNov 14, 2023
@apacheapache deleted a comment from blueorangutanNov 14, 2023
@apacheapache deleted a comment from blueorangutanNov 14, 2023
@apacheapache deleted a comment from blueorangutanNov 14, 2023
@DaanHooglandDaanHoogland mentioned this pull request Nov 14, 2023
37 tasks
@codecov-commenter

codecov-commenter commented Apr 19, 2024

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 16.58%. Comparing base (3e3a0c0) to head (bcc129c).
⚠️ Report is 276 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #8196 +/- ##
=========================================
Coverage 16.58% 16.58% Complexity 13989 13989 =========================================
Files 5743 5743 Lines 510706 510706 Branches 62119 62119 =========================================
Hits 84689 84689 Misses 416543 416543 Partials 9474 9474 
FlagCoverage Δ
uitests3.90% <ø> (ø)
unittests17.48% <ø> (ø)

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.

@DaanHoogland
DaanHoogland marked this pull request as draft April 22, 2024 08:07
@apacheapache deleted a comment from blueorangutanApr 22, 2024
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

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

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
test_01_add_primary_storage_disabled_hostError0.23test_primary_storage.py
test_03_migration_options_storage_tagsError0.02test_primary_storage.py
test_01_secure_vm_migrationError191.29test_secured_vm_migration.py
test_02_unsecure_vm_migrationError450.63test_secured_vm_migration.py
test_04_nonsecured_to_secured_vm_migrationError378.93test_secured_vm_migration.py
ContextSuite context=TestCpuCapServiceOfferings>:setupError0.00test_service_offerings.py
test_02_list_snapshots_with_removed_data_storeError10.64test_snapshots.py
test_02_list_snapshots_with_removed_data_storeError10.64test_snapshots.py
test_01_deploy_vm_on_specific_hostError0.10test_vm_deployment_planner.py
test_04_deploy_vm_on_host_override_pod_and_clusterError0.15test_vm_deployment_planner.py
test_08_migrate_vmError0.07test_vm_life_cycle.py
test_13_destroy_and_expunge_vmError0.03test_vm_life_cycle.py
test_01_migrate_vm_strict_tags_successError0.30test_vm_strict_host_tags.py
test_02_migrate_vm_strict_tags_failureError0.30test_vm_strict_host_tags.py
test_01_restore_vm_strict_tags_successError0.30test_vm_strict_host_tags.py
test_02_restore_vm_strict_tags_failureError0.30test_vm_strict_host_tags.py
test_01_scale_vm_strict_tags_successError0.29test_vm_strict_host_tags.py
test_02_scale_vm_strict_tags_failureError0.31test_vm_strict_host_tags.py
test_01_deploy_vm_on_specific_host_without_strict_tagsError0.27test_vm_strict_host_tags.py
test_02_deploy_vm_on_any_host_without_strict_tagsError5.72test_vm_strict_host_tags.py
test_03_deploy_vm_on_specific_host_with_strict_tags_successError0.24test_vm_strict_host_tags.py
test_04_deploy_vm_on_any_host_with_strict_tags_successError5.70test_vm_strict_host_tags.py
test_05_deploy_vm_on_specific_host_with_strict_tags_failureFailure0.28test_vm_strict_host_tags.py

@github-actions

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

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

@blueorangutan

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@blueorangutan

Copy link
Copy Markdown

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

TestResultTime (s)Test File
test_01_add_primary_storage_disabled_hostError336.07test_primary_storage.py
test_01_add_primary_storage_disabled_hostError336.09test_primary_storage.py
test_03_migration_options_storage_tagsError0.02test_primary_storage.py
test_01_RVR_Network_FW_PF_SSH_default_routes_egress_trueFailure203.14test_routers_network_ops.py
test_03_secured_to_nonsecured_vm_migrationError114.71test_secured_vm_migration.py
test_03_secured_to_nonsecured_vm_migrationError114.71test_secured_vm_migration.py
test_04_nonsecured_to_secured_vm_migrationError0.01test_secured_vm_migration.py
test_02_list_snapshots_with_removed_data_storeError8.51test_snapshots.py
test_02_list_snapshots_with_removed_data_storeError8.52test_snapshots.py
ContextSuite context=TestISOUsage>:setupError0.00test_usage.py
test_08_migrate_vmError45.02test_vm_life_cycle.py
test_13_destroy_and_expunge_vmError0.02test_vm_life_cycle.py
test_01_migrate_vm_strict_tags_successError98.02test_vm_strict_host_tags.py

@github-actions

Copy link
Copy Markdown

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

@DaanHoogland

Copy link
Copy Markdown
ContributorAuthor

will have to be redone at some time

Sign up for freeto 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.

3 participants

@DaanHoogland@codecov-commenter@blueorangutan