Skip to content

Conversation

MartianGreed
Copy link
Collaborator

@MartianGreed MartianGreed commented Aug 6, 2025

Closes #

Introduced changes

Checklist

  • Linked relevant issue
  • Updated relevant documentation
  • Added relevant tests
  • Add a dedicated CI job for new examples
  • Performed self-review of the code

Summary by CodeRabbit

  • Bug Fixes

    • Resolved build issues across multiple packages to improve reliability.
  • Chores

    • Updated build scripts and task dependencies for better build process management.
    • Added a new runtime dependency to enhance package capabilities.

Copy link

coderabbitai bot commented Aug 6, 2025

Walkthrough

This change updates build configurations across multiple Dojo Engine packages to address and fix build issues. Adjustments include removing some build scripts in package.json and revising task dependencies in turbo.json to improve build ordering. No new features or API changes are introduced; the changes focus solely on build process corrections.

Changes

Cohort / File(s) Change Summary
Build Script Cleanup
packages/internal/package.json
Removed build:deps and build scripts, retaining only build:internal for building.
Build Task Dependency Updates
turbo.json
Updated schema reference; added new "build:internal" task; modified dependencies of "build:wasm", "build:deps", "build", and "dev" tasks to improve build order and caching behavior.
Runtime Dependency Addition
package.json
Added new runtime dependency @dojoengine/recs version 2.0.13.
Patch Updates for Multiple Packages
.changeset/dry-readers-rhyme.md
Documents patch-level updates to various Dojo Engine packages, focusing on fixing build issues.

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant BuildSystem
    participant InternalPkg
    participant WasmPkg

    Developer->>BuildSystem: Initiate build
    BuildSystem->>InternalPkg: Run build:internal
    BuildSystem->>WasmPkg: Run build:wasm (after build:internal)
    Note right of BuildSystem: Dependencies updated to ensure correct order
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Possibly related PRs

  • fix: wasm build issues #256: Addresses build issues related to multiple Dojo Engine packages, including wasm-related fixes, complementing this PR’s broader patch-level build fixes and configuration updates.

Poem

A bunny hopped through build and script,
Tidying tasks where errors slipped.
With dependencies now in line,
The Dojo Engine builds just fine!
No features new, just fixes made—
A smoother hop through every cascade.
🐇✨


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 343c8c7 and 7ba50f5.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • package.json (1 hunks)
  • turbo.json (2 hunks)
✅ Files skipped from review due to trivial changes (1)
  • package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • turbo.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). (2)
  • GitHub Check: build
  • GitHub Check: check
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/build

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 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.
    • Explain this complex logic.
    • 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. Examples:
    • @coderabbitai explain this code block.
  • 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 src/utils.ts and explain its main purpose.
    • @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 comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

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

Documentation and Community

  • 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.

Copy link

@coderabbitai coderabbitai bot left a comment

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 (2)
package.json (1)

5-9: Consider documenting the new script

build:internal alters the public build surface; update the README / contributor docs to explain when to use it versus the existing build / build:deps / build:wasm targets to avoid confusion.

.changeset/dry-readers-rhyme.md (1)

1-18: Changeset message is too vague for future consumers

fix: build issues gives little context once this lands in the changelog. A one-liner describing what kind of build breakage was addressed (e.g. “align package entry points with tsup output” or similar) will be more useful to downstream users.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 04fe923 and 7ef5bb6.

📒 Files selected for processing (2)
  • .changeset/dry-readers-rhyme.md (1 hunks)
  • package.json (1 hunks)
⏰ 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). (2)
  • GitHub Check: check
  • GitHub Check: build
🔇 Additional comments (1)
package.json (1)

6-6: Confirmed: build:internal task exists in Turborepo pipeline

  • Located in turbo.json at line 15
    No further action required.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (3)
turbo.json (3)

7-10: Re-evaluate cache:false + interruptible:true on the dev task
Disabling the Turborepo cache means every dev restart will rebuild all upstream build:deps tasks even when nothing changed, noticeably slowing the feedback loop. Unless you hit correctness issues with stale artifacts, consider keeping the cache on and relying solely on interruptible:true to kill in-flight builds when files change.


21-22: Redundant self-like dependency in build:deps
"dependsOn": ["^build:deps", "^build:internal"] already ensures upstream packages build their deps. Keeping ^build:deps here is fine but can trigger duplicate runs when the graph is large. A leaner alternative:

-            "dependsOn": ["^build:deps", "^build:internal"],
+            "dependsOn": ["^build:internal"],

47-48: Minor: test:watch sets persistent:true explicitly
test:watch inherits persistent:true from the task name convention, so the explicit key is harmless but unnecessary noise.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 0cc3ad7 and 343c8c7.

📒 Files selected for processing (1)
  • turbo.json (2 hunks)
⏰ 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). (2)
  • GitHub Check: build
  • GitHub Check: check
🔇 Additional comments (2)
turbo.json (2)

11-13: Verify that adding ^build:wasm to build:internal does not create hidden cycles
build:internal → ^build:wasm while each package’s build:wasm in turn depends on ^build:wasm can form long dependency chains. Ensure no package contains both scripts, otherwise Turbo may traverse the graph twice or report a loop.


25-25: build task now ignores ^build:deps and ^build:wasm – intentional?
If downstream packages rely on those artifacts at publish time, the root turbo run build will no longer guarantee they exist. Double-check publishing CI still succeeds after this simplification.

@@ -1,27 +1,28 @@
{
"$schema": "./node_modules/turbo/schema.json",
"$schema": "https://turborepo.com/schema.v2.json",
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Incorrect $schema URL – IDE/tooling autocompletion will break
turbo.build is the canonical domain for Turbo schemas. The .com URL currently referenced does not resolve and will disable JSON-Schema validation in many editors.

-    "$schema": "https://turborepo.com/schema.v2.json",
+    "$schema": "https://turbo.build/schema.json",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"$schema": "https://turborepo.com/schema.v2.json",
"$schema": "https://turbo.build/schema.json",
🤖 Prompt for AI Agents
In turbo.json at line 2, the $schema URL is incorrect and points to a
non-resolving .com domain, which breaks IDE autocompletion and JSON schema
validation. Update the $schema value to use the correct canonical domain
"https://turbo.build/schema.v2.json" to restore proper tooling support.

@MartianGreed MartianGreed merged commit 3a4f6c6 into main Aug 7, 2025
6 checks passed
@MartianGreed MartianGreed deleted the fix/build branch August 7, 2025 09:49
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.

1 participant