community.mongodb icon indicating copy to clipboard operation
community.mongodb copied to clipboard

Update ansible-test.yml

Open rhysmeister opened this issue 1 year ago • 3 comments

SUMMARY

Quick test to see if MongoDB 6.0 works in the CI.

ISSUE TYPE
  • Feature Pull Request

rhysmeister avatar Aug 20 '22 12:08 rhysmeister

Codecov Report

Merging #490 (65eba14) into master (e23a3b5) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #490   +/-   ##
=======================================
  Coverage   85.06%   85.06%           
=======================================
  Files           2        2           
  Lines         576      576           
  Branches       81       81           
=======================================
  Hits          490      490           
  Misses         61       61           
  Partials       25       25           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Aug 20 '22 12:08 codecov[bot]

First problem with 6.0...

The full traceback is: File "/tmp/ansible_ansible.legacy.command_payload_hmo6a20v/ansible_ansible.legacy.command_payload.zip/ansible/module_utils/basic.py", line 2727, in run_command cmd = subprocess.Popen(args, **kwargs) File "/usr/lib/python3.6/subprocess.py", line 729, in init restore_signals, start_new_session) File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) fatal: [testhost]: FAILED! => { "changed": false, "cmd": "mongo test --authenticationDatabase admin --port 3001 -u test_root -p 'saE_Rr9!gE6gh#e~R#nZ' --eval 'db.rhys.getIndexes();'", "invocation": { "module_args": { "_raw_params": "mongo test --authenticationDatabase admin --port 3001 -u test_root -p saE_Rr9!gE6gh#e~R#nZ --eval "db.rhys.getIndexes();"", "_uses_shell": false, "argv": null, "chdir": null, "creates": null, "executable": null, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true, "warn": true } }, "msg": "[Errno 2] No such file or directory: b'mongo': b'mongo'", "rc": 2 }

I guess the mongo tool has been removed.

rhysmeister avatar Aug 20 '22 12:08 rhysmeister

We're also using the mongo cmd line tool in the integration tests...

TASK [mongodb_balancer : Get config server replset mongo_output] *************** fatal: [testhost]: FAILED! => {"changed": false, "cmd": "mongo admin --port 4000 --eval 'rs.status();'", "msg": "[Errno 2] No such file or directory: b'mongo': b'mongo'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

rhysmeister avatar Aug 20 '22 13:08 rhysmeister