-
Notifications
You must be signed in to change notification settings - Fork 46
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
Fix/kleros app resolution #1833
Conversation
Warning Rate limit exceeded@jaybuidl has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 40 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (4)
WalkthroughThis pull request involves updates to dependency versions and build configurations across multiple packages in the Kleros project. The changes include updating the Changes
Possibly related PRs
Suggested Labels
Suggested Reviewers
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for kleros-v2-university ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for kleros-v2-testnet ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
❌ Deploy Preview for kleros-v2-testnet-devtools failed. Why did it fail? →
|
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.
Actionable comments posted: 1
🧹 Nitpick comments (1)
web/netlify.toml (1)
9-10
: Consider optimizing the build command for better efficiency.The current sequential installation and build process could be optimized. Consider:
- Using
yarn workspaces focus
for efficient dependency installation- Parallelizing builds where possible if there are no strict dependencies between workspaces
Example optimization:
-command = "yarn workspace @kleros/kleros-v2-contracts install && yarn workspace @kleros/kleros-app install && yarn workspace @kleros/kleros-v2-web install && yarn workspace @kleros/kleros-v2-contracts build && yarn workspace @kleros/kleros-app build && yarn workspace @kleros/kleros-v2-web build-netlify" +command = "yarn workspaces focus --production && yarn workspace @kleros/kleros-v2-contracts build && yarn workspace @kleros/kleros-app build && yarn workspace @kleros/kleros-v2-web build-netlify"
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
yarn.lock
is excluded by!**/yarn.lock
,!**/*.lock
📒 Files selected for processing (4)
kleros-app/package.json
(1 hunks)web-devtools/package.json
(1 hunks)web/netlify.toml
(1 hunks)web/package.json
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (18)
- GitHub Check: Redirect rules - kleros-v2-testnet-devtools
- GitHub Check: Header rules - kleros-v2-testnet-devtools
- GitHub Check: Pages changed - kleros-v2-testnet-devtools
- GitHub Check: Redirect rules - kleros-v2-university
- GitHub Check: Redirect rules - kleros-v2-testnet
- GitHub Check: Redirect rules - kleros-v2-testnet
- GitHub Check: Header rules - kleros-v2-university
- GitHub Check: Header rules - kleros-v2-testnet
- GitHub Check: Header rules - kleros-v2-testnet
- GitHub Check: Pages changed - kleros-v2-university
- GitHub Check: Pages changed - kleros-v2-testnet
- GitHub Check: Pages changed - kleros-v2-testnet
- GitHub Check: Copy labels from linked issues
- GitHub Check: dependency-review
- GitHub Check: Analyze (javascript)
- GitHub Check: contracts-testing
- GitHub Check: Copy labels from linked issues
- GitHub Check: Mend Security Check
🔇 Additional comments (2)
kleros-app/package.json (1)
64-64
: Verify wagmi version compatibility with peer dependencies.The wagmi update to ^2.13.5 looks good, but let's verify compatibility with other peer dependencies, particularly viem ^2.21.42.
✅ Verification successful
Wagmi v2.13.5 update is compatible with all peer dependencies
All peer dependency version requirements are satisfied:
- viem ^2.21.42 (requires 2.x)
- react ^18.3.1 (requires >=18)
- @tanstack/react-query ^5.59.20 (requires >=5.0.0)
- typescript ^5.6.3 (requires >=5.0.4)
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check compatibility between wagmi and its peer dependencies # Get wagmi's peer dependencies and their version requirements echo "Checking wagmi peer dependencies..." curl -s "https://registry.npmjs.org/wagmi/2.13.5" | jq -r '.peerDependencies' echo "Checking if current viem version satisfies wagmi's requirements..." curl -s "https://registry.npmjs.org/viem/2.21.42" | jq -r '.version'Length of output: 481
Script:
#!/bin/bash # Check versions of other peer dependencies in package.json echo "Checking package.json dependencies..." cat kleros-app/package.json | jq '.dependencies["react"], .dependencies["@tanstack/react-query"], .devDependencies["typescript"]'Length of output: 235
Script:
#!/bin/bash # Check peer dependencies in package.json echo "Checking package.json peerDependencies..." cat kleros-app/package.json | jq '.peerDependencies'Length of output: 334
web-devtools/package.json (1)
68-68
: Verify alignment of wagmi-related package versions.The wagmi update to ^2.13.5 is consistent with kleros-app. Let's verify compatibility with @wagmi/cli and @wagmi/core.
✅ Verification successful
✓ Wagmi package versions are properly aligned
The update to wagmi ^2.13.5 is compatible with all related packages in web-devtools:
- All wagmi-related packages are on major version 2.x
- @wagmi/core ^2.15.0 and @wagmi/cli ^2.1.18 are compatible with wagmi ^2.13.5
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check version alignment between wagmi and related packages echo "Checking @wagmi/cli recommended wagmi version..." curl -s "https://registry.npmjs.org/@wagmi/cli/2.1.18" | jq -r '.peerDependencies.wagmi' echo "Checking @wagmi/core version compatibility..." curl -s "https://registry.npmjs.org/@wagmi/core/2.15.0" | jq -r '.peerDependencies.wagmi'Length of output: 392
Script:
#!/bin/bash # Search for wagmi-related packages in all package.json files echo "=== Searching for wagmi packages in package.json files ===" fd package.json --type f --exec sh -c 'echo "=== $1 ==="; cat "$1" | jq -r "(.dependencies,.devDependencies) | with_entries(select(.key | contains(\"wagmi\"))) // {}"' _ {} echo -e "\n=== Searching for wagmi version constraints in documentation or configuration files ===" rg -i "wagmi.*version|version.*wagmi" --type-add 'docs:*.{md,txt}' -tdocsLength of output: 9132
Script:
#!/bin/bash echo "=== web-devtools/package.json wagmi packages ===" cat web-devtools/package.json | jq '{dependencies: .dependencies | with_entries(select(.key | contains("wagmi"))), devDependencies: .devDependencies | with_entries(select(.key | contains("wagmi")))}' echo -e "\n=== kleros-app/package.json wagmi packages ===" cat kleros-app/package.json | jq '{dependencies: .dependencies | with_entries(select(.key | contains("wagmi"))), devDependencies: .devDependencies | with_entries(select(.key | contains("wagmi")))}'Length of output: 873
✅ Deploy Preview for kleros-v2-neo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
147d86c
to
2409603
Compare
b371250
b371250
to
e7faa21
Compare
Code Climate has analyzed commit 1582b52 and detected 0 issues on this pull request. View more on Code Climate. |
|
PR-Codex overview
This PR focuses on updating package dependencies, particularly the
wagmi
package version, and refining the GitHub workflows for setting up the development environment.Detailed summary
.github/workflows/pr-labels.yml
.wagmi
version from^2.13.0
to^2.13.5
in multiplepackage.json
files.@kleros/kleros-app
dependency from^2.0.2
toworkspace:^
.web
andweb-devtools
inpackage.json
.20.x
and enabled corepack for Yarn.@kleros/kleros-v2-contracts
to disable hardened mode temporarily.@metamask/sdk
version from0.30.1
to0.31.1
in@wagmi/connectors
.Summary by CodeRabbit
Dependencies
wagmi
package version to^2.13.5
inkleros-app
andweb-devtools
projects.@kleros/kleros-v2-contracts
inweb-devtools
.@kleros/kleros-app
dependency in the web project to use workspace reference.Build Configuration
yarn build:web:ci
for streamlined builds.@kleros/kleros-v2-web
and@kleros/kleros-v2-web-devtools
.