Skip to content

Raise when *_NODE_TOTAL or *_NODE_INDEX is missing#256

Merged
3v0k4 merged 1 commit intomasterfrom
raise-when-node-envs-missing
May 27, 2024
Merged

Raise when *_NODE_TOTAL or *_NODE_INDEX is missing#256
3v0k4 merged 1 commit intomasterfrom
raise-when-node-envs-missing

Conversation

@Pacyfik
Copy link
Copy Markdown
Contributor

@Pacyfik Pacyfik commented May 24, 2024

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

  • You follow the architecture outlined below for RSpec in Queue Mode, which is a work in progress (feel free to propose changes):
    • Pure: lib/knapsack_pro/pure/queue/rspec_pure.rb contains pure functions that are unit tested.
    • Extension: lib/knapsack_pro/extensions/rspec_extension.rb encapsulates calls to RSpec internals and is integration and e2e tested.
    • Runner: lib/knapsack_pro/runners/queue/rspec_runner.rb invokes the pure code and the extension to produce side effects, which are integration and e2e tested.

@Pacyfik Pacyfik self-assigned this May 24, 2024
@Pacyfik Pacyfik force-pushed the raise-when-node-envs-missing branch from 1d459ca to d3d4d74 Compare May 24, 2024 14:18
@3v0k4 3v0k4 merged commit 8c2b8ba into master May 27, 2024
@3v0k4 3v0k4 deleted the raise-when-node-envs-missing branch May 27, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants