reenable win_async loop test

(cherry picked from commit 9a78273665)
This commit is contained in:
Matt Davis 2016-10-23 23:14:49 -07:00
parent 02ed599035
commit 4d5368e93b

View file

@ -138,33 +138,31 @@
- asyncresult | failed == true - asyncresult | failed == true
- asyncresult.msg is search('failing via exception') - asyncresult.msg is search('failing via exception')
- name: loop async success
async_test:
sleep_delay_sec: 3
async: 10
poll: 0
with_sequence: start=1 end=4
register: async_many
# this test is only flaky under shippable/AWS- the last iteration "until's" forever, cannot repro locally - name: wait for completion
#- name: loop async success async_status:
# async_test: jid: "{{ item }}"
# sleep_delay_sec: 3 register: asyncout
# async: 10 until: asyncout.finished == 1
# poll: 0 retries: 10
# with_sequence: start=1 end=4 delay: 1
# register: async_many with_items: "{{ async_many.results | map(attribute='ansible_job_id') | list }}"
#
#- name: wait for completion - name: validate results
# async_status: assert:
# jid: "{{ item }}" that:
# register: asyncout - item.finished == 1
# until: asyncout.finished == 1 - item.slept_sec == 3
# retries: 10 - item.changed == true
# delay: 1 - item.ansible_job_id is match('\d+\.\d+')
# with_items: "{{ async_many.results | map(attribute='ansible_job_id') | list }}" with_items: "{{ asyncout.results }}"
#
#- name: validate results
# assert:
# that:
# - item.finished == 1
# - item.slept_sec == 3
# - item.changed == true
# - item.ansible_job_id is match('\d+\.\d+')
# with_items: "{{ asyncout.results }}"
# this part of the test is flaky- Windows PIDs are reused aggressively, so this occasionally fails due to a new process with the same ID # this part of the test is flaky- Windows PIDs are reused aggressively, so this occasionally fails due to a new process with the same ID
# FUTURE: consider having the test module hook to a kernel object we can poke at that gets signaled/released on exit # FUTURE: consider having the test module hook to a kernel object we can poke at that gets signaled/released on exit