action #165408
Updated by livdywan 3 months ago
## Observation https://openqa.opensuse.org/tests/4408286#step/test_running/12 `/usr/bin/env: git: Permission denied` ![](clipboard-202408161326-xbohr.png) From https://openqa.opensuse.org/tests/4408284/logfile?filename=test_running-openqa_services.log.txt ``` Aug 16 07:05:26 susetest openqa-gru[126234]: [info] Running cmd: env GIT_SSH_COMMAND="ssh -oBatchMode=yes" git ls-remote --symref https://github.com/os-autoinst/os-autoinst-distri-example.git HEAD Aug 16 07:05:26 susetest openqa-gru[126234]: [55B blob data] Aug 16 07:05:26 susetest openqa-gru[126234]: [error] cmd returned 32256 ``` From https://openqa.opensuse.org/tests/4408284/logfile?filename=autoinst-log.txt ``` [2024-08-16T11:12:25.875198Z] [info] [pid:16517] ::: basetest::runtest: # Test died: command 'retry -s 5 -r 3 -- sh -c 'test -f /var/lib/openqa/share/tests/*/.git/config'' failed: the test distribution should be checked out by openQA automatically at /usr/lib/os-autoinst/autotest.pm line 412. ``` https://openqa.opensuse.org/tests/4408286/logfile?filename=test_running-openqa_minion_results.txt ``` [ "Job successfully executed", "Error detecting remote default branch name for 'https://github.com/os-autoinst/os-autoinst-distri-example.git': /usr/bin/env: \x{e2}\x{80}\x{98}git\x{e2}\x{80}\x{99}: Permission denied at /usr/share/openqa/script/../lib/OpenQA/Task/Git/Clone.pm line 66.\n", "Job successfully executed" ] ``` Note that this should read `‘git’`, it's just not encoded correctly in the error message. ## Acceptance criteria * **AC1:** Jobs don't fail because `git` cannot be executed. ## Suggestions * Note `env GIT_SSH_COMMAND="ssh -oBatchMode=yes" git ls-remote ... ` - is why "env" is failing here * Try and fix the encoding i.e. ` ending up garbled in the JSON * This might be caused by apparmor, which is enabled on o3/ in openQA-in-openQA tests * Why is this sporadic? Is it a timing issue? * Run the test 1000 times * Extend the existing logging e.g. to reveal what is causing the permission issues