Skip to content

ci: speed up circular dependency checks#8017

Merged
mimecuvalo merged 1 commit intomainfrom
mime/circ-slow
Feb 18, 2026
Merged

ci: speed up circular dependency checks#8017
mimecuvalo merged 1 commit intomainfrom
mime/circ-slow

Conversation

@mimecuvalo
Copy link
Copy Markdown
Member

@mimecuvalo mimecuvalo commented Feb 18, 2026

i originally removed these but they're necessary to keep things speedy

Summary

  • document why tldraw checks use dynamic batched include sets with vite-plugin-circular-dependency
  • reduce tldraw scan runtime by combining safe scopes while keeping ui/components and ui/context separate to avoid plugin Invalid array length crashes
  • run scoped checks with bounded concurrency to improve local and CI performance without reducing coverage

Follow-up to #8003.
Related to #7935 and #2458.

Change type

  • other

Test plan

  • Run yarn check-circular-deps
  • Run time yarn check-circular-deps and verify improved runtime

Made with Cursor


Note

Low Risk
Build-time CI script changes only; main risk is false negatives/positives if the new include batching misses files or alters scan boundaries.

Overview
Speeds up yarn check-circular-deps by changing tldraw’s include patterns from per-scope scans to filesystem-discovered batches, scanning all non-UI scopes together while keeping ui/components and ui/context isolated to avoid vite-plugin-circular-dependency “Invalid array length” crashes.

Also runs each include-set check via a small worker queue with bounded concurrency (up to 2 for tldraw) instead of strictly serial execution, improving CI/local runtime without reducing coverage.

Written by Cursor Bugbot for commit f2393ce. This will update automatically on new commits. Configure here.

Document and implement a dynamic batching strategy for tldraw circular dependency scans to avoid plugin crashes while reducing runtime significantly.

Co-authored-by: Cursor <[email protected]>
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 18, 2026

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

Project Deployment Actions Updated (UTC)
examples Ready Ready Preview Feb 18, 2026 6:07pm
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
analytics Ignored Ignored Preview Feb 18, 2026 6:07pm
tldraw-docs Ignored Ignored Preview Feb 18, 2026 6:07pm
chat-template Skipped Skipped Feb 18, 2026 6:07pm
tldraw-shader Skipped Skipped Feb 18, 2026 6:07pm
workflow-template Skipped Skipped Feb 18, 2026 6:07pm

Request Review

@vercel vercel bot temporarily deployed to Preview – tldraw-shader February 18, 2026 18:04 Inactive
@vercel vercel bot temporarily deployed to Preview – workflow-template February 18, 2026 18:04 Inactive
@vercel vercel bot temporarily deployed to Preview – chat-template February 18, 2026 18:04 Inactive
@huppy-bot huppy-bot bot added the other ⚙️ Changes that don't affect SDK users, e.g. internal or .com changes label Feb 18, 2026
@mimecuvalo mimecuvalo enabled auto-merge February 18, 2026 18:05
@mimecuvalo mimecuvalo added this pull request to the merge queue Feb 18, 2026
Merged via the queue into main with commit 9fcba6f Feb 18, 2026
23 checks passed
@mimecuvalo mimecuvalo deleted the mime/circ-slow branch February 18, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

other ⚙️ Changes that don't affect SDK users, e.g. internal or .com changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant