Skip to content

Commit c9ddc61

Browse files
sujaya-sysMegaMaddinsorccu
authored
adjusted default values to be compatible with hobby plan entitlements (#1180)
* adjusted default values to be compatible with hobby plan entitlements * Update examples/advanced-project/checkly.config.ts Co-authored-by: Martin M <[email protected]> * Update examples/advanced-project/checkly.config.ts Co-authored-by: Martin M <[email protected]> * Update checkly.config.ts --------- Co-authored-by: Martin M <[email protected]> Co-authored-by: Simo Kinnunen <[email protected]>
1 parent 60a33cd commit c9ddc61

File tree

9 files changed

+16
-27
lines changed

9 files changed

+16
-27
lines changed

examples/advanced-project-js/src/__checks__/utils/alert-channels.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const { URL } = require('node:url')
22

33
const {
4-
SmsAlertChannel,
54
EmailAlertChannel,
65
SlackAlertChannel,
76
WebhookAlertChannel,
@@ -21,11 +20,6 @@ const sendDefaults = {
2120
sslExpiryThreshold: 30,
2221
};
2322

24-
const smsChannel = new SmsAlertChannel('sms-channel-1', {
25-
phoneNumber: '0031061234567890',
26-
...sendDefaults,
27-
})
28-
2923
const emailChannel = new EmailAlertChannel('email-channel-1', {
3024
address: '[email protected]',
3125
...sendDefaults,
@@ -57,7 +51,6 @@ const webhookChannel = new WebhookAlertChannel('webhook-channel-1', {
5751
})
5852

5953
module.exports = {
60-
smsChannel,
6154
emailChannel,
6255
slackChannel,
6356
webhookChannel,

examples/advanced-project/checkly.config.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ const config = defineConfig({
1818
/* A default for how often your Check should run in minutes */
1919
frequency: 10,
2020
/* Checkly data centers to run your Checks as monitors */
21-
locations: ['us-east-1', 'eu-west-1'],
21+
locations: ['us-east-1', 'eu-central-1'],
2222
/* An optional array of tags to organize your Checks */
2323
tags: ['mac'],
2424
/** The Checkly Runtime identifier, determining npm packages and the Node.js version available at runtime.
2525
* See https://www.checklyhq.com/docs/cli/npm-packages/
2626
*/
2727
runtimeId: '2025.04',
28-
/* Failed check runs will be retried before triggering alerts */
29-
retryStrategy: RetryStrategyBuilder.fixedStrategy({ baseBackoffSeconds: 60, maxRetries: 4, sameRegion: true }),
28+
/* Failed check runs will not be retried per default. See `browserChecks` below for a retry example. */
29+
retryStrategy: RetryStrategyBuilder.noRetries(),,
3030
/* All checks will have this alert escalation policy defined */
3131
alertEscalationPolicy: AlertEscalationBuilder.runBasedEscalation(1),
3232
/* A glob pattern that matches the Checks inside your repo, see https://www.checklyhq.com/docs/constructs/including-checks/#checks-checkmatch */
@@ -44,6 +44,8 @@ const config = defineConfig({
4444
* can just write Playwright code. See https://www.checklyhq.com/docs/constructs/including-checks/#browserchecks-testmatch
4545
* */
4646
testMatch: '**/__checks__/**/*.spec.ts',
47+
/* Failed check runs will be retried before triggering alerts */
48+
retryStrategy: RetryStrategyBuilder.fixedStrategy({ baseBackoffSeconds: 60, maxRetries: 4, sameRegion: true }),
4749
},
4850
// Playwright Check Suites definition, run the whole Playwright Test Suite in a Check
4951
playwrightConfigPath: './playwright.config.ts',
@@ -57,7 +59,7 @@ const config = defineConfig({
5759
},
5860
cli: {
5961
/* The default datacenter location to use when running npx checkly test */
60-
runLocation: 'eu-west-1',
62+
runLocation: 'eu-central-1',
6163
/* An array of default reporters to use when a reporter is not specified with the "--reporter" flag */
6264
reporters: ['list'],
6365
/* How many times to retry a failing test run when running `npx checkly test` or `npx checkly trigger` (max. 3) */

examples/advanced-project/src/__checks__/utils/alert-channels.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { URL } from 'node:url'
22
import {
3-
SmsAlertChannel,
43
EmailAlertChannel,
54
SlackAlertChannel,
65
WebhookAlertChannel
@@ -21,11 +20,6 @@ const sendDefaults = {
2120
sslExpiryThreshold: 30
2221
}
2322

24-
export const smsChannel = new SmsAlertChannel('sms-channel-1', {
25-
phoneNumber: '0031061234567890',
26-
...sendDefaults
27-
})
28-
2923
export const emailChannel = new EmailAlertChannel('email-channel-1', {
3024
address: '[email protected]',
3125
...sendDefaults

examples/boilerplate-project-js/__checks__/api.check.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ new ApiCheck("books-api-check-1", {
1818
AssertionBuilder.jsonBody("$[0].id").isNotNull(),
1919
],
2020
},
21-
runParallel: true,
21+
runParallel: false,
2222
})

examples/boilerplate-project-js/checkly.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const config = defineConfig({
1717
/* A default for how often your Check should run in minutes */
1818
frequency: 10,
1919
/* Checkly data centers to run your Checks as monitors */
20-
locations: ['us-east-1', 'eu-west-1'],
20+
locations: ['us-east-1', 'eu-central-1'],
2121
/* An optional array of tags to organize your Checks */
2222
tags: ['mac'],
2323
/** The Checkly Runtime identifier, determining npm packages and the Node.js version available at runtime.
@@ -52,7 +52,7 @@ const config = defineConfig({
5252
},
5353
cli: {
5454
/* The default datacenter location to use when running npx checkly test */
55-
runLocation: 'eu-west-1',
55+
runLocation: 'eu-central-1',
5656
/* An array of default reporters to use when a reporter is not specified with the "--reporter" flag */
5757
reporters: ['list'],
5858
/* How many times to retry a failing test run when running `npx checkly test` or `npx checkly trigger` (max. 3) */

examples/boilerplate-project/__checks__/api.check.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ new ApiCheck('books-api-check-1', {
1818
AssertionBuilder.jsonBody('$[0].id').isNotNull(),
1919
],
2020
},
21-
runParallel: true,
21+
runParallel: false,
2222
})

examples/boilerplate-project/checkly.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const config = defineConfig({
1717
/* A default for how often your Check should run in minutes */
1818
frequency: 10,
1919
/* Checkly data centers to run your Checks as monitors */
20-
locations: ['us-east-1', 'eu-west-1'],
20+
locations: ['us-east-1', 'eu-central-1'],
2121
/* An optional array of tags to organize your Checks */
2222
tags: ['mac'],
2323
/** The Checkly Runtime identifier, determining npm packages and the Node.js version available at runtime.
@@ -52,7 +52,7 @@ const config = defineConfig({
5252
},
5353
cli: {
5454
/* The default datacenter location to use when running npx checkly test */
55-
runLocation: 'eu-west-1',
55+
runLocation: 'eu-central-1',
5656
/* An array of default reporters to use when a reporter is not specified with the "--reporter" flag */
5757
reporters: ['list'],
5858
/* How many times to retry a failing test run when running `npx checkly test` or `npx checkly trigger` (max. 3) */

packages/create-cli/e2e/__tests__/fixtures/initiated-project/checkly.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const config = defineConfig({
66
repoUrl: 'https://github.com/checkly/checkly-cli',
77
checks: {
88
frequency: 10,
9-
locations: ['us-east-1', 'eu-west-1'],
9+
locations: ['us-east-1', 'eu-central-1'],
1010
tags: ['mac'],
1111
runtimeId: '2023.02',
1212
checkMatch: '**/__checks__/**/*.check.ts',
@@ -15,7 +15,7 @@ const config = defineConfig({
1515
},
1616
},
1717
cli: {
18-
runLocation: 'eu-west-1',
18+
runLocation: 'eu-central-1',
1919
reporters: ['list'],
2020
},
2121
})

packages/create-cli/src/utils/__tests__/fixtures/checkly-project/checkly.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const config = defineConfig({
66
repoUrl: 'https://github.com/checkly/checkly-cli',
77
checks: {
88
frequency: 10,
9-
locations: ['us-east-1', 'eu-west-1'],
9+
locations: ['us-east-1', 'eu-central-1'],
1010
tags: ['mac'],
1111
runtimeId: '2023.02',
1212
checkMatch: '**/__checks__/**/*.check.ts',
@@ -15,7 +15,7 @@ const config = defineConfig({
1515
},
1616
},
1717
cli: {
18-
runLocation: 'eu-west-1',
18+
runLocation: 'eu-central-1',
1919
reporters: ['list'],
2020
},
2121
})

0 commit comments

Comments
 (0)