@@ -9,7 +9,7 @@ import { getAllMinorDcs, getAllPrivateDcs } from '../lib/datacenter.ts'
99 * node deploy-prod-dc.ts vXXX us1,eu1,... true|false
1010 */
1111const ONE_MINUTE_IN_SECOND = 60
12- const GATE_DURATION = 30 * ONE_MINUTE_IN_SECOND
12+ const GATE_DURATION = 1 * ONE_MINUTE_IN_SECOND
1313const GATE_INTERVAL = ONE_MINUTE_IN_SECOND
1414
1515if ( ! process . env . NODE_TEST_CONTEXT ) {
@@ -40,13 +40,19 @@ export async function main(...args: string[]): Promise<void> {
4040 }
4141
4242 if ( checkMonitors ) {
43+ // TODO: do we need to check monitors before, it won't trigger if it's not already deployed as there can't have errors yet
4344 command `node ./scripts/deploy/check-monitors.ts ${ datacenters . join ( ',' ) } ` . withLogs ( ) . run ( )
4445 }
4546
4647 const uploadPathTypes = toDatacenterUploadPathType ( datacenters ) . join ( ',' )
4748
48- command `node ./scripts/deploy/deploy.ts prod ${ version } ${ uploadPathTypes } ` . withLogs ( ) . run ( )
49- command `node ./scripts/deploy/upload-source-maps.ts ${ version } ${ uploadPathTypes } ` . withLogs ( ) . run ( )
49+ console . log ( '[DRY_RUN] node ./scripts/deploy/deploy.ts prod' , version , uploadPathTypes )
50+ console . log ( '[DRY_RUN] node ./scripts/deploy/upload-source-maps.ts' , version , uploadPathTypes )
51+ command `curl -X GET https://runtime-metadata-service.us1.ddbuild.io/v2/datacenters?selector=datacenter.environment=prod&datacenter.flavor=site --silent -H ${ 'accept: application/json' } `
52+ . withLogs ( )
53+ . run ( )
54+ // command`node ./scripts/deploy/deploy.ts prod ${version} ${uploadPathTypes}`.withLogs().run()
55+ // command`node ./scripts/deploy/upload-source-maps.ts ${version} ${uploadPathTypes}`.withLogs().run()
5056
5157 if ( checkMonitors ) {
5258 await gateMonitors ( datacenters )
0 commit comments