datalad / datalad-fuse

DataLad extension to provide FUSE file system access
Other
1 stars 4 forks source link

Test failure (git authentication) for `datalad_fuse/tests/test_fsspec_head.py::test_git_repo` on `0.5.1` #112

Closed TheChymera closed 4 months ago

TheChymera commented 4 months ago

Full build and test log: https://ppb.chymera.eu/cb592e.html

Error excerpt:

E               subprocess.CalledProcessError: Command '['git', 'commit', '-m', 'Add a file']' returned non-zero exit status 128.

capture_output = False
check      = True
input      = None
kwargs     = {'cwd': PosixPath('/var/tmp/portage/dev-vcs/datalad-fuse-0.5.1/temp/pytest-of-portage/pytest-0/test_git_repo0')}
popenargs  = (['git', 'commit', '-m', 'Add a file'],)
process    = <Popen: returncode: 128 args: ['git', 'commit', '-m', 'Add a file']>
retcode    = 128
stderr     = None
stdout     = None
timeout    = None

/usr/lib/python3.11/subprocess.py:571: CalledProcessError
----------------------------------------------------------- Captured stdout call -----------------------------------------------------------
Initialized empty Git repository in /var/tmp/portage/dev-vcs/datalad-fuse-0.5.1/temp/pytest-of-portage/pytest-0/test_git_repo0/.git/
----------------------------------------------------------- Captured stderr call -----------------------------------------------------------
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint:   git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint:   git branch -m <name>
Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'portage@localhost.(none)')

I'm trying to solve this now on the gentoo sandbox side, but maybe the software shouldn't assume it's being tested in a pre-configured personal environment?

yarikoptic commented 4 months ago

So please follow what is requested and configure git before running tests. Could be some fake HOME