Skip to content
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

Prepare release: v1.0.7 #2804

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Prepare release: v1.0.7 #2804

merged 1 commit into from
Dec 13, 2024

Conversation

tarrencev
Copy link
Contributor

@tarrencev tarrencev commented Dec 13, 2024

Automated changes by create-pull-request GitHub action

Summary by CodeRabbit

  • New Features

    • Updated version of the workspace package and several dependencies to enhance functionality.
  • Bug Fixes

    • Incremented version numbers across multiple configuration files to ensure consistency and compatibility.

Copy link

coderabbitai bot commented Dec 13, 2024

Walkthrough

Ohayo, sensei! This pull request updates the version numbers across multiple Scarb.toml files from 1.0.6 to 1.0.7 for various packages, including the workspace package in Cargo.toml, Scarb.toml for Dojo Core, types_test, and dojo_examples. Additionally, several new dependencies are introduced in the Cargo.toml file, all set to version 0.3 with default features disabled. The overall structure and content of the configuration files remain largely unchanged, focusing primarily on version management and dependency updates.

Changes

File Change Summary
Cargo.toml - Version updated from 1.0.6 to 1.0.7
- Added dependencies: alloy-primitives, alloy-sol-types, alloy-contract, alloy-json-rpc, alloy-network, alloy-provider, alloy-rpc-types-eth, alloy-signer, alloy-transport, all set to version 0.3 with default features disabled.
crates/dojo/core/Scarb.toml - Version updated from 1.0.6 to 1.0.7
crates/torii/types-test/Scarb.toml - Version updated from 1.0.6 to 1.0.7
examples/spawn-and-move/Scarb.toml - Version updated from 1.0.6 to 1.0.7

Possibly related PRs

  • Prepare release: v1.0.0 #2676: The changes in this PR involve updating the version in Cargo.toml from 1.0.0-rc.2 to 1.0.0, which is related to the version management aspect of the main PR.
  • Prepare release: v1.0.1 #2693: This PR updates the version in Cargo.toml from 1.0.0 to 1.0.1, aligning with the versioning changes in the main PR.
  • Prepare release: v1.0.2 #2722: The version in Cargo.toml is updated from 1.0.1 to 1.0.2, which is consistent with the version management focus of the main PR.
  • Prepare release: v1.0.3 #2735: This PR updates the version from 1.0.2 to 1.0.3 in Cargo.toml, reflecting the same versioning theme as the main PR.
  • Prepare release: v1.0.4 #2756: The version is incremented from 1.0.3 to 1.0.4 in Cargo.toml, which is related to the version management changes in the main PR.
  • Prepare release: v1.0.5 #2774: This PR updates the version from 1.0.4 to 1.0.5 in Cargo.toml, maintaining the versioning consistency with the main PR.
  • Prepare release: v1.0.6 #2801: The version is updated from 1.0.5 to 1.0.6 in Cargo.toml, which aligns with the version management changes in the main PR.

Suggested reviewers

  • glihm

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • 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 generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @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. (Experiment)
  • @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.

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

🧹 Outside diff range and nitpick comments (1)
Cargo.toml (1)

Ohayo! Version mismatch requires attention, sensei!

The verification reveals a significant version disparity that needs addressing:

  • Current alloy ecosystem packages (0.8.0+) are several major versions ahead of what's being used (0.3)
  • alloy-primitives and alloy-sol-types (0.8.3) are using a different major version than other alloy packages (0.3)
  • Latest stable versions (0.8.15/0.8.0) are available for all packages

This version mismatch across the alloy ecosystem could lead to compatibility issues. Consider:

  • Upgrading all alloy packages to the latest 0.8.x versions
  • At minimum, aligning all packages to use the same major version
🔗 Analysis chain

Line range hint 249-250: Verify alloy ecosystem dependencies version consistency

Ohayo sensei! I notice we're using two different version sets for alloy packages:

  • alloy-primitives and alloy-sol-types: v0.8.3
  • Other alloy-* packages: v0.3

While this might be intentional, it's worth verifying the compatibility between these versions.

