You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Brian Lachniet (JIRA)" <ji...@apache.org> on 2019/06/22 15:26:01 UTC

[jira] [Created] (AVRO-2442) C# Test not running in Travis CI

Brian Lachniet created AVRO-2442:
------------------------------------

             Summary: C# Test not running in Travis CI
                 Key: AVRO-2442
                 URL: https://issues.apache.org/jira/browse/AVRO-2442
             Project: Apache Avro
          Issue Type: Bug
          Components: csharp
            Reporter: Brian Lachniet
            Assignee: Brian Lachniet
             Fix For: 1.9.1


The C# tests on the Travis CI build stopped working with [build 588 on master|https://travis-ci.org/apache/avro/jobs/520650263]. The previous build on master, [build 585|https://travis-ci.org/apache/avro/jobs/518198466] worked fine. It is not clear what changes in between these two builds cause this failure.

From the build log, here's the before and after:
{code:title=before/passing}
+ dotnet test --configuration Release --framework netcoreapp2.0 ./src/apache/test/Avro.test.csproj
Microsoft (R) Build Engine version 16.0.450+ga8dc7f1d34 for .NET Core

Copyright (C) Microsoft Corporation. All rights reserved.


  Restore completed in 23.61 ms for /testptch/unknown/lang/csharp/src/apache/main/Avro.main.csproj.
  Restore completed in 1.8 sec for /testptch/unknown/lang/csharp/src/apache/test/Avro.test.csproj.
Test run for /testptch/unknown/lang/csharp/src/apache/test/bin/Release/netcoreapp2.0/Avro.test.dll(.NETCoreApp,Version=v2.0)
Microsoft (R) Test Execution Command Line Tool Version 16.0.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

Total tests: 510. Passed: 510. Failed: 0. Skipped: 0.
Test Run Successful.
Test execution time: 59.5706 Seconds
+ exit 0
{code}
{code:title=after/failing}
+ dotnet test --configuration Release --framework netcoreapp2.0 ./src/apache/test/Avro.test.csproj
Microsoft (R) Build Engine version 16.0.450+ga8dc7f1d34 for .NET Core

Copyright (C) Microsoft Corporation. All rights reserved.


  Restore completed in 24.32 ms for /testptch/unknown/lang/csharp/src/apache/main/Avro.main.csproj.
  Restore completed in 1.68 sec for /testptch/unknown/lang/csharp/src/apache/test/Avro.test.csproj.
Test run for /testptch/unknown/lang/csharp/src/apache/test/bin/Release/netcoreapp2.0/Avro.test.dll(.NETCoreApp,Version=v2.0)
Microsoft (R) Test Execution Command Line Tool Version 16.0.1
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...
Exception System.NullReferenceException, Exception thrown executing tests in /testptch/unknown/lang/csharp/src/apache/test/bin/Release/netcoreapp2.0/Avro.test.dll
Object reference not set to an instance of an object.
   at System.Globalization.CalendarData.NormalizeDatePattern(String input)
   at System.Globalization.CalendarData.LoadCalendarDataFromSystem(String localeName, CalendarId calendarId)
   at System.Globalization.CalendarData..ctor(String localeName, CalendarId calendarId, Boolean bUseUserOverrides)
   at System.Globalization.CultureData.GetCalendar(CalendarId calendarId)
   at System.Globalization.CultureData.DateSeparator(CalendarId calendarId)
   at System.Globalization.DateTimeFormatInfo.InitializeOverridableProperties(CultureData cultureData, CalendarId calendarId)
   at System.Globalization.CultureInfo.get_DateTimeFormat()
   at System.Globalization.DateTimeFormatInfo.get_CurrentInfo()
   at System.DateTimeFormat.Format(DateTime dateTime, String format, IFormatProvider provider, TimeSpan offset)
   at System.DateTimeFormat.Format(DateTime dateTime, String format, IFormatProvider provider)
   at NUnit.Framework.Internal.TestResult.AddToXml(TNode parentNode, Boolean recursive)
   at NUnit.Framework.Api.FrameworkController.RunTests(Action`1 callback, String filter)
No test is available in /testptch/unknown/lang/csharp/src/apache/test/bin/Release/netcoreapp2.0/Avro.test.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

Additionally, path to test adapters can be specified using /TestAdapterPath command. Example  /TestAdapterPath:<pathToCustomAdapters>.
+ exit 0
{code}

Of additional concern is that the {{build.sh}} still exits with a 0 code, even though there was a clear failure.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)