View Full Version : The current build failed
rolandz
02-23-2007, 05:37 PM
Hi,
I've tried to build the current state of CVS code but it fails (since yesterday). The message I receive is the following:
BUILD SUCCEEDED
Total time: 2.7 seconds.
[nant] C:\Documents and Settings\Roland\Moje dokumenty\SharpDevelop Project
s\Lib\Spring.Net\test\Spring\Spring.Services.Tests \Spring.Services.Tests.build t
est
Buildfile: file:///C:/Documents and Settings/Roland/Moje dokumenty/S
harpDevelop Projects/Lib/Spring.Net/test/Spring/Spring.Services.Tests/Spring.Ser
vices.Tests.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: test
build:
[csc] Compiling 12 files to 'C:\Documents and Settings\Roland\
Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\build\net\2.0\debug\Spring .S
ervices.Tests.dll'.
[csc] c:\Documents and Settings\Roland\Moje dokumenty\SharpDev
elop Projects\Lib\Spring.Net\test\Spring\Spring.Service s.Tests\Remoting\CaoExpor
terTests.cs(41,34): error CS0246: The type or namespace name 'BaseRemotingTestFi
xture' could not be found (are you missing a using directive or an assembly refe
rence?)
[csc] c:\Documents and Settings\Roland\Moje dokumenty\SharpDev
elop Projects\Lib\Spring.Net\test\Spring\Spring.Service s.Tests\Remoting\CaoFacto
ryObjectTests.cs(38,39): error CS0246: The type or namespace name 'BaseRemotingT
estFixture' could not be found (are you missing a using directive or an assembly
reference?)
[csc] c:\Documents and Settings\Roland\Moje dokumenty\SharpDev
elop Projects\Lib\Spring.Net\test\Spring\Spring.Service s.Tests\Remoting\Remoting
ConfigurerTests.cs(38,44): error CS0246: The type or namespace name 'BaseRemotin
gTestFixture' could not be found (are you missing a using directive or an assemb
ly reference?)
[csc] c:\Documents and Settings\Roland\Moje dokumenty\SharpDev
elop Projects\Lib\Spring.Net\test\Spring\Spring.Service s.Tests\Remoting\SaoExpor
terTests.cs(37,34): error CS0246: The type or namespace name 'BaseRemotingTestFi
xture' could not be found (are you missing a using directive or an assembly refe
rence?)
[csc] c:\Documents and Settings\Roland\Moje dokumenty\SharpDev
elop Projects\Lib\Spring.Net\test\Spring\Spring.Service s.Tests\Remoting\SaoFacto
ryObjectTests.cs(43,39): error CS0246: The type or namespace name 'BaseRemotingT
estFixture' could not be found (are you missing a using directive or an assembly
reference?)
BUILD FAILED
C:\Documents and Settings\Roland\Moje dokumenty\SharpDevelop Project
s\Lib\Spring.Net\test\Spring\Spring.Services.Tests \Spring.Services.Tests.build(1
1,6):
External Program Failed: C:\WINDOWS\Microsoft.NET\Framework\v2.0.507
27\csc.exe (return code was 1)
Total time: 2.3 seconds.
BUILD FAILED
Nested build failed. Refer to build log for exact reason.
Bruno Baia
02-26-2007, 05:23 PM
Hi,
This should be fixed.
Spring.Services tests are now running.
Cheers,
Bruno
Aleks Seovic
02-26-2007, 09:09 PM
My bad, forgot to add the file. As Bruno said, it should be working now...
- Aleks
rolandz
02-27-2007, 11:40 PM
Still no success :(
build:
[csc] Compiling 239 files to 'C:\Documents and Settings\Roland
\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\build\net\2.0\debug\Spring .
Core.Tests.dll'.
[resgen] Read in 3 resources from "C:\Documents and S
ettings\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\test\Spring\S
pring.Core.Tests\Objects\TestObject.resx"
[resgen] Writing resource file... Done.
[resgen] Read in 1 resources from "C:\Documents and S
ettings\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\test\Spring\S
pring.Core.Tests\Resources\Images.resx"
[resgen] Writing resource file... Done.
[resgen] Read in 1 resources from "C:\Documents and S
ettings\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\test\Spring\S
pring.Core.Tests\Resources\SampleResources.resx"
[resgen] Writing resource file... Done.
[resgen] Read in 1 resources from "C:\Documents and S
ettings\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\test\Spring\S
pring.Core.Tests\Resources\Spring.Context.Tests.pt-BR.resx"
[resgen] Writing resource file... Done.
[resgen] Read in 5 resources from "C:\Documents and S
ettings\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\test\Spring\S
pring.Core.Tests\Resources\Spring.Context.Tests.re sx"
[resgen] Writing resource file... Done.
[resgen] Read in 1 resources from "C:\Documents and S
ettings\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\test\Spring\S
pring.Core.Tests\Resources\Spring.Context.Tests.sr-SP-Cyrl.resx"
[resgen] Writing resource file... Done.
[resgen] Read in 2 resources from "C:\Documents and S
ettings\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\test\Spring\S
pring.Core.Tests\Resources\Spring.Context.Tests.sr .resx"
[resgen] Writing resource file... Done.
[resgen] Read in 7 resources from "C:\Documents and S
ettings\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\test\Spring\S
pring.Core.Tests\Resources\Tesla.resx"
[resgen] Writing resource file... Done.
[resgen] Read in 6 resources from "C:\Documents and S
ettings\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\test\Spring\S
pring.Core.Tests\Resources\Tesla.sr-SP-Cyrl.resx"
[resgen] Writing resource file... Done.
[resgen] Read in 4 resources from "C:\Documents and S
ettings\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\test\Spring\S
pring.Core.Tests\Resources\Tesla.sr.resx"
[resgen] Writing resource file... Done.
[al] Compiling 2 files to 'C:\Documents and Setti
ngs\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\build\net\2.0\deb
ug\sr\Spring.Core.Tests.resources.dll'.
[al] Compiling 2 files to 'C:\Documents and Setti
ngs\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\build\net\2.0\deb
ug\sr-SP-Cyrl\Spring.Core.Tests.resources.dll'.
[al] Compiling 1 files to 'C:\Documents and Setti
ngs\Roland\Moje dokumenty\SharpDevelop Projects\Lib\Spring.Net\build\net\2.0\deb
ug\pt-BR\Spring.Core.Tests.resources.dll'.
[copy] Copying 62 files to 'C:\Documents and Settings\Roland\Mo
je dokumenty\SharpDevelop Projects\Lib\Spring.Net\build\net\2.0\debug'.
[copy] Copying 1 file to 'C:\Documents and Settings\Roland\Moje
dokumenty\SharpDevelop Projects\Lib\Spring.Net\build\net\2.0\debug'.
test:
[nunit2outproc] [nunit2outproc] NUnit Error: System.SystemException:
TestDomainHostProcess didn't register within timeout period
[nunit2outproc] at NAnt.NUnit2OutProc.TestDomainHostManager.Creat
eTestDomainHostProcess(Version clrVersion)
[nunit2outproc] at NAnt.NUnit2OutProc.TestDomainHostManager.GetTe
stDomainHost(FrameworkInfo frameworkInfo)
[nunit2outproc] at NAnt.NUnit2OutProc.NUnit2TestDomain.CreateDoma
in(FrameworkInfo frameworkInfo, DirectoryInfo basedir, FileInfo assemblyFile, Fi
leInfo configFile, String[] probePaths)
[nunit2outproc] at NAnt.NUnit2OutProc.NUnit2TestDomain.CreateRunn
er(FileInfo assemblyFile, FileInfo configFile)
[nunit2outproc] at NAnt.NUnit2OutProc.NUnit2OutProcTask.ExecuteTa
sk()
BUILD FAILED - 1 non-fatal error(s), 0 warning(s)
C:\Documents and Settings\Roland\Moje dokumenty\SharpDevelop Project
s\Lib\Spring.Net\test\Spring\Spring.Core.Tests\Spr ing.Core.Tests.build(54,4):
Failure executing test(s). If you assembly is not built using NUnit
version 2.2.8.0, then ensure you have redirected assembly bindings. Consult the
documentation of the <nunit2> task for more information.
TestDomainHostProcess didn't register within timeout period
Erich Eichinger
02-28-2007, 09:30 AM
Hi Roland,
this is maybe a problem with our own <nunit> task implementation. Please look for processes named "tmpXXXX.exe" in your task-manager and kill them.
Try to do a clean checkout - the build works fine on my machine.
hope this helps,
Erich
rolandz
03-15-2007, 08:33 AM
this is maybe a problem with our own <nunit> task implementation. Please look for processes named "tmpXXXX.exe" in your task-manager and kill them.
The problem still persists on my machine at home while I don't get it on the machine at the office. I see the difference between them in that the machine at home is XP Home and I am working on an account which is very limited for security reasons (I am not allowed, as a user, to install anything; nor I can access/write to system areas so if there is any registration or test installation required then the test WILL fail). Note that the Spring was building w/o problems in the past on this machine.
At the office I have full proviledges (hope our admin knows what he's doing :) ) and finally have no problems w/building. Could this differemce be a reason? If so then how to make it to build on home machine?
Erich Eichinger
03-15-2007, 09:49 AM
Hi,
it seems that your security settings prevent the nant-process from spawning a new process - this is required to run our tests using a specific CLR version.
For a detailed analysis please have a look at the solution found in ${spring.basedir}/tools/NAnt.NUnit2OutProc.Task/* of the CVS repository. In Nant.NUnit2OutProc.build change the line 9 to
<property name="build.defines" value="DEBUG, TRACE, LOG" />
fire up the tool "DebugView" from www.sysinternals.com and do a build using the nant build-script. You should see a bunch of logging messages - please save them to a file and send them to me or post them here.
The only way for a "quick" workaround would be to exclude all "test" targets from "Spring.build" file. E.g. in the target "compile-net-1.1" (at line 332) you need to comment out all <nant> tasks specifying target="test"
hope this helps,
Erich
rolandz
03-15-2007, 08:55 PM
fire up the tool "DebugView" from www.sysinternals.com (http://www.sysinternals.com) and do a build using the nant build-script. You should see a bunch of logging messages - please save them to a file and send them to me or post them here.
This is amazing but the only one line in the dbgview is the following:
[4044] NUnit extensions not loaded
Is there something missing in the CVS? (that I don't have on home machine but I do in the office?)
Erich Eichinger
03-15-2007, 11:43 PM
Hi,
Did you add the "LOG" define in the build script?
What is the build's output in the console window?
Just to be sure: I meant you to build the task assembly using Nant.NUnit2OutProc.build
-Erich
rolandz
03-16-2007, 11:07 AM
Did you add the "LOG" define in the build script?
What is the build's output in the console window?
Yes, I've set the LOG in the build script but I've been trying to build the Spring (using its main build file).
Just to be sure: I meant you to build the task assembly using Nant.NUnit2OutProc.build
Does it mean I should only build Nant.NUnit2OutProc.build? I'll perform next attempt as soon as I get back home.
Erich Eichinger
03-16-2007, 12:59 PM
Hi,
Does it mean I should only build Nant.NUnit2OutProc.build? I'll perform next attempt as soon as I get back home.
The build script contains tests for the task-implementation that should result in the same problems you are facing when trying to build spring. When built with a defined "LOG", the task will output detailed information.
-Erich
rolandz
03-16-2007, 07:41 PM
Well,
Building the ...\tools\NAnt.NUnit2OutProc.Task\NAnt.NUnit2OutPr oc.build produces no log to DbgView and the following error to the console:
...\Spring.Net\tools\NAnt.NUnit2OutProc.Task\NAnt. NUnit2OutProc.build(10
,4):
Target framework could not be changed. "net-1.0" is not a valid framework identifier. Valid values are: net-2.0.
There is one difference more that I've omitted between the two machines I've mentioned. At home (where I cannot get success) I only have .NET 2.0 framework. So it seems to be another issue: the build script tried to switch to 1.1.
Additionally I attach the main build console output again:
[nunit2outproc] 4) Spring.Objects.Factory.Xml.EventWiringTests.Event
WiringInstanceSinkToPrototypeSource : SPRNET-21
[nunit2outproc] 5) Spring.Objects.Support.PropertyComparatorTests.Or
deringIsUnperturbedWithEqualProps : Sort ordering is not preserved (unstable) wi
th equal elements (c.f. System.Array.Sort (Array, IComparer)))
[nunit2outproc] 6) Spring.Objects.TypeConverters.StreamConverterTest
s.ConvertFrom : Explicit selection required
[nunit2outproc] 7) Spring.Objects.TypeConverters.StreamConverterTest
s.ConvertFromValidButNonExistingStreamResource : Explicit selection required
[nunit2outproc] 8) Spring.Objects.ObjectWrapperTests.GetValueOfCusto
mIndexerProperty :
[nunit2outproc] 9) Spring.Objects.ObjectWrapperTests.GetSetIndexerPr
operties :
[nunit2outproc] 10) Spring.Objects.ObjectWrapperTests.SetIndexOutOfR
angeFromListProperty : Addition of elements to the list via index that is out of
range is not supported anymore.
[nunit2outproc] 11) Spring.Pool.StessSimplePool.ScalingAgainstIncrea
singNumberOfThreads : a try for a stress
[nunit2outproc] 12) Spring.Util.DynamicReflection.DynamicPropertyTes
ts.PerformanceTests : Explicit selection required
[nunit2outproc] 13) Spring.Util.PathMatcherTest.ThisIsATestForDebugg
ingPurposes : Explicit selection required
[nunit2outproc]
[nunit2outproc]
BUILD FAILED
C:\Projects\Spring.Net\test\Spring\Spring.Core.Tes ts\Spring.Core.Tes
ts.build(58,4):
Tests Failed.
Total time: 273.3 seconds.
BUILD FAILED
Nested build failed. Refer to build log for exact reason.
rolandz
03-16-2007, 07:56 PM
OK,
I've changed the build file to use .NET 2.0 and got some progress. There are following log entries being produced by the build:
[2156] NAnt.NUnit2OutProc.RemotingUtil: DEBUG: InitializeRemoting(): found free tcp port 58648
[2156] NAnt.NUnit2OutProc.RemotingUtil: DEBUG: InitializeRemoting(): registered TCP-channel
[2156] NAnt.NUnit2OutProc.TestDomainHostManager: DEBUG: CreateTestDomainHostProcess(): starting host process tcp://127.0.0.1:58648/b7a5a5af_e280_4e99_8aa3_4d112c4ca793/TestDomainHostManager.rem "C:\Projects\Spring.Net\tools\NAnt.NUnit2OutProc.Ta sk\build\task\NAnt.NUnit2OutProcTasks.dll"
[2156] NAnt.NUnit2OutProc.TestDomainHostManager: DEBUG: CreateTestDomainHostProcess(): Waiting for TestDomainHostProcess[2.0.50727] to register
[236] NAnt.NUnit2OutProc.TestDomainHostRunner[2.0.50727]: DEBUG: Main(): Starting up
[236] NAnt.NUnit2OutProc.TestDomainHostRunner[2.0.50727]: DEBUG: Main(): Got HostManager-Uri 'tcp://127.0.0.1:58648/b7a5a5af_e280_4e99_8aa3_4d112c4ca793/TestDomainHostManager.rem' and assembly-list 'C:\Projects\Spring.Net\tools\NAnt.NUnit2OutProc.T ask\build\task\NAnt.NUnit2OutProcTasks.dll'
[236] NAnt.NUnit2OutProc.TestDomainHostRunner[2.0.50727]: DEBUG: OnAssemblyResolve(): success resolving assembly 'NAnt.NUnit2OutProcTasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
[236] NAnt.NUnit2OutProc.RemotingUtil: DEBUG: InitializeRemoting(): found free tcp port 37925
[236] NAnt.NUnit2OutProc.RemotingUtil: DEBUG: InitializeRemoting(): registered TCP-channel
[236] NAnt.NUnit2OutProc.TestDomainHostProcess[2.0.50727:033C0D9D]: DEBUG: .ctor(): created instance
[236] NAnt.NUnit2OutProc.TestDomainHostRunner[2.0.50727]: DEBUG: Run(): Before registering TestDomainHostRunner with TestDomainHostManager
[2156] NAnt.NUnit2OutProc.TestDomainHostManager: DEBUG: RegisterDomainHostProcess(): registering TestDomainHostProcess[2.0.50727]
[236] NAnt.NUnit2OutProc.TestDomainHostRunner[2.0.50727]: DEBUG: Run(): After registering TestDomainHostRunner with TestDomainHostManager
[236] NAnt.NUnit2OutProc.TestDomainHostProcess[2.0.50727:033C0D9D]: DEBUG: RegistrationCommit(): success
[236] NAnt.NUnit2OutProc.TestDomainHostProcess[2.0.50727:033C0D9D]: DEBUG: CreateTestDomain(): creating AppDomain
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: OnAssemblyLoad(): loaded System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: OnAssemblyLoad(): loaded System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
[236] NAnt.NUnit2OutProc.RemotingUtil: DEBUG: InitializeRemoting(): found free tcp port 17742
[236] NAnt.NUnit2OutProc.RemotingUtil: DEBUG: InitializeRemoting(): registered TCP-channel
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: .ctor(): installed with paths C:\PROGRAM FILES\NANT\BIN\lib\net\2.0;C:\PROGRAM FILES\NANT\BIN\lib\net;C:\PROGRAM FILES\NANT\BIN\lib;C:\PROGRAM FILES\NANT\BIN\
[236] NAnt.NUnit2OutProc.NAnt.NUnit2OutProc.TestDomainHo stProcess: DEBUG: .ctor(): Created and installed RemoteTestDomain in Test-AppDomain
[2156] NAnt.NUnit2OutProc.NUnit2TestDomain: DEBUG: CreateTestRunner(): creating new testrunner instance
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: CreateInstance(): creating instance of type 'NUnit.Core.RemoteTestRunner,nunit.core, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77'
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: OnAssemblyResolve(): resolving nunit.core, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: OnAssemblyLoad(): loaded nunit.core, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: CreateInstance(): created instance of type 'NUnit.Core.RemoteTestRunner'
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: OnAssemblyLoad(): loaded System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
[2156] NAnt.NUnit2OutProc.NUnit2TestDomain: DEBUG: CreateTestRunner(): created new testrunner instance
[2156] NAnt.NUnit2OutProc.NUnit2TestDomain: DEBUG: CreateRunner(): created TestRunner in TestDomain
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: OnAssemblyLoad(): loaded NAnt.NUnit2OutProcTests, Version=1.0.2631.35603, Culture=neutral, PublicKeyToken=null
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: OnAssemblyLoad(): loaded nunit.framework, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: OnAssemblyResolve(): resolving nunit.core.extensions
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: OnAssemblyResolve(): failed resolving nunit.core.extensions
[236] NUnit extensions not loaded
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: OnAssemblyResolve(): resolving nunit.core, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77
[2156] NAnt.NUnit2OutProc.NUnit2TestDomain: DEBUG: Unload(): unloading TestDomain
[2156] NAnt.NUnit2OutProc.NUnit2TestDomain: DEBUG: Unload(): unloaded TestDomain
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727]: DEBUG: UnloadDomain(): unloading AppDomain
[2156] NAnt.NUnit2OutProc.TestDomainHostManager: DEBUG: OnDomainUnload(): Shutting down hostprocesses
[2156] NAnt.NUnit2OutProc.TestDomainHostRegistration[2.0.50727]: DEBUG: Dispose(): shutting down
[2156] NAnt.NUnit2OutProc.TestDomainHostRegistration[2.0.50727]: DEBUG: Dispose(): waiting for process exit
[236] NAnt.NUnit2OutProc.TestDomainHostRunner[2.0.50727]: DEBUG: Run(): Shutdown
[236] NAnt.NUnit2OutProc.RemoteTestDomain[2.0.50727:03F51B42]: DEBUG: OnDomainUnload(): unloading test domain
[2156] NAnt.NUnit2OutProc.TestDomainHostRegistration[2.0.50727]: DEBUG: Dispose(): deleting tmp file 'C:\Documents and Settings\Roland\Ustawienia lokalne\Temp\tmpF6.tmp.exe'
[2156] NAnt.NUnit2OutProc.TestDomainHostRegistration[2.0.50727]: DEBUG: Dispose(): deleting tmp file 'C:\Documents and Settings\Roland\Ustawienia lokalne\Temp\tmpF6.tmp.exe.config'
[2156] NAnt.NUnit2OutProc.TestDomainHostRegistration[2.0.50727]: DEBUG: Dispose(): shut down completed
[2156] NAnt.NUnit2OutProc.RemotingUtil: DEBUG: ShutdownRemotingServers(): unregistering channels
[2156] NAnt.NUnit2OutProc.RemotingUtil: DEBUG: ShutdownRemotingServers(): unregistered channels
[2156] NAnt.NUnit2OutProc.TestDomainHostManager: DEBUG: ShutdownHosts(): completed
The console output was:
Buildfile: file:///C:/Projects/Spring.Net/tools/NAnt.NUnit2OutProc.Task/NAnt.NUn
it2OutProc.build
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: test-all
[tstamp] 16 marca 2007 19:52:39.
clean:
[echo] Deleting all builds from all configurations : 'C:\Projects\Spring.Ne
t\tools\NAnt.NUnit2OutProc.Task/build/task'
[delete] Deleting directory 'C:\Projects\Spring.Net\tools\NAnt.NUnit2OutProc.
Task\build\task'.
build-task:
[mkdir] Creating directory 'C:\Projects\Spring.Net\tools\NAnt.NUnit2OutProc.
Task\build\task'.
[csc] Compiling 17 files to 'C:\Projects\Spring.Net\tools\NAnt.NUnit2OutPr
oc.Task\build\task\NAnt.NUnit2OutProcTasks.dll'.
[csc] Compiling 3 files to 'C:\Projects\Spring.Net\tools\NAnt.NUnit2OutPro
c.Task\build\task\NAnt.NUnit2OutProc.TestDomainHos tRunner.exe'.
[csc] Compiling 17 files to 'C:\Projects\Spring.Net\tools\NAnt.NUnit2OutPr
oc.Task\build\task\NAnt.NUnit2OutProcTasks.dll'.
test-all:
[loadtasks] Scanning assembly "NAnt.NUnit2OutProcTasks" for extensions.
set-framework-net-1.0:
build-test:
test:
[nunit2outproc] 2.0.50727
[nunit2outproc]
[nunit2outproc] Tests run: 1, Failures: 1, Not run: 0, Time: 0.651 seconds
[nunit2outproc]
[nunit2outproc] Failures:
[nunit2outproc] 1) NAnt.NUnit2OutProc.Tests.SampleTests.SomeTestFunc :
[nunit2outproc] String lengths are both 3.
[nunit2outproc] Strings differ at index 0.
[nunit2outproc] expected: <"2.0">
[nunit2outproc] but was: <"1.0">
[nunit2outproc] ------------^
[nunit2outproc] at NAnt.NUnit2OutProc.Tests.SampleTests.SomeTestFunc( ) in c:\
Projects\Spring.Net\tools\NAnt.NUnit2OutProc.Task\ test\NAnt.NUnit2OutProc.Tests\
SampleTests.cs:line 17
[nunit2outproc]
[nunit2outproc]
[nunit2outproc]
BUILD FAILED
C:\Projects\Spring.Net\tools\NAnt.NUnit2OutProc.Ta sk\NAnt.NUnit2OutProc.build(19
4,6):
Tests Failed.
Hope now there are some more hints :)
Erich Eichinger
03-16-2007, 11:14 PM
Hi Roland,
I really appreciate your help! Unfortunately I can only see that launching external processes are not the problem on your machine. The lines
[236] NAnt.NUnit2OutProc.TestDomainHostRunner[2.0.50727]: DEBUG: Main(): Starting up
[236] NAnt.NUnit2OutProc.TestDomainHostRunner[2.0.50727]: DEBUG: Main(): Got HostManager-Uri 'tcp://127.0.0.1:58648/b7a5a5af_e280_4e99_8aa3_4d112c4ca793/TestDomainHostManager.rem' and assembly-list 'C:\Projects\Spring.Net\tools\NAnt.NUnit2OutProc.T ask\build\task\NAnt.NUnit2OutProcTasks.dll'
[236] NAnt.NUnit2OutProc.TestDomainHostRunner[2.0.50727]: DEBUG: OnAssemblyResolve(): success resolving assembly 'NAnt.NUnit2OutProcTasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
show, that the external test-process (tmpXXX.exe in TaskManager) are launching without problem and the tests obviously get executed within this process. (of course it shouldn't fail though - but that's a different story)
How did you tweak the build file to use 2.0 only? You have to change the "test-all" target to:
<target name="test-all" description="Rebuilds and tests with all frameworks" depends="clean, build-task">
<!-- load custom nunit task -->
<loadtasks assembly="${build.outputdir}/${project::get-name()}Tasks.dll" />
<call target="set-framework-net-2.0" />
<call target="build-test" />
<call target="test" />
</target>
don't change anything else!
cheers,
Erich
rolandz
03-19-2007, 07:07 PM
Hi,
I've changed timeout in the line 130 in the tools\NAnt.NUnit2OutProc.Task\src\NAnt.NUnit2OutPr oc.Task\TestDomainHostManager.cs file from 5000 to 15000 and got an event fired so it seems that it helps.
However, leter on a security issue gets discoverred:
[nunit2outproc] Source : Spring.Context.Events.ConsoleListenerT
ests
[nunit2outproc] Event fired : 2007-03-19 18:47:06
[nunit2outproc] Spring.Context.Support.XmlApplicationContextTests+ De
stroyTester
[nunit2outproc]
[nunit2outproc] Tests run: 1914, Failures: 1, Not run: 13, Time: 239
.134 seconds
[nunit2outproc]
[nunit2outproc] Failures:
[nunit2outproc] 1) Spring.Objects.TypeConverters.RegistryKeyConverte
rTests.ConvertFrom : System.Security.SecurityException : Requested registry acce
ss is not allowed.
[nunit2outproc] at System.ThrowHelper.ThrowSecurityException(Exce
ptionResource resource)
[nunit2outproc] at Microsoft.Win32.RegistryKey.OpenSubKey(String
name, Boolean writable)
[nunit2outproc] at Spring.Objects.TypeConverters.RegistryKeyConve
rter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object val
ue) in c:\Projects\Spring.Net\src\Spring\Spring.Core\Obje cts\TypeConverters\Regi
stryKeyConverter.cs:line 95
[nunit2outproc] at System.ComponentModel.TypeConverter.ConvertFro
m(Object value)
[nunit2outproc] at Spring.Objects.TypeConverters.RegistryKeyConve
rterTests.ConvertFrom() in c:\Projects\Spring.Net\test\Spring\Spring.Core.Tes ts\
Objects\TypeConverters\RegistryKeyConverterTests.c s:line 61
[nunit2outproc]
[nunit2outproc] Tests not run:
[nunit2outproc] 1) Spring.Context.Support.ResourceSetMessageSourceTe
sts.GetNullResourceIn2PointOh : See SPRNET-246
[nunit2outproc] 2) Spring.Core.IO.ConfigurableResourceLoaderTests.Ge
tHttpUrlResource : Explicit selection required
[nunit2outproc] 3) Spring.Objects.Factory.Config.CommandLineArgsVari
ableSourceTests.TestLiveVariablesResolutionWithTes tDriven : Explicit selection r
equired
[nunit2outproc] 4) Spring.Objects.Factory.Xml.EventWiringTests.Event
WiringInstanceSinkToPrototypeSource : SPRNET-21
[nunit2outproc] 5) Spring.Objects.Support.PropertyComparatorTests.Or
deringIsUnperturbedWithEqualProps : Sort ordering is not preserved (unstable) wi
th equal elements (c.f. System.Array.Sort (Array, IComparer)))
[nunit2outproc] 6) Spring.Objects.TypeConverters.StreamConverterTest
s.ConvertFrom : Explicit selection required
[nunit2outproc] 7) Spring.Objects.TypeConverters.StreamConverterTest
s.ConvertFromValidButNonExistingStreamResource : Explicit selection required
[nunit2outproc] 8) Spring.Objects.ObjectWrapperTests.GetValueOfCusto
mIndexerProperty :
[nunit2outproc] 9) Spring.Objects.ObjectWrapperTests.GetSetIndexerPr
operties :
[nunit2outproc] 10) Spring.Objects.ObjectWrapperTests.SetIndexOutOfR
angeFromListProperty : Addition of elements to the list via index that is out of
range is not supported anymore.
[nunit2outproc] 11) Spring.Pool.StessSimplePool.ScalingAgainstIncrea
singNumberOfThreads : a try for a stress
[nunit2outproc] 12) Spring.Util.DynamicReflection.DynamicPropertyTes
ts.PerformanceTests : Explicit selection required
[nunit2outproc] 13) Spring.Util.PathMatcherTest.ThisIsATestForDebugg
ingPurposes : Explicit selection required
[nunit2outproc]
[nunit2outproc]
BUILD FAILED
C:\Projects\Spring.Net\test\Spring\Spring.Core.Tes ts\Spring.Core.Tes
ts.build(58,4):
Tests Failed.
I think all timeouts should be much greater than 5000 since windows is not RT system and we have absolutely no guarantee that 5000 is enough. On the other side smaller value will be enough in most cases I think - so greater value does not introduce negative influence...
About security - is this really required? I have very paranoic security on my machine so ANY registyy access (except user local profile) gets denied :(
What I see there a registry access is required there - not a specific key. So maybe a local user space could be applied there...
Erich Eichinger
03-19-2007, 07:33 PM
Hi Roland,
you're right - I'll increase the timeout.
For the security exception: what restrictions do apply to your home user? normal "User" group? We need this to reproduce the problem.
tx,
Erich
Aleks Seovic
03-19-2007, 10:52 PM
Hi Roland,
I just modified the test to use HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE hive, so hopefully you should be ok now.
Later,
Aleks
rolandz
03-20-2007, 07:30 AM
Hi,
I love open source projects :) Now it builds successfully :) Thanx a lot.
Regarding my account - it is regular windows limited account that belongs to the ``Users'' group. I've added the account to ``Debugger Users'' group additionally. Does it make sense to extract an SCL list for the account? It could be a lot of data (and exposes me to hackers p[ossibly :| ) For sure I have no write access to ``Program Files'' and ``System'' directories as well as I cannot write directly to ``C:\''. Also I cannot write to the registry (well I can to the HKEY_CURRENT_USER hive). Also I cannot perform ANY administrative task (possibly they require to have appropriate group assignement - for this purpose I use separate account.
Note: all these restrictions allow me to do all development jobs. Just there are sometiimes programs (with bad design) that don't run. I drop them unconditionally...
Aleks Seovic
03-25-2007, 06:40 AM
Note: all these restrictions allow me to do all development jobs. Just there are sometiimes programs (with bad design) that don't run. I drop them unconditionally...
Well, I'm sure glad I changed the test so you don't drop Spring.NET ;)
- Aleks
rolandz
03-26-2007, 12:34 PM
Well, I'm sure glad I changed the test so you don't drop Spring.NET ;)
I've invested into Spring a lot and find it extreemly usefull for even small applications so I won't drop it yet for a long time.
Currently I've applied "vendor branche" strategy (from SVN book) to my repository - it leads to better Spring understanding and uncomparable better debugging possibilities :) The only problem now is when a HEAD gets broken and I merge it without checking into my Trunk (but I learn and check it twice now)...
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.