Also applies to: 264-270

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for compatibility issues between alloy packages

# Check if these versions are the latest stable releases
for pkg in alloy-primitives alloy-sol-types alloy-contract alloy-json-rpc alloy-network alloy-provider alloy-rpc-types-eth alloy-signer alloy-transport; do
    echo "Checking $pkg..."
    curl -s "https://crates.io/api/v1/crates/$pkg" | jq -r '.crate.max_stable_version'
done

# Check for any reported issues about version mismatches
gh api graphql -f query='
{
  search(query: "repo:alloy-rs/alloy is:issue state:open version compatibility", type: ISSUE, first: 5) {
    nodes {
      ... on Issue {
        title
        url
        labels(first: 5) {
          nodes {
            name
          }
        }
      }
    }
  }
}'

Length of output: 3178


Script:

#!/bin/bash
# Let's check the actual versions used in Cargo.toml
rg "alloy-" -A 1 Cargo.toml

Length of output: 609

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8f72aea and b626cda.

⛔ Files ignored due to path filters (4)
  • Cargo.lock is excluded by !**/*.lock
  • crates/dojo/core/Scarb.lock is excluded by !**/*.lock
  • crates/torii/types-test/Scarb.lock is excluded by !**/*.lock
  • examples/spawn-and-move/Scarb.lock is excluded by !**/*.lock
📒 Files selected for processing (4)
  • Cargo.toml (1 hunks)
  • crates/dojo/core/Scarb.toml (1 hunks)
  • crates/torii/types-test/Scarb.toml (1 hunks)
  • examples/spawn-and-move/Scarb.toml (1 hunks)
✅ Files skipped from review due to trivial changes (3)
  • crates/dojo/core/Scarb.toml
  • crates/torii/types-test/Scarb.toml
  • examples/spawn-and-move/Scarb.toml
🔇 Additional comments (2)
Cargo.toml (2)

63-63: LGTM: Version bump for release v1.0.7

Ohayo sensei! The version update from 1.0.6 to 1.0.7 aligns with the PR objectives and matches the version updates in other configuration files.


Line range hint 249-250: Verify impact of disabled default features

Ohayo sensei! All new alloy dependencies have default-features = false. Let's verify that all necessary features are still available through other means or explicit feature selections.

Also applies to: 264-270

✅ Verification successful

Ohayo! Features are properly configured, no issues found

From the previous search results, I can see that while default features are disabled in the workspace dependencies, each crate explicitly enables the features it needs:

  • primitives crate uses arbitrary and serde features
  • rpc crate enables comprehensive features: contract, network, node-bindings, provider-http, providers, signer-local, and serde
  • core crate carefully selects required features like json, reqwest, reqwest-rustls-tls, and serde

This is actually a good practice as it makes the feature selection explicit and prevents pulling in unnecessary dependencies.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check default features that are being disabled

# Search for feature-related configurations in the codebase
rg -A 5 'features.*alloy' 

# List Cargo.toml files that might have explicit feature selections
fd -e toml | xargs rg 'alloy-.*features'

Length of output: 1870


Script:

#!/bin/bash
# Let's check the default features of these alloy crates to understand what we're disabling
rg -A 10 '\[features\]' Cargo.toml

# Also check workspace features
rg 'workspace.features' -A 10 Cargo.toml

# And check if there are any feature-related comments that might explain the choices
rg '(?i)feature.*alloy' -A 5 

Length of output: 108

@glihm glihm enabled auto-merge (squash) December 13, 2024 05:11
@glihm glihm disabled auto-merge December 13, 2024 05:13
@glihm
Copy link
Collaborator

glihm commented Dec 13, 2024

Waiting addition of @Larkooo for the Query in gRPC to whitelist models for the entity.

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.75%. Comparing base (8f72aea) to head (b626cda).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2804   +/-   ##
=======================================
  Coverage   55.74%   55.75%           
=======================================
  Files         439      439           
  Lines       55572    55572           
=======================================
+ Hits        30981    30982    +1     
+ Misses      24591    24590    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants