Project

General

Profile

Actions

action #178174

open

Test ./t/16-utils-runcmd.t fails for me in master branch but apparently not in circleCI

Added by okurz about 10 hours ago. Updated about 2 hours ago.

Status:
Feedback
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2025-03-03
Due date:
% Done:

0%

Estimated time:

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


Related issues 1 (1 open0 closed)

Copied to openQA Project (public) - action #178177: Test ./t/21-needles.t fails for me in master branch but apparently not in circleCIFeedbacktinita2025-03-03

Actions
Actions #1

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
Actions #2

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

Actions #3

Updated by okurz about 2 hours ago

  • Target version changed from Tools - Next to Ready
Actions

Also available in: Atom PDF