Skip to content

chore: ci tweaks - #6903

Merged
KATT merged 4 commits into
mainfrom
snull
Aug 20, 2025
Merged

KATT merged 4 commits into
mainfrom
snull

Conversation

@KATT

@KATT KATT commented Aug 20, 2025 •

Copy link
Copy Markdown
Member

parallise typecheck and build

Summary by CodeRabbit

  • Chores
    • CI updated so type checking runs independently and in parallel with builds on pull requests, speeding up feedback.
    • Task pipeline adjusted to remove build as a prerequisite for type checking, enabling earlier execution.
    • Build configuration now enforces strict null checks, improving reliability by catching issues earlier.
    • Monorepo task filters updated to use path-based targeting for build/dev scripts; no user-facing behavior changes.

@railway-app

railway-app Bot commented Aug 20, 2025 •

Copy link
Copy Markdown

πŸš… Deployed to the trpc-pr-6903 environment in trpc-sse-and-websockets

Service Status Web Updated (UTC)
next-prisma-websockets-starter ◻️ Removed (View Logs) Aug 20, 2025 at 7:17 pm

@coderabbitai

coderabbitai Bot commented Aug 20, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Removed typecheck’s dependency on build in both CI and Turbo tasks, adjusted Turbo script filters from scope-based to path-based in package.json, and enabled strictNullChecks in tsconfig.build.json. No public APIs changed.

Changes

