Skip to content

CLOUDSTACK-10365: Change the "getXXX" boolean-related method names to… - #2816

Closed
Kui-Liu wants to merge 1 commit into
apache:masterfrom
Kui-Liu:master
Closed

CLOUDSTACK-10365: Change the "getXXX" boolean-related method names to…#2816
Kui-Liu wants to merge 1 commit into
apache:masterfrom
Kui-Liu:master

Conversation

@Kui-Liu

Copy link
Copy Markdown
Contributor

… "isXXX".

These boolean-return methods are named as "getXXX".
Other boolean-return methods are named as "isXXX".
Considering there methods will return boolean values, it should be more clear and consistent to rename them as "isXXX".
(rebase #2602)

… "isXXX".
These boolean-return methods are named as "getXXX".
Other boolean-return methods are named as "isXXX".
Considering there methods will return boolean values, it should be more clear and consistent to rename them as "isXXX".
(rebase #2602)
@DaanHoogland

Copy link
Copy Markdown
Contributor

@rafaelweingartner@fmaximus we had a discussion about readability vs consistency in #2602. I am allright with this, in spite of my minor remarks there. How bout you guys?
@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

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

@rafaelweingartner

Copy link
Copy Markdown
Member

@DaanHoogland I recall that @fmaximus mentioned some possible problem with the home made JPA implementation we use. If this PR is not breaking anything, let's push it forward. Otherwise, there is not much we can do.

@DaanHoogland

Copy link
Copy Markdown
Contributor

right, let's see, ...
@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

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

@borisstoyanov

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@borisstoyanov 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-2959)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 57118 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2816-t2959-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_accounts.py
Intermitten failure detected: /marvin/tests/smoke/test_certauthority_root.py
Intermitten failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermitten failure detected: /marvin/tests/smoke/test_internal_lb.py
Intermitten failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermitten failure detected: /marvin/tests/smoke/test_routers_network_ops.py
Intermitten failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermitten failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 63 look OK, 6 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestTemplateHierarchy>:setupError1646.35test_accounts.py
ContextSuite context=TestDeployVirtioSCSIVM>:setupError0.00test_deploy_virtio_scsi_vm.py
test_02_vpc_privategw_static_routesFailure205.44test_privategw_acl.py
test_03_vpc_privategw_restart_vpc_cleanupFailure1307.31test_privategw_acl.py
test_02_unsecure_vm_migrationError77.64test_vm_life_cycle.py
test_03_secured_to_nonsecured_vm_migrationError3655.86test_vm_life_cycle.py
test_04_nonsecured_to_secured_vm_migrationError58.79test_vm_life_cycle.py
test_04_rvpc_network_garbage_collector_nicsFailure527.87test_vpc_redundant.py
test_05_rvpc_multi_tiersFailure403.23test_vpc_redundant.py
test_05_rvpc_multi_tiersError428.75test_vpc_redundant.py
test_hostha_enable_ha_when_host_in_maintenanceError1.83test_hostha_kvm.py

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-2955)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 61381 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2816-t2955-kvm-centos7.zip
Intermitten failure detected: /marvin/tests/smoke/test_accounts.py
Intermitten failure detected: /marvin/tests/smoke/test_certauthority_root.py
Intermitten failure detected: /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py
Intermitten failure detected: /marvin/tests/smoke/test_deploy_vm_iso.py
Intermitten failure detected: /marvin/tests/smoke/test_internal_lb.py
Intermitten failure detected: /marvin/tests/smoke/test_privategw_acl.py
Intermitten failure detected: /marvin/tests/smoke/test_public_ip_range.py
Intermitten failure detected: /marvin/tests/smoke/test_router_dhcphosts.py
Intermitten failure detected: /marvin/tests/smoke/test_templates.py
Intermitten failure detected: /marvin/tests/smoke/test_usage.py
Intermitten failure detected: /marvin/tests/smoke/test_vm_life_cycle.py
Intermitten failure detected: /marvin/tests/smoke/test_volumes.py
Intermitten failure detected: /marvin/tests/smoke/test_vpc_redundant.py
Intermitten failure detected: /marvin/tests/smoke/test_host_maintenance.py
Intermitten failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 58 look OK, 11 have error(s)
Only failed tests results shown below:

TestResultTime (s)Test File
ContextSuite context=TestTemplateHierarchy>:setupError1585.73test_accounts.py
ContextSuite context=TestDeployVirtioSCSIVM>:setupError0.00test_deploy_virtio_scsi_vm.py
test_deploy_vm_from_isoError1563.80test_deploy_vm_iso.py
test_03_vpc_privategw_restart_vpc_cleanupFailure235.19test_privategw_acl.py
test_04_extract_templateFailure128.38test_templates.py
ContextSuite context=TestISOUsage>:setupError0.00test_usage.py
test_02_unsecure_vm_migrationError87.04test_vm_life_cycle.py
test_06_download_detached_volumeFailure137.61test_volumes.py
test_04_rvpc_network_garbage_collector_nicsFailure521.05test_vpc_redundant.py
test_02_cancel_host_maintenace_with_migration_jobsError3.38test_host_maintenance.py
test_hostha_enable_ha_when_host_in_maintenanceError2.67test_hostha_kvm.py

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

@DaanHoogland

Copy link
Copy Markdown
Contributor

@brucekuiliu sorry to bother again, but can you rebase?

@Kui-Liu

Copy link
Copy Markdown
ContributorAuthor

@DaanHoogland I am sorry, my remote branch was removed. I rebased it in the new request #2847.

@Kui-LiuKui-Liu closed this Sep 17, 2018
@DaanHoogland

Copy link
Copy Markdown
Contributor

i see @brucekuiliu , better keep it till it's merged ;) We are kind of slow here a lot, so no guarantee we won't ask you again.

DaanHoogland pushed a commit that referenced this pull request Sep 22, 2018
…#2847)
These boolean-return methods are named as "getXXX".
Other boolean-return methods are named as "isXXX".
Considering there methods will return boolean values, it should be more clear and consistent to rename them as "isXXX".
(rebase #2602 and #2816)
Sign up for freeto 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.

6 participants

@Kui-Liu@DaanHoogland@blueorangutan@rafaelweingartner@borisstoyanov@fmaximus