From 396a2af1144a51d729b5db622a16d3b346a70f09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Susa=20T=C3=BCnker?= Date: Mon, 24 Nov 2025 09:06:35 +0100 Subject: [PATCH 1/4] adjusted default values to be compatible with hobby plan entitlements --- .../src/__checks__/utils/alert-channels.js | 7 ------- examples/advanced-project/checkly.config.ts | 8 ++++---- .../src/__checks__/utils/alert-channels.ts | 6 ------ examples/boilerplate-project-js/__checks__/api.check.js | 2 +- examples/boilerplate-project-js/checkly.config.js | 4 ++-- examples/boilerplate-project/__checks__/api.check.ts | 2 +- examples/boilerplate-project/checkly.config.ts | 4 ++-- .../fixtures/initiated-project/checkly.config.ts | 4 ++-- .../__tests__/fixtures/checkly-project/checkly.config.ts | 4 ++-- 9 files changed, 14 insertions(+), 27 deletions(-) diff --git a/examples/advanced-project-js/src/__checks__/utils/alert-channels.js b/examples/advanced-project-js/src/__checks__/utils/alert-channels.js index e87f53ff2..0e7abdf67 100644 --- a/examples/advanced-project-js/src/__checks__/utils/alert-channels.js +++ b/examples/advanced-project-js/src/__checks__/utils/alert-channels.js @@ -1,7 +1,6 @@ const { URL } = require('node:url') const { - SmsAlertChannel, EmailAlertChannel, SlackAlertChannel, WebhookAlertChannel, @@ -21,11 +20,6 @@ const sendDefaults = { sslExpiryThreshold: 30, }; -const smsChannel = new SmsAlertChannel('sms-channel-1', { - phoneNumber: '0031061234567890', - ...sendDefaults, -}) - const emailChannel = new EmailAlertChannel('email-channel-1', { address: 'alerts@acme.com', ...sendDefaults, @@ -57,7 +51,6 @@ const webhookChannel = new WebhookAlertChannel('webhook-channel-1', { }) module.exports = { - smsChannel, emailChannel, slackChannel, webhookChannel, diff --git a/examples/advanced-project/checkly.config.ts b/examples/advanced-project/checkly.config.ts index 577437649..5ddde2f00 100644 --- a/examples/advanced-project/checkly.config.ts +++ b/examples/advanced-project/checkly.config.ts @@ -18,15 +18,15 @@ const config = defineConfig({ /* A default for how often your Check should run in minutes */ frequency: 10, /* Checkly data centers to run your Checks as monitors */ - locations: ['us-east-1', 'eu-west-1'], + locations: ['us-east-1', 'eu-central-1'], /* An optional array of tags to organize your Checks */ tags: ['mac'], /** The Checkly Runtime identifier, determining npm packages and the Node.js version available at runtime. * See https://www.checklyhq.com/docs/cli/npm-packages/ */ runtimeId: '2025.04', - /* Failed check runs will be retried before triggering alerts */ - retryStrategy: RetryStrategyBuilder.fixedStrategy({ baseBackoffSeconds: 60, maxRetries: 4, sameRegion: true }), + /* Failed check runs will be retried before triggering alerts - not available on all plan types */ + // retryStrategy: RetryStrategyBuilder.fixedStrategy({ baseBackoffSeconds: 60, maxRetries: 4, sameRegion: true }), /* All checks will have this alert escalation policy defined */ alertEscalationPolicy: AlertEscalationBuilder.runBasedEscalation(1), /* A glob pattern that matches the Checks inside your repo, see https://www.checklyhq.com/docs/constructs/including-checks/#checks-checkmatch */ @@ -57,7 +57,7 @@ const config = defineConfig({ }, cli: { /* The default datacenter location to use when running npx checkly test */ - runLocation: 'eu-west-1', + runLocation: 'eu-central-1', /* An array of default reporters to use when a reporter is not specified with the "--reporter" flag */ reporters: ['list'], /* How many times to retry a failing test run when running `npx checkly test` or `npx checkly trigger` (max. 3) */ diff --git a/examples/advanced-project/src/__checks__/utils/alert-channels.ts b/examples/advanced-project/src/__checks__/utils/alert-channels.ts index 0ff6dcaa8..e0c30bf39 100644 --- a/examples/advanced-project/src/__checks__/utils/alert-channels.ts +++ b/examples/advanced-project/src/__checks__/utils/alert-channels.ts @@ -1,6 +1,5 @@ import { URL } from 'node:url' import { - SmsAlertChannel, EmailAlertChannel, SlackAlertChannel, WebhookAlertChannel @@ -21,11 +20,6 @@ const sendDefaults = { sslExpiryThreshold: 30 } -export const smsChannel = new SmsAlertChannel('sms-channel-1', { - phoneNumber: '0031061234567890', - ...sendDefaults -}) - export const emailChannel = new EmailAlertChannel('email-channel-1', { address: 'alerts@acme.com', ...sendDefaults diff --git a/examples/boilerplate-project-js/__checks__/api.check.js b/examples/boilerplate-project-js/__checks__/api.check.js index 4c66734f1..2e505e906 100644 --- a/examples/boilerplate-project-js/__checks__/api.check.js +++ b/examples/boilerplate-project-js/__checks__/api.check.js @@ -18,5 +18,5 @@ new ApiCheck("books-api-check-1", { AssertionBuilder.jsonBody("$[0].id").isNotNull(), ], }, - runParallel: true, + runParallel: false, }) diff --git a/examples/boilerplate-project-js/checkly.config.js b/examples/boilerplate-project-js/checkly.config.js index 921016976..af95d673d 100644 --- a/examples/boilerplate-project-js/checkly.config.js +++ b/examples/boilerplate-project-js/checkly.config.js @@ -17,7 +17,7 @@ const config = defineConfig({ /* A default for how often your Check should run in minutes */ frequency: 10, /* Checkly data centers to run your Checks as monitors */ - locations: ['us-east-1', 'eu-west-1'], + locations: ['us-east-1', 'eu-central-1'], /* An optional array of tags to organize your Checks */ tags: ['mac'], /** The Checkly Runtime identifier, determining npm packages and the Node.js version available at runtime. @@ -52,7 +52,7 @@ const config = defineConfig({ }, cli: { /* The default datacenter location to use when running npx checkly test */ - runLocation: 'eu-west-1', + runLocation: 'eu-central-1', /* An array of default reporters to use when a reporter is not specified with the "--reporter" flag */ reporters: ['list'], /* How many times to retry a failing test run when running `npx checkly test` or `npx checkly trigger` (max. 3) */ diff --git a/examples/boilerplate-project/__checks__/api.check.ts b/examples/boilerplate-project/__checks__/api.check.ts index 1e4954cef..d75330d45 100644 --- a/examples/boilerplate-project/__checks__/api.check.ts +++ b/examples/boilerplate-project/__checks__/api.check.ts @@ -18,5 +18,5 @@ new ApiCheck('books-api-check-1', { AssertionBuilder.jsonBody('$[0].id').isNotNull(), ], }, - runParallel: true, + runParallel: false, }) diff --git a/examples/boilerplate-project/checkly.config.ts b/examples/boilerplate-project/checkly.config.ts index 872edac03..9309f9677 100644 --- a/examples/boilerplate-project/checkly.config.ts +++ b/examples/boilerplate-project/checkly.config.ts @@ -17,7 +17,7 @@ const config = defineConfig({ /* A default for how often your Check should run in minutes */ frequency: 10, /* Checkly data centers to run your Checks as monitors */ - locations: ['us-east-1', 'eu-west-1'], + locations: ['us-east-1', 'eu-central-1'], /* An optional array of tags to organize your Checks */ tags: ['mac'], /** The Checkly Runtime identifier, determining npm packages and the Node.js version available at runtime. @@ -52,7 +52,7 @@ const config = defineConfig({ }, cli: { /* The default datacenter location to use when running npx checkly test */ - runLocation: 'eu-west-1', + runLocation: 'eu-central-1', /* An array of default reporters to use when a reporter is not specified with the "--reporter" flag */ reporters: ['list'], /* How many times to retry a failing test run when running `npx checkly test` or `npx checkly trigger` (max. 3) */ diff --git a/packages/create-cli/e2e/__tests__/fixtures/initiated-project/checkly.config.ts b/packages/create-cli/e2e/__tests__/fixtures/initiated-project/checkly.config.ts index 25400fae0..dd7033661 100644 --- a/packages/create-cli/e2e/__tests__/fixtures/initiated-project/checkly.config.ts +++ b/packages/create-cli/e2e/__tests__/fixtures/initiated-project/checkly.config.ts @@ -6,7 +6,7 @@ const config = defineConfig({ repoUrl: 'https://github.com/checkly/checkly-cli', checks: { frequency: 10, - locations: ['us-east-1', 'eu-west-1'], + locations: ['us-east-1', 'eu-central-1'], tags: ['mac'], runtimeId: '2023.02', checkMatch: '**/__checks__/**/*.check.ts', @@ -15,7 +15,7 @@ const config = defineConfig({ }, }, cli: { - runLocation: 'eu-west-1', + runLocation: 'eu-central-1', reporters: ['list'], }, }) diff --git a/packages/create-cli/src/utils/__tests__/fixtures/checkly-project/checkly.config.ts b/packages/create-cli/src/utils/__tests__/fixtures/checkly-project/checkly.config.ts index b1f7b7f47..ef54bb2c8 100644 --- a/packages/create-cli/src/utils/__tests__/fixtures/checkly-project/checkly.config.ts +++ b/packages/create-cli/src/utils/__tests__/fixtures/checkly-project/checkly.config.ts @@ -6,7 +6,7 @@ const config = defineConfig({ repoUrl: 'https://github.com/checkly/checkly-cli', checks: { frequency: 10, - locations: ['us-east-1', 'eu-west-1'], + locations: ['us-east-1', 'eu-central-1'], tags: ['mac'], runtimeId: '2023.02', checkMatch: '**/__checks__/**/*.check.ts', @@ -15,7 +15,7 @@ const config = defineConfig({ }, }, cli: { - runLocation: 'eu-west-1', + runLocation: 'eu-central-1', reporters: ['list'], }, }) From f0adacea9c8151e5e8a3ca6db11a987352958dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Susa=20T=C3=BCnker?= <74345218+sujaya-sys@users.noreply.github.com> Date: Mon, 1 Dec 2025 15:33:45 +0100 Subject: [PATCH 2/4] Update examples/advanced-project/checkly.config.ts Co-authored-by: Martin M --- examples/advanced-project/checkly.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/advanced-project/checkly.config.ts b/examples/advanced-project/checkly.config.ts index 5ddde2f00..2c8dd93f4 100644 --- a/examples/advanced-project/checkly.config.ts +++ b/examples/advanced-project/checkly.config.ts @@ -26,7 +26,8 @@ const config = defineConfig({ */ runtimeId: '2025.04', /* Failed check runs will be retried before triggering alerts - not available on all plan types */ - // retryStrategy: RetryStrategyBuilder.fixedStrategy({ baseBackoffSeconds: 60, maxRetries: 4, sameRegion: true }), + /* Failed check runs will not be retried per default. See `browserChecks` below for a retry example. */ + retryStrategy: RetryStrategyBuilder.noRetries(),, /* All checks will have this alert escalation policy defined */ alertEscalationPolicy: AlertEscalationBuilder.runBasedEscalation(1), /* A glob pattern that matches the Checks inside your repo, see https://www.checklyhq.com/docs/constructs/including-checks/#checks-checkmatch */ From 6da1437acc41b736ec31778745f1f712f4166f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Susa=20T=C3=BCnker?= <74345218+sujaya-sys@users.noreply.github.com> Date: Mon, 1 Dec 2025 15:34:45 +0100 Subject: [PATCH 3/4] Update examples/advanced-project/checkly.config.ts Co-authored-by: Martin M --- examples/advanced-project/checkly.config.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/advanced-project/checkly.config.ts b/examples/advanced-project/checkly.config.ts index 2c8dd93f4..e04a758fe 100644 --- a/examples/advanced-project/checkly.config.ts +++ b/examples/advanced-project/checkly.config.ts @@ -25,7 +25,6 @@ const config = defineConfig({ * See https://www.checklyhq.com/docs/cli/npm-packages/ */ runtimeId: '2025.04', - /* Failed check runs will be retried before triggering alerts - not available on all plan types */ /* Failed check runs will not be retried per default. See `browserChecks` below for a retry example. */ retryStrategy: RetryStrategyBuilder.noRetries(),, /* All checks will have this alert escalation policy defined */ From d9ca676eb72371a9081493a4fe2040a7f73f1334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Susa=20T=C3=BCnker?= <74345218+sujaya-sys@users.noreply.github.com> Date: Mon, 1 Dec 2025 16:02:25 +0100 Subject: [PATCH 4/4] Update checkly.config.ts --- examples/advanced-project/checkly.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/advanced-project/checkly.config.ts b/examples/advanced-project/checkly.config.ts index e04a758fe..7850b88e9 100644 --- a/examples/advanced-project/checkly.config.ts +++ b/examples/advanced-project/checkly.config.ts @@ -44,6 +44,8 @@ const config = defineConfig({ * can just write Playwright code. See https://www.checklyhq.com/docs/constructs/including-checks/#browserchecks-testmatch * */ testMatch: '**/__checks__/**/*.spec.ts', + /* Failed check runs will be retried before triggering alerts */ + retryStrategy: RetryStrategyBuilder.fixedStrategy({ baseBackoffSeconds: 60, maxRetries: 4, sameRegion: true }), }, // Playwright Check Suites definition, run the whole Playwright Test Suite in a Check playwrightConfigPath: './playwright.config.ts',