Cohort / File(s) Summary
CI workflow concurrency
.github/workflows/main.yml
Removed needs: [build] from the typecheck job so it runs independently/concurrently with build on pull_request events.
Build orchestration and scripts
package.json, turbo.json
package.json: switched Turbo filters from scopes (@trpc/, @monotest/) to path-based ./packages/* for build/dev; moved typecheck filter to top-level --filter=...; monotest-build quoting adjusted. turbo.json: removed ^build from typecheck’s dependsOn, leaving only ["codegen-tests"].
TypeScript build config
tsconfig.build.json
Added "strictNullChecks": true under compilerOptions for builds.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Dev as Developer
  participant GitHub as GitHub Actions
  participant Build as Job: build
  participant Typecheck as Job: typecheck

  Dev->>GitHub: Open/Update Pull Request
  GitHub->>Build: Start build
  GitHub->>Typecheck: Start typecheck (no needs: build)
  par Parallel CI
    Build-->>GitHub: Build result
    Typecheck-->>GitHub: Typecheck result
  end
Loading
sequenceDiagram
  autonumber
  participant Turbo as turbo pipeline
  participant Codegen as codegen-tests
  participant Typecheck as typecheck
  participant Build as build (deps)

  Note over Turbo: Previous flow
  Turbo->>Codegen: Run
  Turbo->>Build: Run deps (^build)
  Build-->>Turbo: Done
  Codegen-->>Turbo: Done
  Turbo->>Typecheck: Run after Codegen + Build

  Note over Turbo: New flow
  Turbo->>Codegen: Run
  Codegen-->>Turbo: Done
  Turbo->>Typecheck: Run (no ^build dependency)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I thump my paws at parallel delight,
Typechecks hop free, no build in sight.
Paths over scopes, the scripts realign,
Nulls grow strictβ€”no fuzzy line.
In burrows of CI, swift and keen,
We ship our greens, serene πŸ₯•πŸ‡.

Tip

πŸ”Œ Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
πŸ§ͺ Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snull

πŸͺ§ Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@vercel

vercel Bot commented Aug 20, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
next-prisma-starter Ready Ready Preview Aug 20, 2025 7:15pm
og-image Ready Ready Preview Comment Aug 20, 2025 7:15pm
www Ready Ready Preview Comment Aug 20, 2025 7:15pm

@pkg-pr-new

pkg-pr-new Bot commented Aug 20, 2025

Copy link
Copy Markdown

Open in StackBlitz

@trpc/client

npm i https://pkg.pr.new/trpc/trpc/@trpc/client@6903

@trpc/next

npm i https://pkg.pr.new/trpc/trpc/@trpc/next@6903

@trpc/react-query

npm i https://pkg.pr.new/trpc/trpc/@trpc/react-query@6903

@trpc/server

npm i https://pkg.pr.new/trpc/trpc/@trpc/server@6903

@trpc/tanstack-react-query

npm i https://pkg.pr.new/trpc/trpc/@trpc/tanstack-react-query@6903

@trpc/upgrade

npm i https://pkg.pr.new/trpc/trpc/@trpc/upgrade@6903

commit: 230d013

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (4)
tsconfig.build.json (1)

10-10: strictNullChecks is redundant when strict is enabled (harmless duplication).

TypeScript’s strict: true already turns on strictNullChecks. Keeping both is fine for explicitness, but you can drop the extra flag to avoid drift.

-    "strictNullChecks": true,
package.json (3)

13-13: Quote filter patterns to avoid shell globbing/brace expansion issues across shells.

Unquoted globs can expand differently in bash/zsh, potentially breaking argument parsing. Quote the filter or use the path: prefix.

-    "build": "turbo --filter={./packages/*} build",
+    "build": "turbo --filter='./packages/*' build",
+    // alternatively:
+    // "build": "turbo --filter='path:./packages/*' build",

16-16: Apply the same quoting fix to dev.

-    "dev": "turbo --filter={./packages/*} dev",
+    "dev": "turbo --filter='./packages/*' dev",
+    // alternatively:
+    // "dev": "turbo --filter='path:./packages/*' dev",

20-20: Apply the same quoting fix to typecheck.

-    "typecheck": "turbo --filter={./packages/*} typecheck",
+    "typecheck": "turbo --filter='./packages/*' typecheck",
+    // alternatively:
+    // "typecheck": "turbo --filter='path:./packages/*' typecheck",
πŸ“œ Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

πŸ’‘ Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 6e4c376 and 230d013.

πŸ“’ Files selected for processing (4)
  • .github/workflows/main.yml (0 hunks)
  • package.json (1 hunks)
  • tsconfig.build.json (1 hunks)
  • turbo.json (1 hunks)
πŸ’€ Files with no reviewable changes (1)
  • .github/workflows/main.yml
🧰 Additional context used
🧠 Learnings (1)
πŸ“š Learning: 2025-06-09T14:01:20.033Z
Learnt from: juliusmarminge
PR: trpc/trpc#6789
File: packages/tanstack-react-query/tsdown.config.ts:1-24
Timestamp: 2025-06-09T14:01:20.033Z
Learning: In the tRPC monorepo, packages/tests and packages/upgrade don't need main/module/types fields in their package.json because tests is not distributed and upgrade just exposes a binary.

Applied to files:

  • package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
  • GitHub Check: E2E-tests (nuxt)
  • GitHub Check: E2E-tests (vercel-edge-runtime)
  • GitHub Check: E2E-tests (standalone-server)
  • GitHub Check: E2E-tests (soa)
  • GitHub Check: E2E-tests (next-prisma-todomvc)
  • GitHub Check: E2E-tests (next-minimal-starter)
  • GitHub Check: E2E-tests (express-server)
  • GitHub Check: E2E-tests (.experimental/next-app-dir)
  • GitHub Check: E2E-tests (cloudflare-workers)
  • GitHub Check: E2E-tests (fastify-server)
  • GitHub Check: E2E-tests (.test/internal-types-export)
  • GitHub Check: e2e-legacy-node (next-prisma-todomvc, 20.x)
  • GitHub Check: Release using pkg.pr.new
  • GitHub Check: e2e-legacy-node (next-prisma-websockets-starter, 18.x)
  • GitHub Check: e2e-legacy-node (next-prisma-websockets-starter, 20.x)
  • GitHub Check: e2e-legacy-node (next-prisma-starter, 18.x)
  • GitHub Check: e2e-legacy-node (next-prisma-todomvc, 18.x)
  • GitHub Check: e2e-legacy-node (next-prisma-starter, 20.x)
  • GitHub Check: E2E-tests (Deno) (deno-deploy)
  • GitHub Check: test
πŸ”‡ Additional comments (2)
turbo.json (1)

55-57: Decoupling typecheck from build: looks good; confirm no upstream codegen artifacts are needed.

Removing ^build should speed up CI via parallelism. Just ensure no packages rely on generated artifacts from dependency packages during typecheck; if they do, consider dependsOn: ["codegen-tests", "^codegen-tests"].

package.json (1)

14-14: LGTM on quoting for monotest filter.

Consistent quoting prevents shell expansion issues.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been locked because we are very unlikely to see comments on closed issues. If you think, this PR is still necessary, create a new one with the same branch. Thank you.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 22, 2025

This branch had an error being deployed

1 failed and 4 active deployments
Preview – www β€” 230d013e Deployed Aug 20, 2025 by vercel[bot]
Preview – next-prisma-starter β€” 230d013e Deployed Aug 20, 2025 by vercel[bot]
Preview – trpc-next-app-dir β€” 230d013e Deployed Aug 20, 2025 by vercel[bot]
Preview – og-image β€” 230d013e Deployed Aug 20, 2025 by vercel[bot]
Preview – examples-todomvc β€” 230d013e Deployed Aug 20, 2025 by vercel[bot]
trpc-pr-6903 β€” 230d013e Deployed Aug 20, 2025 by railway-app[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants