Skip to content

[breaking change] KNAPSACK_PRO_CI_NODE_BUILD_ID required#195

Merged
3v0k4 merged 2 commits intomasterfrom
ci-node-build-id-required
May 22, 2023
Merged

[breaking change] KNAPSACK_PRO_CI_NODE_BUILD_ID required#195
3v0k4 merged 2 commits intomasterfrom
ci-node-build-id-required

Conversation

@3v0k4
Copy link
Copy Markdown
Contributor

@3v0k4 3v0k4 commented May 17, 2023

KNAPSACK_PRO_CI_NODE_BUILD_ID is a mandatory environment variable, so let's raise when it's missing.

Ruby counterpart of KnapsackPro/knapsack-pro-core-js#67

@3v0k4 3v0k4 changed the title feat: KNAPSACK_PRO_CI_NODE_BUILD_ID required KNAPSACK_PRO_CI_NODE_BUILD_ID required May 17, 2023
@3v0k4 3v0k4 marked this pull request as draft May 17, 2023 16:38
@3v0k4 3v0k4 self-assigned this May 17, 2023
@3v0k4 3v0k4 force-pushed the ci-node-build-id-required branch from d15f744 to 55cc790 Compare May 17, 2023 16:44
@3v0k4 3v0k4 marked this pull request as ready for review May 18, 2023 16:34
@3v0k4 3v0k4 requested a review from ArturT May 18, 2023 16:34
Comment thread spec/knapsack_pro/config/env_spec.rb Outdated
ENV[env_name] ||
ci_env_for(:node_build_id) ||
'missing-build-id'
raise("Missing environment variable #{env_name}. Read more at #{KnapsackPro::Urls::KNAPSACK_PRO_CI_NODE_BUILD_ID}")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could update CHANGLELOG as part of this PR. Please also make sure you release a major version 4.0.0 because we have a breaking change here. If someone uses CI provider without out-of-the-box CI build ID support then we could break their CI builds with this change when they upgrade the gem.

@3v0k4 3v0k4 force-pushed the ci-node-build-id-required branch from fda0dd6 to 0ad3dbd Compare May 19, 2023 14:24
@3v0k4 3v0k4 changed the title KNAPSACK_PRO_CI_NODE_BUILD_ID required [breaking change] KNAPSACK_PRO_CI_NODE_BUILD_ID required May 22, 2023
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