-
Notifications
You must be signed in to change notification settings - Fork 10
[CORRUPTED] Synthetic Benchmark PR #26604 - chore: rename app.ts to bootstrap.ts on api-v2 #726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: base_pr_26604_20260121_5958
Are you sure you want to change the base?
[CORRUPTED] Synthetic Benchmark PR #26604 - chore: rename app.ts to bootstrap.ts on api-v2 #726
Conversation
|
Hey there and thank you for opening this pull request! 👋🏼 We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted. Details: |
Code Review by Qodo
1. Missing bootstrap module
|
|
Persistent review updated to latest commit 98407f4 |
| import { AppModule } from "./app.module"; | ||
| import { bootstrap } from "./app.service"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Missing bootstrap module 🐞 Bug ✓ Correctness
• The PR switches many files (including main entrypoint and e2e tests) to import bootstrap from @/app.service/./app.service, but there is no corresponding module under src/ per the repo’s TS path mapping, so TypeScript compilation/runtime module resolution will fail. • This will prevent the API from starting (main.ts) and will break swagger generation and all e2e specs that now import the missing path.
Agent prompt
## Issue description
The PR updates many imports to `@/app.service` / `./app.service` for the `bootstrap` function, but there is no corresponding module under `apps/api/v2/src`, which will break TypeScript module resolution and prevent the API and tests from running.
## Issue Context
`apps/api/v2/tsconfig.json` maps `@/*` to `./src/*`, so `@/app.service` must exist under `apps/api/v2/src/` (e.g., `app.service.ts`). `main.ts` and the swagger generation script both depend on it.
## Fix Focus Areas
- apps/api/v2/src/main.ts[13-18]
- apps/api/v2/src/swagger/generate-swagger-script.ts[1-6]
- apps/api/v2/tsconfig.json[12-18]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| import "dotenv/config"; | ||
|
|
||
| import { IncomingMessage, Server, ServerResponse } from "node:http"; | ||
| import process from "node:process"; | ||
| import { Logger } from "@nestjs/common"; | ||
| import { ConfigService } from "@nestjs/config"; | ||
| import { NestFactory } from "@nestjs/core"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Duplicate dotenv import 🐞 Bug ⛯ Reliability
• apps/api/v2/src/main.ts now imports "dotenv/config" twice, which can violate lint rules (e.g., ESLint no-duplicate-imports) and fail CI in repos that enforce it, even though runtime behavior is largely unchanged. • It also adds unnecessary work at startup and makes the entrypoint harder to read.
Agent prompt
## Issue description
`apps/api/v2/src/main.ts` imports `dotenv/config` twice, which can break linting and is unnecessary.
## Issue Context
This is a side-effect import and should appear only once in the entrypoint.
## Fix Focus Areas
- apps/api/v2/src/main.ts[1-11]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Benchmark PR calcom#26604
Type: Corrupted (contains bugs)
Original PR Title: chore: rename app.ts to bootstrap.ts on api-v2
Original PR Description: ## What does this PR do?
Rename app.ts to bootstrap.ts in order to avoid confusion which file is the entrypoint of the nest.js app (main.ts)
Mandatory Tasks (DO NOT REMOVE)
Original PR URL: calcom#26604