Skip to content

Commit

Permalink
Update readme about fallback behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturT committed Aug 15, 2017
1 parent 7196ff6 commit 86479a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1014,11 +1014,11 @@ There are a few ways to reproduce tests executed on CI node in your development
##### for knapack_pro regular mode
knapack_pro gem will retry requests to Knapsack Pro API multiple times every few seconds til it switch to fallback behaviour and it will split test files across CI nodes based on popular test directory names.
knapack_pro gem will retry requests to Knapsack Pro API multiple times every few seconds til it switch to fallback behavior and it will split test files across CI nodes based on popular test directory names. When knapack_pro starts fallback mode then you will see a warning in the output.
##### for knapsack_pro queue mode
knapack_pro gem will retry requests to Knapsack Pro API multiple times every few seconds til it fails.
knapack_pro gem will retry requests to Knapsack Pro API multiple times every few seconds till it switches to fallback behavior and it will split test files across CI nodes based on popular test directory names. Note that if one of CI nodes will lose connection to Knapsack Pro API but other not then you may see that some of the test files will be executed on multiple CI nodes. Fallback mode guarantees each of test files is run at least once across CI nodes. Thanks to that we know if the whole test suite is green or not. When knapack_pro starts fallback mode then you will see a warning in the output.
#### How can I change log level?
Expand Down
1 change: 1 addition & 0 deletions lib/knapsack_pro/allocator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def test_file_paths
raise ArgumentError.new(response) if connection.errors?
prepare_test_files(response)
else
KnapsackPro.logger.warn("Fallback mode started. We could not connect with Knapsack Pro API. Your tests will be executed based on directory names. Read more about fallback mode at https://github.com/KnapsackPro/knapsack_pro-ruby")
fallback_test_files
end
end
Expand Down

0 comments on commit 86479a7

Please sign in to comment.