[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Windows svnsync test suite failures and a clue

From: Paul Burba <ptburba_at_gmail.com>
Date: Wed, 17 Nov 2010 09:29:41 -0500

On Wed, Nov 17, 2010 at 8:31 AM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> Paul Burba wrote on Tue, Nov 16, 2010 at 17:55:30 -0500:
>> As some of you know I've recently had some strange failures with the
>> svnsync tests on both trunk and 1.6.x.  All the tests started failing
>> during setup when the stdout of svnsync init was lost, e.g.:
>>
>> [[[
>> CMD: svnsync.exe initialize
>> "file:///C%3A/SVN/src-branch-1.6.x/Debug/subversion/tests/cmdline/svn-test-work/repositories/svnsync_tests-1-1"
>> "file:///C%3A/SVN/sr
>> c-branch-1.6.x/Debug/subversion/tests/cmdline/svn-test-work/repositories/svnsync_tests-1"
>> --username jrandom --password rayjandom --config-dir "C:\SVN\src-branc
>> h-1.6.x\Debug\subversion\tests\cmdline\svn-test-work\local_tmp\config"
>> <TIME = 0.314000>
>> EXCEPTION: SVNUnexpectedStdout: []
>
> It's expecting a "Copied r0 revprops" line.  If you run that 'svnsync init'
> command manually, does it print that line?

Hi Daniel,

Yes, if I break the test and run the init manually I see the expected
output, that is part of what makes this so perplexing:

C:\SVN\src-branch-1.6.x>run.python.test.DEBUG.bat svnsync 1

C:\SVN\src-branch-1.6.x>echo off
EXCEPTION: Failure: Break on init!!!
Traceback (most recent call last):
  File "C:\SVN\src-branch-1.6.x\subversion\tests\cmdline\svntest\main.py",
line 1226, in run
    rc = self.pred.run(**kw)
  File "C:\SVN\src-branch-1.6.x\subversion\tests\cmdline\svntest\testcase.py",
line 121, in run
    return self.func(sandbox)
  File "C:\SVN\src-branch-1.6.x\\subversion\tests\cmdline\svnsync_tests.py",
line 194, in copy_and_modify
    run_test(sbox, "copy-and-modify.dump")
  File "C:\SVN\src-branch-1.6.x\\subversion\tests\cmdline\svnsync_tests.py",
line 158, in run_test
    run_init(dest_sbox.repo_url, repo_url)
  File "C:\SVN\src-branch-1.6.x\\subversion\tests\cmdline\svnsync_tests.py",
line 93, in run_init
    raise svntest.Failure("Break on init!!!")
Failure: Break on init!!!
FAIL: svnsync_tests.py 1: copy and modify

C:\SVN\src-branch-1.6.x>svnsync initialize
"file:///C%3A/SVN/src-branch-1.6.x/Debug/subversion/tests/cmdline/svn-test-work/repositories/svnsync_tests-1-1"
"file:///C%3A/SVN/src-branch-1.6.x/Debug/subversion/tests/cmdline/svn-test-work/repositories/svnsync_tests-1"
--username jrandom --password rayjandom
Copied properties for revision 0.

Ah, but here is something interesting, if I manually run the
initialization and redirect the output to a file, the output is lost!

C:\SVN\src-branch-1.6.x>run.python.test.DEBUG.bat svnsync 1

C:\SVN\src-branch-1.6.x>echo off
EXCEPTION: Failure: Break on init!!!
Traceback (most recent call last):
  File "C:\SVN\src-branch-1.6.x\subversion\tests\cmdline\svntest\main.py",
line 1226, in run
    rc = self.pred.run(**kw)
  File "C:\SVN\src-branch-1.6.x\subversion\tests\cmdline\svntest\testcase.py",
line 121, in run
    return self.func(sandbox)
  File "C:\SVN\src-branch-1.6.x\\subversion\tests\cmdline\svnsync_tests.py",
line 194, in copy_and_modify
    run_test(sbox, "copy-and-modify.dump")
  File "C:\SVN\src-branch-1.6.x\\subversion\tests\cmdline\svnsync_tests.py",
line 158, in run_test
    run_init(dest_sbox.repo_url, repo_url)
  File "C:\SVN\src-branch-1.6.x\\subversion\tests\cmdline\svnsync_tests.py",
line 93, in run_init
    raise svntest.Failure("Break on init!!!")
Failure: Break on init!!!
FAIL: svnsync_tests.py 1: copy and modify

C:\SVN\src-branch-1.6.x>svnsync initialize
"file:///C%3A/SVN/src-branch-1.6.x/Debug/subversion/tests/cmdline/svn-test-work/repositories/svnsync_tests-1-1"
"file
:///C%3A/SVN/src-branch-1.6.x/Debug/subversion/tests/cmdline/svn-test-work/repositories/svnsync_tests-1"
--username jrandom --password rayjandom > svnsync.out.txt

C:\SVN\src-branch-1.6.x>type svnsync.out.txt

C:\SVN\src-branch-1.6.x>
                                        ^^^
       Where's the output? The init happened:

C:\SVN\src-branch-1.6.x>svnsync initialize
"file:///C%3A/SVN/src-branch-1.6.x/Debug/subversion/tests/cmdline/svn-test-work/repositories/svnsync_tests-1-1"
"file
:///C%3A/SVN/src-branch-1.6.x/Debug/subversion/tests/cmdline/svn-test-work/repositories/svnsync_tests-1"
--username jrandom --password rayjandom
..\..\..\subversion\svnsync\main.c:736: (apr_err=22)
svnsync: Destination repository is already synchronizing from
'file:///C%3A/SVN/src-branch-1.6.x/Debug/subversion/tests/cmdline/svn-test-work/repositories/svnsync_tests-1'

>> Traceback (most recent call last):
>>   File "C:\SVN\src-branch-1.6.x\subversion\tests\cmdline\svntest\main.py",
>> line 1226, in run
>>     rc = self.pred.run(**kw)
>>   File "C:\SVN\src-branch-1.6.x\subversion\tests\cmdline\svntest\testcase.py",
>> line 121, in run
>>     return self.func(sandbox)
>>   File "C:\SVN\src-branch-1.6.x\\subversion\tests\cmdline\svnsync_tests.py",
>> line 193, in copy_and_modify
>>     run_test(sbox, "copy-and-modify.dump")
>>   File "C:\SVN\src-branch-1.6.x\\subversion\tests\cmdline\svnsync_tests.py",
>> line 157, in run_test
>>     run_init(dest_sbox.repo_url, repo_url)
>>   File "C:\SVN\src-branch-1.6.x\\subversion\tests\cmdline\svnsync_tests.py",
>> line 100, in run_init
>>     raise SVNUnexpectedStdout(output)
>> SVNUnexpectedStdout: []
>> FAIL:  svnsync_tests.py 1: copy and modify
>> ]]]
>
>> Then, on a lark, I tried to build 1.6.x with the --disable-shared
>> option.  The tests passed.  Because this problem seemed to come and go
>> I tired a clean rebuild with shared libs.  It failed.  3 times I tried
>> shared/static libs, each time the static lib build passed, the shared
>> lib build failed.
>>
>> Does anyone have any idea what could be the problem?  Obviously I'm
>> using --disable-shared for the time being, but would like to figure
>> out what is happening here.
>>
>
> I don't know, but perhaps change SVN_VER_MINOR/SVN_VER_TAG to ensure the
> DLLs you load are the right ones?

I've been using the same path setup scripts without modification for
over a year, so I doubt that is the problem, but I tried what you
suggested anyway and the problem still exists.

Paul
Received on 2010-11-17 15:33:19 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.