Skip to content

Commit

Permalink
Generate projects for CLI push speed tests (#23142)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 38da2dddc9ab65c2819cb03f908dfec3ed4c9ea5
  • Loading branch information
thomasballinger authored and Convex, Inc. committed Mar 13, 2024
1 parent 9c34e71 commit 4068417
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/cli/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ export async function pullConfig(
adminKey: string,
): Promise<Config> {
const fetch = deploymentFetch(origin);

changeSpinner(ctx, "Downloading current deployment state...");
try {
const res = await fetch("/api/get_config", {
method: "POST",
Expand Down
3 changes: 2 additions & 1 deletion src/cli/lib/push.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 4068417

Please sign in to comment.