Actions
action #106865
closedos-autoinst git test alters user configuration
Description
Observation¶
Calling git rebase -x 'make test-perl-testsuite TESTS=t/34-git.t' origin/master
I get
[18:28:35] t/34-git.t .. fatal: pathspec 'README' did not match any files
fatal: pathspec 'README' did not match any files
fatal: pathspec 'README' did not match any files
fatal: pathspec 'README' did not match any files
fatal: pathspec 'README' did not match any files
fatal: pathspec 'README' did not match any files
fatal: pathspec 'README' did not match any files
fatal: pathspec 'README' did not match any files
fatal: pathspec 'README' did not match any files
fatal: pathspec 'README' did not match any files
fatal: pathspec 'README' did not match any files
# Failed test 'Error message when trying to clone wrong git hash'
# at t/34-git.t line 35.
# 'Unable to clone Git repository 'file:///tmp/34-git.t-pWWb/tmpgitrepo#abcdef' specified via CASEDIR (see log for details) at /home/okurz/local/os-autoinst/os-autoinst/OpenQA/Isotovideo/Utils.pm line 56.
# '
# doesn't match '(?^:Could not find 'abcdef' in complete history in cloned Git repository 'file\:\/\/\/tmp\/34\-git\.t\-pWWb\/tmpgitrepo\#abcdef')'
# Failed test 'git fetch was called to get more commits'
# at t/34-git.t line 36.
# '[2022-02-15T18:28:36.372186+01:00] [info] ::: OpenQA::Isotovideo::Utils::checkout_git_repo_and_branch: Checking out git refspec/branch 'abcdef'
# [2022-02-15T18:28:36.372391+01:00] [info] ::: OpenQA::Isotovideo::Utils::checkout_git_repo_and_branch: Cloning git URL 'file:///tmp/34-git.t-pWWb/tmpgitrepo' to use as test distribution
# [2022-02-15T18:28:36.379339+01:00] [debug] fatal: working tree '/home/okurz/local/os-autoinst/os-autoinst' already exists.
#
# '
# doesn't match '(?^s:Cloning git URL.*Fetching more remote objects.*git fetch:)'
# Looks like you failed 2 tests of 2.
and my git config file of the os-autoinst checkout has
[user]
email = you@example.com
name = Your Name
this is certainly coming from https://github.com/os-autoinst/os-autoinst/blob/master/t/34-git.t#L74 but I don't understand yet how we could get out of the temporary directory.
I hit the problem already multiple times that my local git directory was altered.
Steps to reproduce¶
Call git rebase -x 'make test-perl-testsuite TESTS=t/34-git.t' origin/master
Updated by tinita over 2 years ago
- Status changed from New to In Progress
- Assignee set to tinita
Updated by okurz over 2 years ago
- Status changed from Feedback to Resolved
Thanks a lot. PR https://github.com/os-autoinst/os-autoinst/pull/1957 is already merged. As the problem was quite limited and you could reproduce it and it's fixed now with the PR we can immediately resolve the ticket. Lightning-tinita :)
Actions