GithubHelp home page GithubHelp logo

log-rebuilder's People

Contributors

mycroft avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

log-rebuilder's Issues

C# exceptions: Handle inner exceptions

Handle exceptions with inner exceptions in them:

SetUp failed for test fixture Criteo.LogsTestaroo.ITest.ITestSetUpFixture
An exception was thrown during OneTimeSetUp: System.AggregateException: One or more errors occurred. (Failed to run sqlpackage. Make sure it is in your PATH.) ---> Criteo.Testing.Isolation.DB.DbException: Failed to run sqlpackage. Make sure it is in your PATH. ---> System.ComponentModel.Win32Exception: No such file or directory
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at Criteo.Testing.Isolation.Util.ProcessWrapper.Start() in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\Util\ProcessWrapper.cs:line 146
   at Criteo.Testing.Isolation.DB.DbExecutable.RunAndWait(String args, String dir) in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\DB\DbExecutable\DbExecutable.cs:line 37
   --- End of inner exception stack trace ---
   at Criteo.Testing.Isolation.DB.DbExecutable.RunAndWait(String args, String dir) in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\DB\DbExecutable\DbExecutable.cs:line 41
   at Criteo.Testing.Isolation.Util.Retry.<>c__DisplayClass2_0.<Do>b__0() in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\Util\Retry.cs:line 73
   at Criteo.Testing.Isolation.Util.Retry.Do[T](Func`1 fnc, Int32 tryCount, Int32 retryDelayMs, Action`1 observer) in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\Util\Retry.cs:line 42
   at Criteo.Testing.Isolation.Util.Retry.Do(Action action, Int32 tryCount, Int32 retryDelayMs, Action`1 observer) in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\Util\Retry.cs:line 75
   at Criteo.Testing.Isolation.DB.DacpacDeployment.BuildScript() in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\DB\DacpacDeployment.cs:line 55
   at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica.Execute()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
   at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Parallel.ThrowSingleCancellationExceptionOrOtherException(ICollection exceptions, CancellationToken cancelToken, Exception otherException)
   at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
   at Criteo.Testing.Isolation.DatabasesSetup.BuildScripts(IEnumerable`1 databases) in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\DatabasesSetup.cs:line 192
   at Criteo.Testing.Isolation.DatabasesSetup.Init(IEnumerable`1 databases) in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\DatabasesSetup.cs:line 164
   at Criteo.LogsTestaroo.ITest.ITestSetUpFixture.RunBeforeTheFirstTest() in /home/mycroft/criteo/JMOAB-csharp/project/testaroo/Criteo.LogsTestaroo.ITest/ITestSetUpFixture.cs:line 19
---> (Inner Exception #0) Criteo.Testing.Isolation.DB.DbException: Failed to run sqlpackage. Make sure it is in your PATH. ---> System.ComponentModel.Win32Exception: No such file or directory
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at Criteo.Testing.Isolation.Util.ProcessWrapper.Start() in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\Util\ProcessWrapper.cs:line 146
   at Criteo.Testing.Isolation.DB.DbExecutable.RunAndWait(String args, String dir) in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\DB\DbExecutable\DbExecutable.cs:line 37
   --- End of inner exception stack trace ---
   at Criteo.Testing.Isolation.DB.DbExecutable.RunAndWait(String args, String dir) in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\DB\DbExecutable\DbExecutable.cs:line 41
   at Criteo.Testing.Isolation.Util.Retry.<>c__DisplayClass2_0.<Do>b__0() in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\Util\Retry.cs:line 73
   at Criteo.Testing.Isolation.Util.Retry.Do[T](Func`1 fnc, Int32 tryCount, Int32 retryDelayMs, Action`1 observer) in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\Util\Retry.cs:line 42
   at Criteo.Testing.Isolation.Util.Retry.Do(Action action, Int32 tryCount, Int32 retryDelayMs, Action`1 observer) in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\Util\Retry.cs:line 75
   at Criteo.Testing.Isolation.DB.DacpacDeployment.BuildScript() in C:\ps2\testing\testing-csharp\Criteo.Testing.Isolation\DB\DacpacDeployment.cs:line 55
   at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Parallel.<>c__DisplayClass44_0`2.<PartitionerForEachWorker>b__1(IEnumerator& partitionState, Int32 timeout, Boolean& replicationDelegateYieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica`1.ExecuteAction(Boolean& yieldedBeforeCompletion)
   at System.Threading.Tasks.TaskReplicator.Replica.Execute()<---

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.