Skip to content

Conversation

@sshader
Copy link
Contributor

@sshader sshader commented Apr 11, 2025

Curious on approach here of having 3 different calls

@vercel
Copy link

vercel bot commented Apr 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
chef ✅ Ready (Inspect) Visit Preview Apr 11, 2025 1:12am

import { httpAction, internalMutation, mutation } from "./_generated/server";
import { getCurrentMember } from "./sessions";
import { internal } from "./_generated/api";
import { ConvexError, v } from 'convex/values';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(ignore this -- we don't have linters on the convex directory so my editor reformatted)

action.abortSignal.addEventListener('abort', abortListener);

const { output, exitCode } = await streamOutput(convexProc, {
const { output: convexTypecheckOutput, exitCode: convexTypecheckExitCode } = await streamOutput(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tom pointed out we need to do codegen first

@thomasballinger
Copy link
Collaborator

@sujayakar I wasn't sure why you preferred a single command in #227

@sujayakar
Copy link

multiple procs is fine too. i'd be curious about execution time since i've noticed that start a shell can be slow within the container, but if you play with it and deploys don't feel slow then totally fine

@thomasballinger
Copy link
Collaborator

pulling this into #417

@thomasballinger
Copy link
Collaborator

I'm seeing these be generally slow, although the overhead of the webcontainer part is only ~100ms so separating them is ok.

over a few runs on my laptop,

  • codegen + typecheck is 3.0s (codegen includes a typecheck by default)
  • whole-app typecheck is 1.5s
  • lint is 3.9s
  • deploy is 5s (without the typecheck)

Seems like we should avoid multiple typechecks and think carefully about adding steps here.

Adding a lint step is a big deal.


startin up convex has a lot of overhead:
npx convex dev --once - 7.5
npx convex typecheck && time npx convex dev --once --typecheck=disable - 10.5s


image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants