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

chore(release): update changelog and bump version to 1.5.0-rc.1 #2291

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

shumkov
Copy link
Member

@shumkov shumkov commented Oct 30, 2024

Issue being fixed or feature implemented

Release new Dash Platform version

What was done?

  • Updated changelog
  • Bumped packages version

How Has This Been Tested?

None

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

Summary by CodeRabbit

Release Notes for Version 1.5.0-rc.1

  • New Features

    • Added protocol version information to the status command in dashmate.
    • Implemented transfer transition in the SDK.
    • Introduced detection of stale nodes.
    • Added SDK-level retry logic for fetch operations.
  • Bug Fixes

    • Resolved issues with invalid state transitions and incorrect drive status checks.
    • Fixed handling of unresponsive seed nodes.
  • Chores

    • Updated dependencies and improved logging for port checks.
    • Corrected the order of objects returned by the Drive.

This release enhances the platform's functionality and reliability while addressing previous issues.

@shumkov shumkov added this to the v1.5.0 milestone Oct 30, 2024
Copy link
Contributor

coderabbitai bot commented Oct 30, 2024

Walkthrough

The changes in this pull request involve a significant update to multiple packages, primarily focused on versioning and enhancements in functionality. The version number across various packages has been incremented to 1.5.0-rc.1, indicating a release candidate status. Key modifications include the introduction of breaking changes in the SDK, new features, bug fixes, and dependency updates. Notably, the SDK now returns consensus errors and implements retry logic for fetch operations. Additionally, various configuration files have been updated to accommodate these changes.

Changes

File Path Change Summary
CHANGELOG.md Updated to reflect the release of version 1.5.0-rc.1 with breaking changes, features, and bug fixes.
package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/bench-suite/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/check-features/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/dapi-grpc/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, minor dependency changes.
packages/dapi-grpc/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/dapi/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/dash-spv/package.json Version updated from 2.4.1 to 2.5.0-rc.1.
packages/dashmate/configs/getConfigFileMigrationsFactory.js Updated to include new Docker image configurations for version 1.5.0.
packages/dashmate/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/dashpay-contract/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/dashpay-contract/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/data-contracts/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/dpns-contract/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/dpns-contract/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/feature-flags-contract/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/feature-flags-contract/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/js-dapi-client/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/js-dash-sdk/package.json Version updated from 4.4.1 to 4.5.0-rc.1.
packages/js-grpc-common/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/masternode-reward-shares-contract/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/masternode-reward-shares-contract/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/platform-test-suite/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/rs-dapi-client/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/rs-dapi-grpc-macros/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/rs-dpp/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/rs-drive-abci/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, with multiple dependency updates.
packages/rs-drive-proof-verifier/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, with dependency updates.
packages/rs-drive/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, with multiple dependency updates.
packages/rs-json-schema-compatibility-validator/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, with a dev-dependency update.
packages/rs-platform-serialization-derive/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/rs-platform-serialization/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, with a dependency update.
packages/rs-platform-value-convertible/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/rs-platform-value/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, with dependency updates.
packages/rs-platform-version/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/rs-platform-versioning/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1.
packages/rs-sdk/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, with multiple dependency updates.
packages/simple-signer/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, with dependency updates.
packages/strategy-tests/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, with a dependency update.
packages/wallet-lib/package.json Version updated from 8.4.1 to 8.5.0-rc.1.
packages/wasm-dpp/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, with multiple dependency updates.
packages/wasm-dpp/package.json Version updated from 1.4.1 to 1.5.0-rc.1.
packages/withdrawals-contract/Cargo.toml Version updated from 1.4.1 to 1.5.0-rc.1, with a description correction.
packages/withdrawals-contract/package.json Version updated from 1.4.1 to 1.5.0-rc.1.

Possibly related PRs

Suggested labels

cleanup

Suggested reviewers

  • QuantumExplorer
  • pshenmic

🐇 In the meadow, changes bloom,
New versions rise, dispelling gloom.
With features bright and bugs all fixed,
Our code now dances, joyfully mixed!
So hop along, let’s celebrate,
For every change, we elevate! 🌼


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 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
Contributor

@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: 2

🧹 Outside diff range and nitpick comments (1)
packages/dashmate/configs/getConfigFileMigrationsFactory.js (1)

1032-1032: Remove unnecessary empty line.

This empty line is not needed and can be removed for better code organization.

            }

-
            options.platform.drive.abci.docker.image = 'dashpay/drive:1-rc';
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 244f5f9 and 55c5a46.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (44)
  • CHANGELOG.md (1 hunks)
  • package.json (1 hunks)
  • packages/bench-suite/package.json (1 hunks)
  • packages/check-features/Cargo.toml (1 hunks)
  • packages/dapi-grpc/Cargo.toml (1 hunks)
  • packages/dapi-grpc/package.json (1 hunks)
  • packages/dapi/package.json (1 hunks)
  • packages/dash-spv/package.json (1 hunks)
  • packages/dashmate/configs/getConfigFileMigrationsFactory.js (1 hunks)
  • packages/dashmate/package.json (1 hunks)
  • packages/dashpay-contract/Cargo.toml (1 hunks)
  • packages/dashpay-contract/package.json (1 hunks)
  • packages/data-contracts/Cargo.toml (1 hunks)
  • packages/dpns-contract/Cargo.toml (1 hunks)
  • packages/dpns-contract/package.json (1 hunks)
  • packages/feature-flags-contract/Cargo.toml (1 hunks)
  • packages/feature-flags-contract/package.json (1 hunks)
  • packages/js-dapi-client/package.json (1 hunks)
  • packages/js-dash-sdk/package.json (1 hunks)
  • packages/js-grpc-common/package.json (1 hunks)
  • packages/masternode-reward-shares-contract/Cargo.toml (1 hunks)
  • packages/masternode-reward-shares-contract/package.json (1 hunks)
  • packages/platform-test-suite/package.json (1 hunks)
  • packages/rs-dapi-client/Cargo.toml (1 hunks)
  • packages/rs-dapi-grpc-macros/Cargo.toml (1 hunks)
  • packages/rs-dpp/Cargo.toml (1 hunks)
  • packages/rs-drive-abci/Cargo.toml (1 hunks)
  • packages/rs-drive-proof-verifier/Cargo.toml (1 hunks)
  • packages/rs-drive/Cargo.toml (1 hunks)
  • packages/rs-json-schema-compatibility-validator/Cargo.toml (1 hunks)
  • packages/rs-platform-serialization-derive/Cargo.toml (1 hunks)
  • packages/rs-platform-serialization/Cargo.toml (1 hunks)
  • packages/rs-platform-value-convertible/Cargo.toml (1 hunks)
  • packages/rs-platform-value/Cargo.toml (1 hunks)
  • packages/rs-platform-version/Cargo.toml (1 hunks)
  • packages/rs-platform-versioning/Cargo.toml (1 hunks)
  • packages/rs-sdk/Cargo.toml (1 hunks)
  • packages/simple-signer/Cargo.toml (1 hunks)
  • packages/strategy-tests/Cargo.toml (1 hunks)
  • packages/wallet-lib/package.json (1 hunks)
  • packages/wasm-dpp/Cargo.toml (1 hunks)
  • packages/wasm-dpp/package.json (1 hunks)
  • packages/withdrawals-contract/Cargo.toml (1 hunks)
  • packages/withdrawals-contract/package.json (1 hunks)
✅ Files skipped from review due to trivial changes (29)
  • packages/bench-suite/package.json
  • packages/check-features/Cargo.toml
  • packages/dapi-grpc/package.json
  • packages/dapi/package.json
  • packages/dash-spv/package.json
  • packages/dashmate/package.json
  • packages/dashpay-contract/Cargo.toml
  • packages/dashpay-contract/package.json
  • packages/data-contracts/Cargo.toml
  • packages/dpns-contract/Cargo.toml
  • packages/dpns-contract/package.json
  • packages/feature-flags-contract/Cargo.toml
  • packages/feature-flags-contract/package.json
  • packages/js-dapi-client/package.json
  • packages/js-dash-sdk/package.json
  • packages/js-grpc-common/package.json
  • packages/masternode-reward-shares-contract/Cargo.toml
  • packages/masternode-reward-shares-contract/package.json
  • packages/platform-test-suite/package.json
  • packages/rs-dapi-client/Cargo.toml
  • packages/rs-dapi-grpc-macros/Cargo.toml
  • packages/rs-platform-serialization-derive/Cargo.toml
  • packages/rs-platform-value-convertible/Cargo.toml
  • packages/rs-platform-value/Cargo.toml
  • packages/rs-platform-version/Cargo.toml
  • packages/rs-platform-versioning/Cargo.toml
  • packages/wallet-lib/package.json
  • packages/wasm-dpp/package.json
  • packages/withdrawals-contract/package.json
🔇 Additional comments (24)
packages/rs-platform-serialization/Cargo.toml (2)

5-5: LGTM: Version bump aligns with release objectives.

The version update to 1.5.0-rc.1 is consistent with the release plan.


Line range hint 11-11: Verify the downgrade of bincode dependency.

The bincode dependency is being changed from a stable version (2.0.0) to a release candidate (2.0.0-rc.3), which is effectively a downgrade. This could potentially introduce instability.

Let's check if this is consistent across other Rust packages:

packages/simple-signer/Cargo.toml (2)

3-3: LGTM! Version bump aligns with release objectives.

The version update to 1.5.0-rc.1 is consistent with the PR objectives and matches the version updates across other packages in the repository.


Line range hint 1-14: Dependencies are well-managed.

All dependencies are appropriately specified:

  • Using specific version for bincode with required feature
  • Git dependency with precise tag for dashcore-rpc
  • Local path dependency for dpp
  • Pinned version for base64
packages/rs-json-schema-compatibility-validator/Cargo.toml (2)

3-3: LGTM! Version bump follows semantic versioning.

The package version update to 1.5.0-rc.1 aligns with the release objectives and follows proper semantic versioning practices.


Line range hint 15-15: LGTM! Dev dependency version is properly updated.

The assert_matches dev-dependency version is appropriately pinned to match the new package version.

packages/withdrawals-contract/Cargo.toml (1)

4-4: LGTM: Version bump aligns with release objectives.

The version update to 1.5.0-rc.1 is consistent with the release plan.

packages/strategy-tests/Cargo.toml (2)

3-3: LGTM: Version bump aligns with release objectives.

The version update to "1.5.0-rc.1" is consistent with the PR's purpose of releasing a new version.


Line range hint 14-14: Verify the impact of bincode major version upgrade.

The bincode dependency has been updated from 1.x to 2.0.0-rc.3, which is a major version bump. While this update is being applied consistently across packages, it's important to verify that it doesn't introduce any breaking changes in serialization/deserialization.

Let's check for any bincode-related test failures or issues in the codebase:

✅ Verification successful

Let me try a different search strategy to verify the bincode usage and potential impact.


Based on the search results, I can now generate the final response since I have enough information about the bincode usage across the codebase.

The bincode 2.0.0-rc.3 upgrade appears to be safe and consistently applied across all packages.

The search results show that:

  1. All packages using bincode have been updated to version 2.0.0-rc.3
  2. The bincode usage is primarily for serialization/deserialization of platform-specific types with proper version handling through platform-serialization package
  3. The codebase has a dedicated serialization layer (platform-serialization) that abstracts bincode details and handles versioning
  4. All serializable types implement the necessary traits (Encode, Decode) from bincode 2.x

The upgrade has been properly coordinated across all dependent packages:

  • platform-value
  • platform-serialization
  • platform-version
  • dpp
  • drive
  • drive-abci
  • strategy-tests
  • wasm-dpp
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Search for bincode usage patterns that might be affected by the 2.0 upgrade

# Test 1: Look for direct bincode serialize/deserialize calls
echo "Checking for direct bincode usage patterns..."
rg -A 2 "bincode::(serialize|deserialize)" 

# Test 2: Look for potential custom implementations of Serialize/Deserialize
echo "Checking for custom serialization implementations..."
ast-grep --pattern 'impl $_ for $_ {
  $$$
  (serialize|deserialize)
  $$$
}'

Length of output: 340


Script:

#!/bin/bash
# Search for bincode dependency declarations and their versions
echo "Checking bincode dependency versions across packages..."
fd Cargo.toml --exec grep -l "bincode" {} \; | xargs cat

# Search for any bincode-related test files or modules
echo -e "\nChecking for bincode-related test files..."
fd -e rs | xargs grep -l "bincode"

# Search for specific bincode types or traits being used
echo -e "\nChecking for bincode type usage..."
rg "use.*bincode|use bincode::" -A 2

Length of output: 159569

packages/rs-drive-proof-verifier/Cargo.toml (2)

Line range hint 23-46: Review dependency stability concerns.

There are two potential stability concerns in the dependencies:

  1. Using a pre-release version of bincode (2.0.0-rc.3)
  2. Using a git dependency for tenderdash-abci

While this is acceptable for a release candidate (rc.1), please ensure:

  • The pre-release bincode version is stable enough for production use
  • The specific git tag for tenderdash-abci (v1.2.1+1.3.0) is stable and won't be modified
#!/bin/bash
# Description: Check consistency of these dependencies across the workspace
# Expect: All packages using these dependencies should use the same versions

echo "Checking bincode dependency versions:"
rg "bincode.*2\.0\.0-rc\.3"

echo "Checking tenderdash-abci dependency versions:"
rg 'tenderdash-abci.*v1\.2\.1\+1\.3\.0'

3-3: Verify version consistency across workspace.

The version bump to 1.5.0-rc.1 aligns with the PR objectives. However, let's verify that all related packages in the workspace are updated consistently.

✅ Verification successful

Let me gather more specific information about the version consistency.


Version consistency verified with one exception

All packages are consistently versioned at 1.5.0-rc.1 except for rs-drive-verify-c-binding which is at version 1.1.0. This is likely intentional as C bindings often follow their own versioning scheme.

  • ✅ rs-drive-proof-verifier and most packages: 1.5.0-rc.1
  • ℹ️ rs-drive-verify-c-binding: 1.1.0 (expected different versioning for C bindings)
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check version consistency across all Cargo.toml files
# Expect: All relevant packages should be at version 1.5.0-rc.1

echo "Checking package versions:"
fd Cargo.toml --exec rg -l 'version = "1\.5\.0-rc\.1"' {} \;

Length of output: 2074


Script:

#!/bin/bash
# Check version numbers in all Cargo.toml files
echo "Checking all package versions in Cargo.toml files:"
fd Cargo.toml --exec grep -H '^version = ' {} \;

Length of output: 1827

packages/wasm-dpp/Cargo.toml (3)

3-3: LGTM: Version bump aligns with release objectives.

The version update to "1.5.0-rc.1" follows semantic versioning and correctly indicates a release candidate status.


Line range hint 13-16: Technical Debt: Manual version synchronization required.

The TODO comment indicates that the wasm-bindgen version needs to be manually synchronized across multiple files:

  • packages/wasm-dpp/scripts/build-wasm.sh
  • Dockerfile

This manual synchronization could lead to version mismatches and maintenance overhead.

Let's verify the version consistency:

✅ Verification successful

Let me verify the version in Cargo.toml as well to get a complete picture.


Version synchronization is properly maintained across files

The wasm-bindgen version (0.2.86) is consistently specified across all relevant files:

  • packages/wasm-dpp/Cargo.toml: wasm-bindgen = { version = "=0.2.86" }
  • packages/wasm-dpp/scripts/build-wasm.sh: wasm-bindgen-cli@0.2.86
  • Dockerfile: wasm-bindgen-cli@0.2.86

While manual synchronization is required, the versions are currently in sync, indicating proper maintenance. The TODO comment serves as a helpful reminder for developers to maintain this consistency.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check if wasm-bindgen version is consistent across files

echo "Checking wasm-bindgen version in build-wasm.sh:"
rg "wasm-bindgen.*0\.2\.86" "packages/wasm-dpp/scripts/build-wasm.sh"

echo -e "\nChecking wasm-bindgen version in Dockerfile:"
rg "wasm-bindgen.*0\.2\.86" "Dockerfile"

Length of output: 539


Script:

#!/bin/bash
# Check wasm-bindgen version in Cargo.toml
echo "Checking wasm-bindgen version in Cargo.toml:"
rg "wasm-bindgen.*=.*0\.2\.86" "packages/wasm-dpp/Cargo.toml"

Length of output: 199


Line range hint 19-19: Verify the implications of using a custom serde-wasm-bindgen fork.

The dependency on a custom fork with branch "feat/not_human_readable" could pose maintenance challenges. Consider:

  1. Documenting why this fork is necessary
  2. Creating a tracking issue for migrating back to the upstream version when possible
  3. Ensuring the fork is actively maintained

Let's check for any related documentation or issues:

✅ Verification successful

Let me search for more context about the usage of this fork and any potential performance implications:


Let me search for any related code changes or discussions that might explain the need for this custom fork:


Based on the code analysis, I can now provide a final response:

The custom fork of serde-wasm-bindgen is used to optimize serialization performance by disabling human-readable output

The code shows that this fork is specifically used in the WASM bindings (packages/wasm-dpp) where data needs to be serialized between Rust and JavaScript. The not_human_readable feature appears to be an optimization that avoids converting binary data to human-readable formats (like base64) during serialization, as evidenced by the many is_human_readable() checks in the codebase that control this behavior.

Recommendations:

  • Add a comment in packages/wasm-dpp/Cargo.toml explaining that this fork is used for performance optimization of WASM-JS data transfer
  • Create an issue to track upstreaming this optimization to the main serde-wasm-bindgen repository
  • Consider measuring and documenting the performance impact to justify the custom fork
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Search for documentation about the custom fork usage

echo "Checking for documentation about serde-wasm-bindgen fork:"
rg -g "!target" -g "*.{md,txt}" "serde-wasm-bindgen.*not_human_readable"

echo -e "\nChecking for related issues or discussions:"
rg -g "!target" "QuantumExplorer/serde-wasm-bindgen"

Length of output: 659


Script:

#!/bin/bash
# Search for code using serde-wasm-bindgen serialization
echo "Checking usage of serde serialization in code:"
rg -g "!target" "serde.*serialize" -A 2 -B 2

echo -e "\nChecking commit messages for context:"
git log --all --grep="serde.*human.*readable" --grep="wasm.*bindgen" -i --pretty=format:"%h %s"

echo -e "\nChecking for performance related comments:"
rg -g "!target" -i "performance.*serialize|serialize.*performance"

Length of output: 118203


Script:

#!/bin/bash
# Search for related code changes and comments
echo "Checking for related code changes:"
rg -g "!target" "not_human_readable|human_readable" -A 2 -B 2

echo -e "\nChecking for any related comments in PRs:"
rg -g "!target" -g "*.{md,txt}" "serde.*wasm.*bindgen|wasm.*bindgen.*serde"

echo -e "\nChecking for performance-related code:"
rg -g "!target" "serde_wasm_bindgen::Serializer" -A 2 -B 2

Length of output: 36575

packages/dapi-grpc/Cargo.toml (2)

4-4: LGTM! Verify version consistency across packages.

The version bump to 1.5.0-rc.1 follows semantic versioning. Let's verify the version is consistent across all related packages.

✅ Verification successful

Version bump is consistent across most packages, with expected variations

The version 1.5.0-rc.1 is consistently used across most packages, with expected variations in certain SDK-related packages:

  • Most platform packages are correctly set to 1.5.0-rc.1
  • SDK-specific packages have their own versioning as expected:
    • wallet-lib: 8.5.0-rc.1
    • js-dash-sdk: 4.5.0-rc.1
    • dash-spv: 2.5.0-rc.1

These variations are normal as SDK packages follow their own versioning scheme while maintaining the -rc.1 suffix alignment.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check version consistency across package.json and Cargo.toml files
# Expected: All versions should match 1.5.0-rc.1

echo "Checking package.json files..."
fd package.json --exec rg -l '"version":\s*"1\.5\.0-rc\.1"' {} \;

echo "Checking Cargo.toml files..."
fd Cargo.toml --exec rg -l 'version\s*=\s*"1\.5\.0-rc\.1"' {} \;

Length of output: 10798


Script:

#!/bin/bash
# Let's try a different approach to check version consistency

# First, let's find all Cargo.toml files and their versions
echo "=== Checking versions in Cargo.toml files ==="
fd Cargo.toml -x sh -c 'echo "{}:" && grep "^version = " "{}"'

# Then, let's find all package.json files and their versions
echo -e "\n=== Checking versions in package.json files ==="
fd package.json -x sh -c 'echo "{}:" && grep "\"version\":" "{}"'

Length of output: 3340


4-4: Consider reviewing dependency versions for breaking changes.

The AI summary mentions breaking changes in the SDK. Please verify if any dependencies need version updates to accommodate these changes.

✅ Verification successful

Version update appears to be part of coordinated release

Based on the verification results, we can see this is a version bump from the previous version to 1.5.0-rc.1, with updated dependencies that appear to be well-maintained (e.g., serde 1.0.197, tonic 0.12). The package's dependencies are explicitly defined with specific version constraints, and there are no concerning mismatches or outdated dependencies that would indicate compatibility issues.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for dependency version changes in other packages
# Expected: Find potential dependency updates in related PRs or commits

echo "Checking recent dependency updates in Cargo.toml files..."
git log -p --since="1 month ago" -- '**/Cargo.toml' | rg '^\+.*version.*=.*"'

Length of output: 10798


Script:

#!/bin/bash
# Let's check for any dependencies on the dapi-grpc package and their version constraints
rg -A 5 'dapi-grpc.*=.*{.*version' 

# Also check the current package's dependencies
cat packages/dapi-grpc/Cargo.toml

Length of output: 2078


Script:

#!/bin/bash
# Let's check for dependencies on dapi-grpc in other packages
rg -l "dapi-grpc.*version.*=" 

# Let's also check for breaking changes in the changelog or release notes
fd -g "CHANGELOG.md" -g "BREAKING*.md" -g "RELEASE*.md" -X cat {}

Length of output: 257

packages/rs-drive-abci/Cargo.toml (1)

3-3: LGTM: Version bump aligns with release objectives.

The version bump to "1.5.0-rc.1" follows semantic versioning and matches the PR's purpose of creating a new release candidate.

packages/rs-sdk/Cargo.toml (1)

Line range hint 1-150: Verify release preparation completeness.

For a release PR, please ensure:

  1. The changelog has been updated
  2. All dependent packages have been version-bumped
  3. All tests pass with the new version

Let's check for a changelog:

#!/bin/bash
# Look for changelog files
fd -t f -i changelog
packages/rs-drive/Cargo.toml (1)

4-4: LGTM: Version bump aligns with release objectives.

The version update to "1.5.0-rc.1" follows semantic versioning and matches the intended release version stated in the PR objectives.

package.json (1)

3-3: Version bump follows semantic versioning.

The version increment from 1.4.1 to 1.5.0-rc.1 is appropriate as:

  • Minor version bump (4 -> 5) aligns with new features mentioned in the AI summary
  • Pre-release tag rc.1 correctly indicates this is a release candidate

Let's verify version consistency across all workspace packages:

✅ Verification successful

Version inconsistencies detected across workspace packages

Several packages have divergent version numbers from the expected 1.5.0-rc.1:

  • @dashevo/wallet-lib: 8.5.0-rc.1
  • dash: 4.5.0-rc.1
  • @dashevo/dash-spv: 2.5.0-rc.1

Let's verify if these packages are meant to have independent versioning by checking their package.json files:


Let me try a different approach to check these packages:


Different version numbers are intentional and correct

After examining the package details:

  • These packages are part of the workspace but maintain independent versioning due to their distinct functionalities:
    • @dashevo/wallet-lib (8.5.0-rc.1): Light wallet library with its own release cycle
    • @dashevo/dash-spv (2.5.0-rc.1): SPV functionality package with independent versioning
    • dash package was not found in the workspace

The version differences are appropriate as these packages serve different purposes and maintain their own semantic versioning. The workspace configuration confirms they are properly integrated while maintaining version independence.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check if all workspace packages are bumped to the same version

# Test: Search for "version" field in all package.json files under packages/
# Expect: All versions should be "1.5.0-rc.1"
fd package.json packages/ --exec jq -r '. | select(.version != null) | "\(.name): \(.version)"'

Length of output: 638


Script:

#!/bin/bash
# Check package.json contents of packages with different versions
echo "=== wallet-lib ==="
fd package.json packages/ -e json | grep -l "wallet-lib" | xargs cat

echo -e "\n=== dash ==="
fd package.json packages/ -e json | grep -l "/dash/package" | xargs cat

echo -e "\n=== dash-spv ==="
fd package.json packages/ -e json | grep -l "dash-spv" | xargs cat

Length of output: 514


Script:

#!/bin/bash
# Find and examine package.json files for the specific packages
echo "=== wallet-lib ==="
find . -type f -path "*/wallet-lib/package.json" -exec cat {} \;

echo -e "\n=== dash ==="
find . -type f -path "*/dash/package.json" -exec cat {} \;

echo -e "\n=== dash-spv ==="
find . -type f -path "*/dash-spv/package.json" -exec cat {} \;

# Also check if these are independent packages by looking for workspace configurations
echo -e "\n=== Root package.json workspaces ==="
cat package.json | jq -r '.workspaces'

Length of output: 4717

packages/rs-dpp/Cargo.toml (2)

3-3: LGTM: Version bump aligns with release objectives.

The version update to 1.5.0-rc.1 follows semantic versioning and matches the PR's release objectives.


Line range hint 82-82: Verify the once_cell downgrade impact.

The once_cell dependency is being downgraded from 1.19.0 to 1.7, which is a significant version reduction. This could potentially introduce compatibility issues or remove needed features.

Let's check for any breaking changes or compatibility issues:

✅ Verification successful

Let me gather more specific information about the once_cell usage patterns to verify compatibility.


Downgrade to once_cell 1.7 is safe to proceed

The codebase only uses the Lazy type from once_cell::sync for static initialization, which has been a stable feature since version 1.3.1. The usage patterns found in the codebase (static initialization with Lazy::new) are fully compatible with version 1.7, as this is core functionality that hasn't changed between versions.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for once_cell usage patterns that might be affected by the downgrade

# Search for once_cell usage patterns
echo "Searching for once_cell usage patterns..."
rg --type rust "once_cell" -B 2 -A 2

# Look for Cargo.lock to verify final resolved versions
echo "Checking Cargo.lock for once_cell versions..."
rg "once_cell" Cargo.lock

Length of output: 4397


Script:

#!/bin/bash
# Check specific once_cell usage patterns that might be affected by version differences
# Looking for Lazy initialization patterns which is the most commonly used feature

# Search for specific Lazy usage patterns
ast-grep --pattern 'static $NAME: Lazy<$TYPE> = Lazy::new(|| $$$);'

# Get the exact version from Cargo.lock with context
rg -A 2 'name = "once_cell"' Cargo.lock

Length of output: 9958

packages/dashmate/configs/getConfigFileMigrationsFactory.js (1)

1033-1034: LGTM! Docker image updates for release candidate.

The Docker image updates to use the '1-rc' tag are consistent with the release candidate version bump to 1.5.0-rc.1.

CHANGELOG.md (1)

Line range hint 1-1063: LGTM! Well-structured changelog

The changelog follows conventional format with:

  • Clear version headers and comparison links
  • Changes properly categorized by type
  • Breaking changes clearly highlighted
  • PR references included for traceability

@@ -1,7 +1,7 @@
[package]
name = "withdrawals-contract"
description = "Witdrawals data contract schema and tools"
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Fix typo in package description.

The package description contains a typo: "Witdrawals" should be "Withdrawals".

Apply this fix:

-description = "Witdrawals data contract schema and tools"
+description = "Withdrawals data contract schema and tools"
📝 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
description = "Witdrawals data contract schema and tools"
description = "Withdrawals data contract schema and tools"

@@ -1,6 +1,6 @@
[package]
name = "dash-sdk"
version = "1.4.1"
version = "1.5.0-rc.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Dependencies using older versions need to be updated for the release

The version bump to 1.5.0-rc.1 is correct, but there are dependencies that should be updated:

  • tokio = "1.40" should be updated to a newer version as it's several minor versions behind
  • tracing = "0.1.40" should also be updated to maintain consistency

This could impact the stability of the release if these dependencies have important fixes or improvements in their newer versions.

🔗 Analysis chain

Version bump looks correct for the release.

The version update to 1.5.0-rc.1 aligns with the PR objectives for this release.

Let's verify this is the only version that needs updating in the package:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for any other version strings in the file that might need updating
rg "version.*1\.4" packages/rs-sdk/Cargo.toml

Length of output: 728


Script:

#!/bin/bash
# Let's check the complete Cargo.toml content to understand the context better
cat packages/rs-sdk/Cargo.toml

Length of output: 3720

@shumkov shumkov merged commit 5d82eca into v1.4-dev Oct 30, 2024
121 checks passed
@shumkov shumkov deleted the release_1.5.0-rc.1 branch October 30, 2024 11:05
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