Ticket #281 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

git tests fail if user's git prefs aren't set

Reported by: dustin Owned by:
Priority: major Milestone: 0.7.9
Version: 0.7.7 Keywords:
Cc:

Description

    *** Your name cannot be determined from your system services (gecos).
    
    Run 
    
      git config --global user.email "you@email.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: empty ident  <foo@bar.r.igoro.us> not allowed
}}]

I think just running 'git config' with some reasonable defaults would fix this.

Attachments

281.patch Download (681 bytes) - added by dustin 5 years ago.
fix for username issue (#281:make-user-info.patch)
fix-vc-tests.patch Download (7.1 KB) - added by dustin 5 years ago.

Change History

Changed 5 years ago by dustin

fix for username issue (#281:make-user-info.patch)

comment:1 Changed 5 years ago by dustin

I still get

===============================================================================
[FAIL]: buildbot.test.test_vc.Git.testCheckout

Traceback (most recent call last):
  File "/home/dev/devel/projects/buildbot/t/dustin/buildbot/test/test_vc.py", line 544, in _do_vctest_clobber_1
    self.failUnlessEqual(bs.getProperty("revision"), '')
twisted.trial.unittest.FailTest: None != ''
===============================================================================
[FAIL]: buildbot.test.test_vc.Git.testPatch

Traceback (most recent call last):
  File "/home/dev/devel/projects/buildbot/t/dustin/buildbot/test/test_vc.py", line 761, in _doPatch_2
    self.failUnlessEqual(bs.getProperty("revision"), '')
twisted.trial.unittest.FailTest: None != ''
===============================================================================
[ERROR]: buildbot.test.test_vc.Git.testTry

Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/twisted/internet/defer.py", line 576, in _deferGenerator
    result = g.next()
  File "/home/dev/devel/projects/buildbot/t/dustin/buildbot/test/test_vc.py", line 2606, in vc_revise
    yield w; w.getResult()
  File "/usr/lib64/python2.4/site-packages/twisted/internet/defer.py", line 555, in getResult
    self.result.raiseException()
  File "/usr/lib64/python2.4/site-packages/twisted/internet/defer.py", line 317, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/home/dev/devel/projects/buildbot/t/dustin/buildbot/test/test_vc.py", line 343, in check
    raise RuntimeError("command %s finished with exit code %d"
exceptions.RuntimeError: command ['/usr/bin/git', 'commit', '-m', 'revised_to_2', 'version.c'] finished with exit code 128: see logs for stdout
-------------------------------------------------------------------------------

Are the first two known errors? The last is a similar problem to what 281.patch solves, but I haven't tracked it down yet.

comment:2 Changed 5 years ago by dustin

Oy, the first two are my fault. Who tests this stuff anyway? Me? Oh.

Changed 5 years ago by dustin

comment:3 Changed 5 years ago by dustin

in the dev repo as #281:fix-vc-tests.patch

comment:4 Changed 5 years ago by dustin

in brian's tree

comment:5 Changed 5 years ago by dustin

  • Milestone changed from undecided to 0.7.8

comment:6 Changed 5 years ago by dustin

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.