Repository navigation
chore: upgrade nx 21.6.11 → 23.1.1, fix CI nx version - #59
Conversation
CI was pinning bunx nx@21.0.0 — an older version than the devDependency. Now uses nx from bun install (no bunx, no version pin). nx 23 has no required migrations for this repo. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
Warning Review limit reached
Next review available in: 46 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Comment |
MergerWaiting for CI and review to complete. Commit |
|
Running ultrareview automatically — Major Nx upgrade (21→23) and CI now uses local nx could affect all projects' builds/tests/lints — high risk of subtle breakage.. I'll post findings when complete. |
There was a problem hiding this comment.
The nx upgrade from 21.6.11 to 23.1.1 and CI configuration changes are implemented correctly. The removal of hardcoded bunx nx@21.0.0 version pinning in CI aligns with the PR goal of using the exact nx version from bun.lock. All changed files are consistent with the upgrade, and no blocking defects were identified.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
|
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Security | 1 high |
🟢 Metrics 0 complexity · 0 duplication
Metric Results Complexity 0 Duplication 0
AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.
TIP This summary will be updated as you push new changes.
PR Summary by QodoUpgrade Nx to 23.1.1 and use locally installed Nx in CI
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
There was a problem hiding this comment.
Pull Request Overview
This Pull Request is currently not up to standards. The modifications to the CI workflow will likely cause the build to fail because the 'nx' command is not available in the runner's PATH by default. Additionally, the update to 'package.json' introduces a non-pinned dependency version, which contradicts project policy and has been flagged as a quality issue. These items must be resolved to ensure CI stability and build reproducibility.
About this PR
- The move away from pinned global binaries in CI is positive for consistency, but the current implementation relies on the 'nx' binary being in the system PATH. This requires an executor like 'bunx' or 'bun run' to correctly resolve the binary from node_modules.
Test suggestions
- CI build step executes using the workspace Nx version
- CI lint and test steps execute using the workspace Nx version
- CI fix-ci step executes using the workspace Nx version
- Nx dependency is correctly updated in package.json
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
| "@types/node": "24.13.3", | ||
| "eslint": "9.39.5", | ||
| "nx": "21.6.11", | ||
| "nx": "^23.1.1", |
There was a problem hiding this comment.
🔴 HIGH RISK
Specify an exact version for 'nx' to maintain consistency with the existing dependency management strategy in this project and ensure build reproducibility across all environments.
| "nx": "^23.1.1", | |
| "nx": "23.1.1", |
| - run: nx affected -t build | ||
| - run: nx affected -t lint test | ||
| - run: nx fix-ci |
There was a problem hiding this comment.
🔴 HIGH RISK
The nx command will not be found in the runner's PATH. Use bunx nx to execute the local version.
Try running the following prompt in your coding agent:
Prepend
bunxto allnxcommands in.github/workflows/ci.yml(lines 32-34) to ensure they use the local version installed in node_modules.
Code Review by Qodo
1. CI can't find nx
|
| - run: nx affected -t build | ||
| - run: nx affected -t lint test | ||
| - run: nx fix-ci |
There was a problem hiding this comment.
1. Ci can't find nx 🐞 Bug ☼ Reliability
The CI workflow now runs nx ... directly, but the job does not add node_modules/.bin to PATH or use bunx/bun run, so the steps can fail with nx: command not found even after bun install. This prevents build/lint/test from running in CI.
Agent Prompt
## Issue description
CI invokes `nx` directly in `.github/workflows/ci.yml`, but the workflow does not ensure local binaries from `node_modules/.bin` are on `PATH`. This can cause `nx: command not found` and fail the job.
## Issue Context
The workflow installs dependencies with `bun install --frozen-lockfile`, but subsequent `run:` steps execute in a plain shell context.
## Fix
Update the workflow to execute Nx through Bun so it reliably resolves the local devDependency binary:
- Replace `nx ...` with `bunx nx ...` (preferred, keeps “use local nx” intent), or
- Replace with `bun run <script>` equivalents, or
- Export `PATH=$GITHUB_WORKSPACE/node_modules/.bin:$PATH` before calling `nx`.
## Fix Focus Areas
- .github/workflows/ci.yml[26-35]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Summary
bunx nx@21.0.0pinning — usenxfrombun installnx migrate latestreports none)Why
CI was downloading nx 21.0.0 on every run instead of using the pinned devDependency (21.6.11). After this PR, CI uses the exact nx version from
bun.lock. Stack branches will pick up nx 23 automatically when they rebase onto main.Test plan
nx affected -t buildpasses (16 projects)nx affected -t testpassesnx affected -t lintpasses (16 projects)Generated with Devin
Summary by cubic
Upgrades
nxfrom 21.6.11 to 23.1.1 and makes CI use the installednxinstead of pinningbunx nx@21.0.0, ensuring consistent versions across local and CI.package.jsontonx^23.1.1and refreshbun.lock.bunx nx@21.0.0withnxin CI (affected -t build,affected -t lint test,fix-ci) so jobs use the version frombun install.nx migratechanges were generated; no repo migrations are required.bun installto pick upnx23.1.1 before runningnxtasks.Written for commit e8b2cdb. Summary will update on new commits.