Skip to content

Rare failure of RandomizedRoutingTest for edge-based CH #1916

Closed

Description

@easbar

For this commit an CH (edge-based) test failed during a CI build: 79f3ecd

[INFO] Running com.graphhopper.routing.weighting.RandomizedRoutingTest
expected: [50, 8, 35, 22]
given:    [50, 1, 22]
seed: 130339338847
[ERROR] Tests run: 60, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.595 s <<< FAILURE! - in com.graphhopper.routing.weighting.RandomizedRoutingTest
[ERROR] randomGraph_withQueryGraph[CH_ASTAR, EDGE_BASED](com.graphhopper.routing.weighting.RandomizedRoutingTest)  Time elapsed: 0.069 s  <<< FAILURE!
java.lang.AssertionError: 
wrong weight: 50->22
expected: 69.53626249436314
given:    71.0755881986408
seed: 130339338847
	at com.graphhopper.routing.weighting.RandomizedRoutingTest.comparePaths(RandomizedRoutingTest.java:353)
	at com.graphhopper.routing.weighting.RandomizedRoutingTest.runWithQueryGraph(RandomizedRoutingTest.java:310)
	at com.graphhopper.routing.weighting.RandomizedRoutingTest.randomGraph_withQueryGraph(RandomizedRoutingTest.java:282)

Activity

  1. easbar commented on Mar 28, 2020

    @easbar
    MemberAuthor

    In this commit: dfa19a6 some issues of this test were changed and now turn costs are also included. Also the encoder was changed from motorcycle to car. However the test still fails as of now (fb3eed8) if we change the encoder back to Motorcycle (and use the above seed).

  2. easbar commented on Jun 23, 2020

    @easbar
    MemberAuthor

    Here is another... d353297

    Update December 2020: Apparently this one was 'fixed' in this commit: 028203c, but that does not really mean the bug was actually fixed.

  3. easbar commented on Dec 13, 2020

    @easbar
    MemberAuthor

    However the test still fails as of now (fb3eed8) if we change the encoder back to Motorcycle (and use the above seed).

    This is just a duplicate of #2061

    Here is another... d353297

    This is a rare case of a certain soft violation:

    [
    wrong distance 33->50, expected: 6745.514924478206, given: 7031.102924478206, wrong nodes 33->50
    expected: [33, 44, 18, 39, 35, 16, 5, 23, 28, 43, 15, 0, 21, 2, 32, 50]
    given:    [33, 44, 18, 39, 35, 17, 6, 5, 23, 28, 43, 15, 0, 21, 2, 32, 50], 
    wrong distance 50->51, expected: 6800.420893766574, given: 7086.008893766575, wrong nodes 50->51
    expected: [50, 44, 18, 39, 35, 16, 5, 23, 28, 43, 15, 34, 14, 7, 51]
    given:    [50, 44, 18, 39, 35, 17, 6, 5, 23, 28, 43, 15, 34, 14, 7, 51]
    ]
    

    Apparently the alternatives 35-16-5 and 35-17-6-5 have same weights, but different distances.

  4. easbar commented on Dec 17, 2020

    @easbar
    MemberAuthor

    Fixed via #2215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions