Skip to content

issue with local setup when running yarn dx #23252

@Vansh5632

Description

@Vansh5632

Bug Report: Prisma migrate command fails in non-interactive environments when running yarn dx

Issue Summary

The yarn dx command fails when executed in non-interactive environments (such as CI/CD, Docker containers, or automated scripts) due to Prisma migrate attempting to run prisma migrate dev which requires interactive input for migration name confirmation.

Steps to Reproduce

  1. Run yarn dx in a non-interactive environment (CI/CD, Docker, automated script)
  2. The command attempts to execute Prisma database migration
  3. Prisma migrate dev command fails with "command finished with error: command exited (1)"

Actual Results

  • The @calcom/prisma#db-migrate task fails during yarn dx execution
  • Error message: ERROR: command finished with error: command (/home/user/cal.com/packages/prisma) yarn run db-migrate exited (1)
  • The entire yarn dx workflow stops and fails
  • Development environment setup is blocked

Expected Results

  • yarn dx should successfully complete database setup in non-interactive environments
  • Database migrations should run without requiring user input
  • Development environment should be ready for use after running yarn dx

Technical Details

Root Cause Analysis:

  • The issue occurs in turbo.json pipeline configuration
  • @calcom/prisma#db-seed depends on @calcom/prisma#db-migrate
  • db-migrate runs prisma migrate dev which requires interactive input
  • In non-interactive environments, this command fails

Current Turbo Configuration:

"@calcom/prisma#db-seed": {
  "cache": false,
  "dependsOn": ["@calcom/prisma#db-migrate"]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions