Actions
action #113507
closed[logwarn] fatal: ambiguous argument '(unreadable git hash)..abcdef': unknown revision or path not in the working tree
Description
We are getting emails from logwarn (currently as returned emails from MAILER-DAEMON, see #110920 )
log excerpt from o3 /var/log/openqa:
[2022-07-12T13:31:58.429367Z] [info] [pid:13004] Running cmd: timeout 20 git -C /var/lib/openqa/share/tests/opensuse/products/opensuse/needles diff --stat (unreadable git hash)..c9433ae
ebdc06b09182ab933bd110924a05faaee
[2022-07-12T13:31:58.456827Z] [warn] [pid:13004] fatal: ambiguous argument '(unreadable git hash)..c9433aeebdc06b09182ab933bd110924a05faaee': unknown revision or path not in the working
tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
[2022-07-12T13:31:58.457171Z] [error] [pid:13004] cmd returned 32768
Suggestions¶
Updated by tinita about 2 years ago
- Status changed from New to Feedback
- Assignee set to tinita
https://github.com/os-autoinst/os-autoinst/pull/2116 - Ensure the directory in git_rev_parse is absolute (merged)
It occurred to me that the error message about the unsafe git directory only happens when the path given is not absolute:
https://openqa.opensuse.org/tests/2465264/logfile?filename=autoinst-log.txt
When this is deployed on all workers (including the above), there should be no more emails about that.
It's probably good to not ignore that in logwarn.
Updated by livdywan about 2 years ago
- Related to action #113030: test distribution directory git revision can be parsed as "UNKNOWN" and openQA investigation fails to show test git log size:M added
Actions