Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into chrislample/sc-20570/…
Browse files Browse the repository at this point in the history
…support-test-retries
  • Loading branch information
clample committed Jul 19, 2024
2 parents ba25f49 + 440b851 commit a6e94a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-new */
import { CheckGroup, BrowserCheck } from 'checkly/constructs'

const group = new CheckGroup('check-group-1', {
Expand Down
10 changes: 8 additions & 2 deletions packages/cli/src/commands/trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ import { loadChecklyConfig } from '../services/checkly-config-loader'
import { splitConfigFilePath, getEnvs, getGitInformation, getCiInformation } from '../services/util'
import type { Region } from '..'
import TriggerRunner, { NoMatchingChecksError } from '../services/trigger-runner'
import { RunLocation, Events, PrivateRunLocation, SequenceId } from '../services/abstract-check-runner'
import {
RunLocation,
Events,
PrivateRunLocation,
SequenceId,
DEFAULT_CHECK_RUN_TIMEOUT_SECONDS,
} from '../services/abstract-check-runner'
import config from '../services/config'
import { createReporters, ReporterType } from '../reporters/reporter'
import { printLn } from '../reporters/util'
Expand Down Expand Up @@ -44,7 +50,7 @@ export default class Trigger extends AuthCommand {
description: 'The Checkly CLI config filename.',
}),
timeout: Flags.integer({
default: 240,
default: DEFAULT_CHECK_RUN_TIMEOUT_SECONDS,
description: 'A timeout (in seconds) to wait for checks to complete.',
}),
verbose: Flags.boolean({
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/services/abstract-check-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type RunLocation = PublicRunLocation | PrivateRunLocation
export type CheckRunId = string
export type SequenceId = string

export const DEFAULT_CHECK_RUN_TIMEOUT_SECONDS = 300
export const DEFAULT_CHECK_RUN_TIMEOUT_SECONDS = 600

const DEFAULT_SCHEDULING_DELAY_EXCEEDED_MS = 20000

Expand Down

0 comments on commit a6e94a9

Please sign in to comment.