Actions
action #178174
openTest ./t/16-utils-runcmd.t fails for me in master branch but apparently not in circleCI
Start date:
2025-03-03
Due date:
% Done:
0%
Estimated time:
Tags:
Description
Observation¶
From prove -l t/16-utils-runcmd.t
I get
[12:16:46] ./t/16-utils-runcmd.t ..................... 1/?
# Failed test 'commit created'
# at ./t/16-utils-runcmd.t line 86.
# STDOUT & STDERR:
# [info] [pid:32047] Running cmd: git -C /tmp/T4byVQEPno add foo
# [debug] [pid:32047]
# [debug] [pid:32047]
# [info] [pid:32047] cmd returned 0
# [info] [pid:32047] Running cmd: git -C /tmp/T4byVQEPno commit -q -m test --author=openQA system user <noemail@open.qa> foo
# [warn] [pid:32047] error: gpg failed to sign the data:
# gpg: skipped "Foo <foo@bar>": No secret key
# [GNUPG:] INV_SGNR 9 Foo <foo@bar>
# [GNUPG:] FAILURE sign 17
# gpg: signing failed: No secret key
#
# fatal: failed to write commit object
# [error] [pid:32047] cmd returned 128
# [error] Git command failed: git -C /tmp/T4byVQEPno commit -q -m test --author=openQA system user <noemail@open.qa> foo - Error: error: gpg failed to sign the data:
# gpg: skipped "Foo <foo@bar>": No secret key
# [GNUPG:] INV_SGNR 9 Foo <foo@bar>
# [GNUPG:] FAILURE sign 17
# gpg: signing failed: No secret key
#
# fatal: failed to write commit object
#
# don't match:
# (?^usi:commit.*foo.*cmd returned 0)
# as expected
# Looks like you failed 1 test of 1.
# Failed test 'error handling when checking whether working directory is clean'
# at ./t/16-utils-runcmd.t line 94.
# Looks like you failed 1 test of 5.
# Failed test 'invoke Git commands for real testing error handling'
# at ./t/16-utils-runcmd.t line 125.
Internal Git error: Unexpected exit code 128 (/tmp/T4byVQEPno): fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]' at /home/okurz/local/os-autoinst/openQA/lib/OpenQA/Git.pm line 175.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 3.
[12:16:46] ./t/16-utils-runcmd.t ..................... Dubious, test returned 255 (wstat 65280, 0xff00)
which is on commit 41634a22e
Updated by okurz about 10 hours ago
- Copied to action #178177: Test ./t/21-needles.t fails for me in master branch but apparently not in circleCI added
Updated by tinita about 7 hours ago
- Status changed from New to Feedback
- Assignee set to tinita
https://github.com/os-autoinst/openQA/pull/6241 t: Prevent git in tests use tester's ~/.gitconfig
Updated by okurz about 2 hours ago
- Target version changed from Tools - Next to Ready
Actions