standalone-shared/erp5-show: use python3
This script had #!/opt/slapos/parts/python2.7/bin/python2.7 which we no longer ship. This might be the reason why the test fail with an error like this in the log TASK [standalone-shared : Check ERP5 state] ************************************ fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/erp5-show -s", "delta": "0:00:00.003072", "end": "2022-09-01 22:49:43.877821", "failed": true, "rc": 127, "start": "2022-09-01 22:49:43.874749", "stderr": "/bin/sh: 1: /usr/local/bin/erp5-show: not found", "stdout": "", "stdout_lines": [], "warnings": []}
Showing
-
Owner
All the "standalone" tests from https://www.erp5.com/quality/integration are broken. I saw in the log files that there was this error message. I don't know how to run these tests locally or testnodes from a branch and it's already broken, so I pushed on master directly.
The changes were made by 2to3, after pushing I realized a mistake, I pushed a fixup in 39c176c3 .
I was a bit surprised by the error message and I thought it was something else, but the error depends on the shell, ansible seems to be using
sh
and withsh
it's confusing:$ playbook/roles/standalone-shared/files/erp5-show sh: 1: playbook/roles/standalone-shared/files/erp5-show: not found
vs
bash-5.1$ playbook/roles/standalone-shared/files/erp5-show bash: playbook/roles/standalone-shared/files/erp5-show: /opt/slapos/parts/python2.7/bin/python2.7: bad interpreter: No such file or directory
-
Owner
The tests are still failing with the same error:
2022-09-02 08:48:18,389 INFO runTestSuite: fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": "/usr/local/bin/erp5-show -s", "delta": "0:00:00.002580", "end": "2022-09-02 08:48:07.461520", "failed": true, "rc": 127, "start": "2022-09-02 08:48:07.458940", "stderr": "/bin/sh: 1: /usr/local/bin/erp5-show: not found", "stdout": "", "stdout_lines": [], "warnings": []} 2022-09-02 08:48:18,389 INFO runTestSuite: to retry, use: --limit @/tmp/tmpplaybook_unstabletest-script-deployment.bash.1031.20284/erp5-standalone.retry
@tomo is there something like someone needs to "release" something so that the test picks new version ?
-
Owner
Yes, we need to push in shacache. I'll do now.
Please register or sign in to comment