Issue building OpenTripPlanner dev-2.x

70 views
Skip to first unread message

Aimée Simcic Mori

unread,
Jul 31, 2020, 10:59:15 AM7/31/20
to OpenTripPlanner Users
Hello everyone,

While trying to build OpenTripPlanner dev-2.x, I had the following issue:

Results :

Failed tests:
  TestOpenStreetMapGraphBuilder.testLocalizedString:308 expected:<[corner of first and] second> but was:<[intersection de first et] second>
Tests in error:
  DirectoryDataSourceTest.testIO:90 » Runtime Failed to delete C:\Users\asimcic\...

Tests run: 861, Failures: 1, Errors: 1, Skipped: 37

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  10:35 min
[INFO] Finished at: 2020-07-31T16:40:40+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project otp: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\asimcic\Documents\OpenTripPlanner\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:

OS:  Microsoft Windows 10 Entreprise 10.0.18363
Java Development Kit 11.0.8
Maven 3.6.3

Can someone help me out on this issue ?

Aimée

t2g...@gmail.com

unread,
Sep 22, 2020, 4:00:26 AM9/22/20
to OpenTripPlanner Users

Andrew Byrd

unread,
Oct 13, 2020, 11:13:36 PM10/13/20
to t2g...@gmail.com, OpenTripPlanner Users
Hello,

It looks like the report from Aimée shows one test failing and one in error. The error is the one Thomas linked to, which appears to be a platform-specific issue with Windows. In other projects I’ve also received reports of Windows being more restrictive about file deletions.

The failing test seems to be due to a test expecting a specific string in English, but receiving a string in French. TestOpenStreetMapGraphBuilder#testLocalizedString calls toString which uses the default locale. This test will not pass on any machine whose default locale is not English. 

I will create an issue for this.

-Andrew

-- 
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opentripplanner-users/2a0eb4da-eb63-425a-a4b5-85c010cb8c2an%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages