KnapsackPro / knapsack_pro-ruby

Knapsack Pro gem splits tests across parallel CI nodes and makes sure that tests run in optimal time
https://knapsackpro.com
MIT License
132 stars 27 forks source link

Raise when `*_NODE_TOTAL` or `*_NODE_INDEX` is missing #256

Closed Pacyfik closed 5 months ago

Pacyfik commented 5 months ago

Story

https://trello.com/c/jB6bXgzH/192

Description

Raise when KNAPSACK_PRO_CI_NODE_TOTAL or KNAPSACK_PRO_CI_NODE_INDEX is missing and can't be determined from supported CI environments, instead of defaulting to arbitrary numbers.

Changes

ci_node_total no longer defaults to 1 and ci_node_index no longer defaults to 0. Instead, an error is raised, like with missing ci_node_build_id or test_suite_token.

Checklist reminder