Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: check constructs against account default runtime if not given [sc-22843] #1007

Merged

Conversation

sorccu
Copy link
Contributor

@sorccu sorccu commented Jan 12, 2025

The CLI had a hardcoded default runtime value of 2024.02, which became the effective value if no runtime was set at check or project level. Now, the account's default runtime is used instead. Additionally, if the account's default runtime is used, then we leave runtimeId undefined when synthesizing resources. This allows the user to have their checks always use the current account default runtime if they wish. If they do not wish to have such behavior, they should set a default runtime at project level as usual.

Technically speaking this is a potentially breaking change if a user has something other than 2024.02 set as their default account runtime, and have never set a runtime at project or check level. When they next deploy their checks (or run checkly test), a different runtime will be used. However, this kind of usage should be rare, and the user may simply change their default account runtime or define the runtime in the CLI project to restore the previous runtime, if needed.

I hereby confirm that I followed the code guidelines found at engineering guidelines

Affected Components

  • CLI
  • Create CLI
  • Test
  • Docs
  • Examples
  • Other

Notes for the Reviewer

Resolves #[issue-number]

New Dependency Submission

@sorccu sorccu requested a review from maxigimenez January 12, 2025 20:43
The CLI had a hardcoded default runtime value of 2024.02 which became the
effective value if no runtime was set at check or project level. Now, the
account's default runtime is used instead. Additionally, if the account's
default runtime is used, then we leave `runtimeId` undefined when synthesizing
resources. This allows the user to have their checks always use the current
account default runtime if they wish. If they do not wish to have such
behavior, they should set a default runtime at project level as usual.
@sorccu sorccu force-pushed the simokinnunen/sc-22843/check-account-runtime-if-check-runtime-is branch from 8745c9a to 302aa8b Compare January 12, 2025 20:59
Copy link
Member

@maxigimenez maxigimenez left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@sorccu sorccu merged commit 611733f into main Jan 13, 2025
3 checks passed
@sorccu sorccu deleted the simokinnunen/sc-22843/check-account-runtime-if-check-runtime-is branch January 13, 2025 15:33
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