Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing unstable tests -- upgraded version of rdbms #41053

Closed
wants to merge 15 commits into from

Conversation

zikalino
Copy link
Contributor

@zikalino zikalino commented Jun 2, 2018

SUMMARY

Upgrading version of rdbms
Reenabling PostgreSQL and MySQL tests

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

azure_rm_mysqlserver
azure_rm_mysqldatabase
azure_rm_postgresqlserver
azure_rm_postgresqldatabase

ANSIBLE VERSION

2.5

ADDITIONAL INFORMATION

@ansibot
Copy link
Contributor

ansibot commented Jun 2, 2018

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 bug This issue/PR relates to a bug. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Jun 2, 2018
@ansibot ansibot added azure cloud module This issue/PR relates to a module. support:community This issue/PR relates to code supported by the Ansible community. labels Jun 3, 2018
@ansibot
Copy link
Contributor

ansibot commented Jun 3, 2018

The test ansible-test sanity --test import --python 2.6 [explain] failed with 4 errors:

lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py:98:0: ImportError: No module named azure.mgmt.rdbms.mysql
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py:138:0: ImportError: No module named azure.mgmt.rdbms.mysql
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase.py:98:0: ImportError: No module named azure.mgmt.rdbms.postgresql
lib/ansible/modules/cloud/azure/azure_rm_postgresqlserver.py:138:0: ImportError: No module named azure.mgmt.rdbms.postgresql

The test ansible-test sanity --test import --python 2.7 [explain] failed with 4 errors:

lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py:98:0: ImportError: No module named azure.mgmt.rdbms.mysql
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py:138:0: ImportError: No module named azure.mgmt.rdbms.mysql
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase.py:98:0: ImportError: No module named azure.mgmt.rdbms.postgresql
lib/ansible/modules/cloud/azure/azure_rm_postgresqlserver.py:138:0: ImportError: No module named azure.mgmt.rdbms.postgresql

The test ansible-test sanity --test import --python 3.5 [explain] failed with 4 errors:

lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py:98:0: ImportError: No module named 'azure'
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py:138:0: ImportError: No module named 'azure'
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase.py:98:0: ImportError: No module named 'azure'
lib/ansible/modules/cloud/azure/azure_rm_postgresqlserver.py:138:0: ImportError: No module named 'azure'

The test ansible-test sanity --test import --python 3.6 [explain] failed with 4 errors:

lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py:98:0: ModuleNotFoundError: No module named 'azure'
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py:138:0: ModuleNotFoundError: No module named 'azure'
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase.py:98:0: ModuleNotFoundError: No module named 'azure'
lib/ansible/modules/cloud/azure/azure_rm_postgresqlserver.py:138:0: ModuleNotFoundError: No module named 'azure'

The test ansible-test sanity --test import --python 3.7 [explain] failed with 4 errors:

lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py:98:0: ModuleNotFoundError: No module named 'azure'
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py:138:0: ModuleNotFoundError: No module named 'azure'
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase.py:98:0: ModuleNotFoundError: No module named 'azure'
lib/ansible/modules/cloud/azure/azure_rm_postgresqlserver.py:138:0: ModuleNotFoundError: No module named 'azure'

The test ansible-test sanity --test pep8 [explain] failed with 12 errors:

lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py:97:1: E265 block comment should start with '# '
lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py:102:1: E265 block comment should start with '# '
lib/ansible/modules/cloud/azure/azure_rm_mysqldatabase.py:103:5: E116 unexpected indentation (comment)
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py:137:1: E265 block comment should start with '# '
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py:142:1: E265 block comment should start with '# '
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py:143:5: E116 unexpected indentation (comment)
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase.py:97:1: E265 block comment should start with '# '
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase.py:102:1: E265 block comment should start with '# '
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase.py:103:5: E116 unexpected indentation (comment)
lib/ansible/modules/cloud/azure/azure_rm_postgresqlserver.py:137:1: E265 block comment should start with '# '
lib/ansible/modules/cloud/azure/azure_rm_postgresqlserver.py:142:1: E265 block comment should start with '# '
lib/ansible/modules/cloud/azure/azure_rm_postgresqlserver.py:143:5: E116 unexpected indentation (comment)

click here for bot help

@zikalino zikalino requested review from mattclay and yungezz June 3, 2018 23:19
@zikalino
Copy link
Contributor Author

zikalino commented Jun 3, 2018

@mattclay while working on this pr i have noticed that version of msrest package installed when using ansible normally was not the same as in the test environment.
according to requirements file, the latest version should be installed, but for some reason in integration test environment version was older (i am not sure what version exactly), so i had to force latest version. do you have any idea why it could happen?

@ansibot ansibot removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. label Jun 3, 2018
@ansibot ansibot added the core_review In order to be merged, this PR must follow the core review workflow. label Jun 3, 2018
@zikalino zikalino changed the title upgraded version of rdbms fixing unstable tests -- upgraded version of rdbms Jun 3, 2018
@@ -8,8 +8,8 @@
resource_group: "{{ resource_group }}"
name: mysqlsrv{{ rpfx }}
sku:
name: MYSQLB50
tier: basic
name: GP_Gen4_2
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the difference between those sku?

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Jun 4, 2018
@yungezz
Copy link
Contributor

yungezz commented Jun 4, 2018

shipit

@ansibot ansibot added shipit This PR is ready to be merged by Core and removed core_review In order to be merged, this PR must follow the core review workflow. labels Jun 4, 2018
@yuwzho
Copy link
Contributor

yuwzho commented Jun 4, 2018

shipit

@yungezz
Copy link
Contributor

yungezz commented Jun 4, 2018

@zikalino does this need backport to stable-2.6?

@mattclay
Copy link
Member

mattclay commented Jun 4, 2018

@zikalino CI uses a docker container which already has the Azure requirements pre-installed. Since the requirement was msrest!=0.4.15, the version installed was whatever was current when the container was last built. If there is a minimum version requirement, this must be expressed in the requirements file. It is not safe to assume the latest version will be installed.

@zikalino
Copy link
Contributor Author

zikalino commented Jun 4, 2018

@mattclay how frequently is that Docker container updated?
Right not I have noticed that newest version of azure-common started causing problems in some modules, and seems like CI is not failing yet.

btw, could you approve this PR so we can merge?

@ansibot
Copy link
Contributor

ansibot commented Jun 7, 2018

@zikalino this PR contains the following merge commits:

Please rebase your branch to remove these commits.

click here for bot help

@ansibot ansibot added merge_commit This PR contains at least one merge commit. Please resolve! needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed shipit This PR is ready to be merged by Core labels Jun 7, 2018
@zikalino zikalino closed this Jun 7, 2018
@mattclay
Copy link
Member

mattclay commented Jun 9, 2018

@zikalino The container isn't regularly updated. Having the requirements in the container up-to-date is simply an optimization for CI. Tests should not rely on particular requirements or versions being pre-installed.

@yungezz yungezz deleted the upgrade-rdbms branch April 9, 2019 02:13
@ansible ansible locked and limited conversation to collaborators Jun 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.7 This issue/PR affects Ansible v2.7 azure bug This issue/PR relates to a bug. cloud merge_commit This PR contains at least one merge commit. Please resolve! module This issue/PR relates to a module. needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants