release insiders with rollout of 4 hours (#279331)

This commit is contained in:
João Moreno
2025-11-25 11:36:11 +01:00
committed by GitHub
parent f96456228a
commit 4643503cd9

View File

@@ -59,8 +59,15 @@ async function main(force: boolean): Promise<void> {
console.log(`Releasing build ${commit}...`);
let rolloutDurationMs = undefined;
// If the build is insiders or exploration, start a rollout of 4 hours
if (quality === 'insiders') {
rolloutDurationMs = 4 * 60 * 60 * 1000; // 4 hours
}
const scripts = client.database('builds').container(quality).scripts;
await retry(() => scripts.storedProcedure('releaseBuild').execute('', [commit]));
await retry(() => scripts.storedProcedure('releaseBuild').execute('', [commit, rolloutDurationMs]));
}
const [, , force] = process.argv;