From c70d07a0de78cd26993d3f3845effe2e96a7c863 Mon Sep 17 00:00:00 2001 From: Tom Ballinger Date: Mon, 11 Mar 2024 15:06:18 -0700 Subject: [PATCH] Generate projects for CLI push speed tests (#23142) GitOrigin-RevId: 38da2dddc9ab65c2819cb03f908dfec3ed4c9ea5 --- npm-packages/convex/src/cli/lib/config.ts | 2 ++ npm-packages/convex/src/cli/lib/push.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/npm-packages/convex/src/cli/lib/config.ts b/npm-packages/convex/src/cli/lib/config.ts index 635e0354..e27bc6b4 100644 --- a/npm-packages/convex/src/cli/lib/config.ts +++ b/npm-packages/convex/src/cli/lib/config.ts @@ -552,6 +552,8 @@ export async function pullConfig( adminKey: string, ): Promise { const fetch = deploymentFetch(origin); + + changeSpinner(ctx, "Downloading current deployment state..."); try { const res = await fetch("/api/get_config", { method: "POST", diff --git a/npm-packages/convex/src/cli/lib/push.ts b/npm-packages/convex/src/cli/lib/push.ts index b5cb9585..fb338a3a 100644 --- a/npm-packages/convex/src/cli/lib/push.ts +++ b/npm-packages/convex/src/cli/lib/push.ts @@ -1,5 +1,5 @@ import chalk from "chalk"; -import { Context, logMessage } from "../../bundler/context.js"; +import { Context, changeSpinner, logMessage } from "../../bundler/context.js"; import { doCodegen } from "./codegen.js"; import { configFromProjectConfig, @@ -82,6 +82,7 @@ export async function runPush(ctx: Context, options: PushOptions) { options.adminKey, ); + changeSpinner(ctx, "Diffing local code and deployment state"); const diff = diffConfig(remoteConfig, localConfig); if (diff === "" && schemaState?.state === "active") { if (verbose) {