From 5df33e5b90d3abd6c3294ae1b7496e3e24c50294 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Tue, 27 Feb 2018 14:24:35 -0800 Subject: [PATCH] Make alternative routes tests stable by only being single-threaded --- features/testbot/alternative.feature | 8 ++++++++ features/testbot/alternative_loop.feature | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/features/testbot/alternative.feature b/features/testbot/alternative.feature index 2fc260265..40bbad5da 100644 --- a/features/testbot/alternative.feature +++ b/features/testbot/alternative.feature @@ -4,6 +4,14 @@ Feature: Alternative route Background: Given the profile "testbot" And a grid size of 200 meters + # Force data preparation to single-threaded to ensure consistent + # results for alternative generation during tests (alternative + # finding is highly sensitive to graph shape, which is in turn + # affected by parallelism during generation) + And the contract extra arguments "--threads 1" + And the extract extra arguments "--threads 1" + And the customize extra arguments "--threads 1" + And the partition extra arguments "--threads 1" And the node map """ diff --git a/features/testbot/alternative_loop.feature b/features/testbot/alternative_loop.feature index dde3632a9..182137969 100644 --- a/features/testbot/alternative_loop.feature +++ b/features/testbot/alternative_loop.feature @@ -4,6 +4,14 @@ Feature: Alternative route Background: Given the profile "testbot" Given a grid size of 200 meters + # Force data preparation to single-threaded to ensure consistent + # results for alternative generation during tests (alternative + # finding is highly sensitive to graph shape, which is in turn + # affected by parallelism during generation) + And the contract extra arguments "--threads 1" + And the extract extra arguments "--threads 1" + And the customize extra arguments "--threads 1" + And the partition extra arguments "--threads 1" Scenario: Alternative Loop Paths Given the node map