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

Move ping and win_ping closer together #26028

Merged
merged 1 commit into from Jun 28, 2017
Merged

Conversation

dagwieers
Copy link
Contributor

SUMMARY

So in an effort to verify if Windows modules are feature complete
compared to the python equivalent, I stumbled upon these differences.

ISSUE TYPE
  • Feature Pull Request
  • Docs Pull Request
COMPONENT NAME

ping and win_ping

ANSIBLE VERSION

v2.4

@ansibot
Copy link
Contributor

ansibot commented Jun 22, 2017

@ansibot ansibot added affects_2.4 This issue/PR affects Ansible v2.4 core_review In order to be merged, this PR must follow the core review workflow. feature_pull_request module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. windows Windows community labels Jun 22, 2017
@dagwieers dagwieers force-pushed the ping-sync branch 2 times, most recently from 02a7a5d to 1c6a0e7 Compare June 22, 2017 23:05
@ansibot
Copy link
Contributor

ansibot commented Jun 22, 2017

The test ansible-test sanity --test validate-modules failed with the following errors:

lib/ansible/modules/system/ping.py:0:0: E309 version_added for new option (data) should be 2.4. Currently 0.0
lib/ansible/modules/system/ping.py:53:1: E311 EXAMPLES is not valid YAML

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 core_review In order to be merged, this PR must follow the core review workflow. labels Jun 22, 2017
@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Jun 22, 2017
@ansibot
Copy link
Contributor

ansibot commented Jun 22, 2017

The test ansible-test sanity --test validate-modules failed with the following error:

lib/ansible/modules/system/ping.py:0:0: E309 version_added for new option (data) should be 2.4. Currently 0.0

click here for bot help

@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Jun 22, 2017
@dagwieers
Copy link
Contributor Author

@mattclay The data parameter always existed, but was undocumented.

@jhawkesworth
Copy link
Contributor

Code looks good to me. Not sure currently how to get around the version_added check failure.

@dagwieers
Copy link
Contributor Author

@jhawkesworth I assume that once merged it no longer is an issue, so I don't mind except that the powers that be won't merge it because of the CI failure :-(

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Jun 23, 2017
@jhawkesworth
Copy link
Contributor

Yeah, I don't think the CI will check it on every build from now on, but I don't want to press merge and find out the hard way.

@dagwieers
Copy link
Contributor Author

@jhawkesworth No, I don't think we want to merge this PR just now. This is a core change.

@dagwieers
Copy link
Contributor Author

!needs_revision

@dagwieers dagwieers force-pushed the ping-sync branch 2 times, most recently from e66164b to 36f1506 Compare June 26, 2017 16:07
@ansibot ansibot added needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html test_pull_requests and removed ci_verified Changes made in this PR are causing tests to fail. labels Jun 26, 2017
@dagwieers dagwieers force-pushed the ping-sync branch 3 times, most recently from 8a01323 to a29acb6 Compare June 26, 2017 16:21
@ansibot
Copy link
Contributor

ansibot commented Jun 26, 2017

The test ansible-test sanity --test validate-modules failed with the following error:

lib/ansible/modules/system/ping.py:0:0: E309 version_added for new option (data) should be 2.4. Currently 0.0

click here for bot help

@willthames
Copy link
Contributor

This change looks good to me. The version_added failure is annoying - can only hope that this would be the only failure and that future PRs based on this change won't fail. My suggestion is to merge and watch.

@ansibot
Copy link
Contributor

ansibot commented Jun 27, 2017

The test ansible-test sanity --test validate-modules failed with the following error:

lib/ansible/modules/system/ping.py:0:0: E309 version_added for new option (data) should be 2.4. Currently 0.0

click here for bot help

@mattclay
Copy link
Member

CI failure in integration tests test/integration/targets/ping/tasks/main.yml:48 / [testhost] testhost: ping : assert the ping failed with data=boom that=[u'result|failed', u'not result|changed', u"'Exception: boom' in result.module_stderr", u'result.exception == true']:

{
    "assertion": "result.exception == true", 
    "changed": false, 
    "evaluated_to": false, 
    "failed": true
}

@mattclay
Copy link
Member

Once all the errors besides E309 have been resolved, merging it shouldn't be an issue. You'll have to look at the Shippable results carefully though -- the bot won't report every failure here.

@mattclay mattclay added the ci_verified Changes made in this PR are causing tests to fail. label Jun 27, 2017
@dagwieers
Copy link
Contributor Author

Well, the exception integration test was recently added to improve coverage.

@ansibot ansibot removed the ci_verified Changes made in this PR are causing tests to fail. label Jun 27, 2017
@ansibot
Copy link
Contributor

ansibot commented Jun 27, 2017

The test ansible-test sanity --test validate-modules failed with the following error:

lib/ansible/modules/system/ping.py:0:0: E309 version_added for new option (data) should be 2.4. Currently 0.0

click here for bot help

So in an effort to verify if Windows modules are feature complete
compared to the python equivalent, I stumbled upon these differences.

This PR includes:
- Add missing 'data' option from documentation
- Simplify ping module
- Update integration tests to test exception
@ansibot
Copy link
Contributor

ansibot commented Jun 27, 2017

The test ansible-test sanity --test validate-modules failed with the following error:

lib/ansible/modules/system/ping.py:0:0: E309 version_added for new option (data) should be 2.4. Currently 0.0

click here for bot help

@ansibot ansibot added the ci_verified Changes made in this PR are causing tests to fail. label Jun 27, 2017
@mattclay
Copy link
Member

Currently the only CI failure is the E309 error, which can be ignored.

@dagwieers
Copy link
Contributor Author

Yeah, so I think it is again in a state to be merged.
Sorry for the confusion, I was convinced E309 was the only issue left.

@abadger
Copy link
Contributor

abadger commented Jun 28, 2017

Looks good; +1 from me. @nitzmahone or @jborean93 ?

@nitzmahone nitzmahone merged commit 5be32aa into ansible:devel Jun 28, 2017
@ansibot ansibot added feature This issue/PR relates to a feature request. and removed feature_pull_request labels Mar 5, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.4 This issue/PR affects Ansible v2.4 ci_verified Changes made in this PR are causing tests to fail. feature This issue/PR relates to a feature request. module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. windows Windows community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants