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

Various updates to macports module #44605

Merged
merged 1 commit into from
Aug 30, 2018

Conversation

newtonne
Copy link
Contributor

@newtonne newtonne commented Aug 24, 2018

SUMMARY
  • Add support for installing specific variants of a port.
  • Add support for using yaml lists with name parameter, rather than comma-separated lists.
  • Add to and clarify documentation and examples.
  • Use Macports nomenclature:
    • s/package/port/g
    • Rename update_cache to update_ports but keep update_cache as an alias. Remove undocumented update-cache alias.
    • Remove undocumented pkg alias for name. Replace with port alias and document it.
  • Print stdout and stderr output if port sync fails.
  • Print stderr output, rather than stdout, if port install/uninstall/activate/deactivate fail.
ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

macports module

ANSIBLE VERSION
ansible 2.7.0.dev0 (macports-various-updates cffffe3a60) last updated 2018/08/24 01:42:11 (GMT +100)
  config file = None
  configured module search path = ['/Users/newtonne/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/newtonne/Projects/ansible/lib/ansible
  executable location = /Users/newtonne/Projects/ansible/bin/ansible
  python version = 3.6.6 (default, Jun 28 2018, 05:43:53) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)]
ADDITIONAL INFORMATION

I realise there are quite a few changes in here. Let me know if you want me to split them out into separate PRs.

@ansibot
Copy link
Contributor

ansibot commented Aug 24, 2018

@ansibot ansibot added affects_2.7 This issue/PR affects Ansible v2.7 community_review In order to be merged, this PR must follow the community review workflow. feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. new_contributor This PR is the first contribution by a new community member. support:community This issue/PR relates to code supported by the Ansible community. labels Aug 24, 2018
@ansibot
Copy link
Contributor

ansibot commented Aug 24, 2018

The test ansible-test sanity --test ansible-doc --python 2.6 [explain] failed with 1 error:

lib/ansible/modules/packaging/os/macports.py:0:0: missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 2.7 [explain] failed with 1 error:

lib/ansible/modules/packaging/os/macports.py:0:0: missing documentation (or could not parse documentation): expected string or buffer

The test ansible-test sanity --test ansible-doc --python 3.5 [explain] failed with 1 error:

lib/ansible/modules/packaging/os/macports.py:0:0: missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 3.6 [explain] failed with 1 error:

lib/ansible/modules/packaging/os/macports.py:0:0: missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test ansible-doc --python 3.7 [explain] failed with 1 error:

lib/ansible/modules/packaging/os/macports.py:0:0: missing documentation (or could not parse documentation): expected string or bytes-like object

The test ansible-test sanity --test validate-modules [explain] failed with 4 errors:

lib/ansible/modules/packaging/os/macports.py:0:0: E305 DOCUMENTATION.options.variant.description.1: expected str @ data['options']['variant']['description'][1]. Got {'C(variant) is only supported with state': 'I(installed)/I(present).'}
lib/ansible/modules/packaging/os/macports.py:0:0: E305 DOCUMENTATION.options.variant.type: not a valid value for dictionary value @ data['options']['variant']['type']. Got 'string'
lib/ansible/modules/packaging/os/macports.py:0:0: E309 version_added for new option (variant) should be 2.7. Currently 0.0
test/sanity/validate-modules/ignore.txt:976:1: A102 Remove since "lib/ansible/modules/packaging/os/macports.py" passes "E322" test

click here for bot help

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed community_review In order to be merged, this PR must follow the community review workflow. labels Aug 24, 2018
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Aug 24, 2018
@ansibot
Copy link
Contributor

ansibot commented Aug 24, 2018

The test ansible-test sanity --test validate-modules [explain] failed with 1 error:

test/sanity/validate-modules/ignore.txt:976:1: A102 Remove since "lib/ansible/modules/packaging/os/macports.py" passes "E322" test

click here for bot help

@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Aug 24, 2018
@samdoran samdoran removed the needs_triage Needs a first human triage before being processed. label Aug 24, 2018
- Add support for installing specific variants of a port.
- Add support for using yaml lists with 'name' parameter, rather than comma-separated lists.
- Add to and clarify documentation and examples.
- Use Macports nomenclature:
  - s/package/port/g
  - Rename update_cache to sync_ports but keep update_cache as an alias. Remove undocumented update-cache alias.
  - Remove undocumented 'pkg' alias for 'name'. Replace with 'port' alias and document it.
- Print stdout and stderr output if `port sync` fails.
- Print stderr output, rather than stdout, if `port install/uninstall/activate/deactivate` fail.
@ansibot
Copy link
Contributor

ansibot commented Aug 24, 2018

@ansibot ansibot added support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests. core_review In order to be merged, this PR must follow the core review workflow. and removed ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Aug 24, 2018
Copy link
Contributor

@jcftang jcftang left a comment

Choose a reason for hiding this comment

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

LGTM, this module needed some updating

@newtonne
Copy link
Contributor Author

Thanks, @jcftang. Ideally, it would be updated even further, but I just needed these changes for now.

@resmo
Copy link
Contributor

resmo commented Aug 30, 2018

please see bot help to help triaging the PRs for the next time. Thanks.

LGTM

@resmo resmo merged commit 30fd326 into ansible:devel Aug 30, 2018
@resmo
Copy link
Contributor

resmo commented Aug 30, 2018

thanks again!

@newtonne
Copy link
Contributor Author

please see bot help to help triaging the PRs for the next time. Thanks.

No worries. Was it just adding theready_for_review label that I missed?

thanks again!

Thanks for merging!

@dagwieers dagwieers added the macos macOS community label Jan 23, 2019
@ansible ansible locked and limited conversation to collaborators Jul 22, 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 core_review In order to be merged, this PR must follow the core review workflow. feature This issue/PR relates to a feature request. macos macOS community module This issue/PR relates to a module. new_contributor This PR is the first contribution by a new community member. 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

6 participants