Skip to content

master: travis and trillian smoketests fixes and stabilisation - #3476

Merged
yadvr merged 26 commits into
apache:masterfrom
shapeblue:smoketests-fix-master413
Jul 12, 2019
Merged

master: travis and trillian smoketests fixes and stabilisation#3476
yadvr merged 26 commits into
apache:masterfrom
shapeblue:smoketests-fix-master413

Conversation

@yadvr

@yadvryadvr commented Jul 8, 2019

Copy link
Copy Markdown
Member

The aim of the PR is to stabilise master and fix failing smoketests both on Travis and Trillian.

  • Fix travis CI tests grouping to run in about 40 mins or less
  • Add more component tests and any new smoke tests

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)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvryadvr added this to the 4.13.0.0 milestone Jul 8, 2019
When resource type project is passed, users shoulnd't need to pass
the projectid param, previous tests should pass (test_tags.py).
Fixesapache#3377
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvryadvr mentioned this pull request Jul 8, 2019
5 tasks
@yadvr

yadvr commented Jul 8, 2019

Copy link
Copy Markdown
MemberAuthor

List of consistenly failing tests:

 test_15_project_tag | Failure | 1.160 | test_tags +--------------------------------+---------+---------+-------------------------+
| test_04_deploy_multiple_vm_wit | Failure | 141.249 | test_cpu_domain_limits |
| h_multiple_core 

Intermittent failures:

| test_18_invalid_list_pa | marvin.cloudstackExcept | 0.052 | test_tags |
| rameters | ion.CloudstackAPIExcept | | |
| | ion | | |
| test_19_delete_add_same | exceptions.Exception | 1.077 | test_tags |
| _tag | | | |
+-------------------------+-------------------------+---------+----------------+
| test_20_create_tags_mul | exceptions.Exception | 1.204 | test_tags |
| tiple_resources | | | |
+-------------------------+-------------------------+---------+----------------+
| test_21_create_tag_stop | Failure | 2.181 | test_tags |
| ped_vm | | | |
+-------------------------+-------------------------+---------+----------------+
| test_22_create_tag_dest | exceptions.Exception | 5.306 | test_tags |
| royed_vm | | | +--------------------------------+---------+---------+-------------------------+
| test_04_deploy_multiple_vm_wit | Failure | 141.249 | test_cpu_domain_limits |
| h_multiple_core 

yadvr added 3 commits July 8, 2019 15:19
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
final ProjectVO project = _projectDao.findByUuidIncludingRemoved(resourceId);
if (project != null) {
projectId = project.getId();
}

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.

return empty if projectId is null ?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Yes, if projectid is not passed and invalid resourceid is passed.

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.

so, if projectId is still null here, return empty result or continue on searching ?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

This will continue to search and return empty result/response. This only happens when a user does not pass the projectId and invalid resourceid or does not pass the resourceid. I checked against 4.11 for behaviour and tried to fix in a way that user experience is same as 4.11.

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.

sounds good to me.

@yadvr

yadvr commented Jul 9, 2019

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-103

@yadvr

yadvr commented Jul 9, 2019

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test matrix

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins matrix job (centos6 mgmt + xs71, centos7 mgmt + vmware65, centos7 mgmt + kvmcentos7) has been kicked to run smoke tests

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvryadvr closed this Jul 9, 2019
@yadvryadvr reopened this Jul 9, 2019
@apacheapache deleted a comment from blueorangutanJul 9, 2019
@apacheapache deleted a comment from blueorangutanJul 9, 2019
@yadvr

yadvr commented Jul 9, 2019

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@rhtyd 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-124)
Environment: xenserver-71 (x2), Advanced Networking with Mgmt server 7
Total time taken: 31059 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3476-t124-xenserver-71.zip
Intermittent failure detected: /marvin/tests/smoke/test_scale_vm.py
Smoke tests completed. 71 look OK, 1 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_01_scale_vmFailure17.62test_scale_vm.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-133)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 26757 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3476-t133-kvm-centos7.zip
Smoke tests completed. 72 look OK, 0 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File

@yadvr

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test centos7 vmware-65u2

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests

yadvr added 2 commits July 10, 2019 12:14
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
yadvr added 2 commits July 11, 2019 13:48
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvryadvr closed this Jul 11, 2019
@yadvryadvr reopened this Jul 11, 2019
@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-140)
Environment: vmware-65u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36014 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3476-t140-vmware-65u2.zip
Intermittent failure detected: /marvin/tests/smoke/test_network.py
Intermittent failure detected: /marvin/tests/smoke/test_routers.py
Intermittent failure detected: /marvin/tests/smoke/test_snapshots.py
Intermittent failure detected: /marvin/tests/smoke/test_usage.py
Smoke tests completed. 68 look OK, 4 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_reboot_routerError312.75test_network.py
test_08_start_routerError68.75test_routers.py
test_09_reboot_routerError1.10test_routers.py
test_02_list_snapshots_with_removed_data_storeError0.21test_snapshots.py
test_01_volume_usageError10.45test_usage.py

@yadvr

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-116

@yadvr

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test centos7 vmware-65u2

@blueorangutan

Copy link
Copy Markdown

@rhtyd a Trillian-Jenkins test job (centos7 mgmt + vmware-65u2) has been kicked to run smoke tests

yadvr added 6 commits July 11, 2019 16:35
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-148)
Environment: vmware-65u2 (x2), Advanced Networking with Mgmt server 7
Total time taken: 36331 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr3476-t148-vmware-65u2.zip
Intermittent failure detected: /marvin/tests/smoke/test_network.py
Intermittent failure detected: /marvin/tests/smoke/test_routers.py
Intermittent failure detected: /marvin/tests/smoke/test_snapshots.py
Intermittent failure detected: /marvin/tests/smoke/test_usage.py
Smoke tests completed. 68 look OK, 4 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
test_reboot_routerError316.33test_network.py
test_08_start_routerError73.41test_routers.py
test_09_reboot_routerError1.09test_routers.py
test_02_list_snapshots_with_removed_data_storeError1.13test_snapshots.py
test_01_volume_usageError9.32test_usage.py

@yadvryadvr closed this Jul 12, 2019
@yadvryadvr reopened this Jul 12, 2019
@yadvr

Copy link
Copy Markdown
MemberAuthor

@shwstppr@anuragaw@borisstoyanov can you review this? The only outstanding issues are the following intermittently failing tests on vmware that I'll confirm manually shortly:


test_reboot_router | Error | 316.33 | test_network.py
-- | -- | -- | --
test_08_start_router | Error | 73.41 | test_routers.py
test_09_reboot_router | Error | 1.09 | test_routers.py
test_02_list_snapshots_with_removed_data_store | Error | 1.13 | test_snapshots.py
test_01_volume_usage | Error | 9.32 | test_usage.py

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr

Copy link
Copy Markdown
MemberAuthor

Let's review and merge this on next Travis pass @borisstoyanov@shwstppr@anuragaw ?
We can debug and address vmware related failures separately.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr

Copy link
Copy Markdown
MemberAuthor

@khos2ow the packaging jobs in Travis are failing can you send a separate PR to fix it, for now I've commented them out:
https://travis-ci.org/apache/cloudstack/jobs/557712415
https://travis-ci.org/apache/cloudstack/jobs/557712416

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

LGTM

@yadvr

Copy link
Copy Markdown
MemberAuthor

Screenshot from 2019-07-12 17-24-04

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

LGTM!

@yadvr
yadvr merged commit 97df529 into apache:masterJul 12, 2019
@ustcweizhou

Copy link
Copy Markdown
Contributor

good

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.

5 participants

@yadvr@blueorangutan@ustcweizhou@shwstppr@anuragaw