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: update dashj-bls to 1.0.1-SNAPSHOT #272

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HashEngineering
Copy link
Collaborator

@HashEngineering HashEngineering commented Feb 13, 2025

Issue being fixed or feature implemented

Update to DashJ-BLS 1.0.1

What was done?

How Has This Been Tested?

Breaking Changes

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

  • Chores
    • Upgraded a key dependency to its latest snapshot version, enhancing overall reliability and performance.
    • Synchronized internal project references with recent upstream improvements to ensure smoother functionality.

@HashEngineering HashEngineering self-assigned this Feb 13, 2025
Copy link

coderabbitai bot commented Feb 13, 2025

Walkthrough

The changes update the subproject reference in contrib/dashj-bls by switching the commit from 05e87da6ace3b53d37ad79eae6cef6ced353bbac to 9e099b7f0c6d89034a3da04f754027484ff82d10. Additionally, the dependency version of dashj-bls in core/build.gradle is updated from 1.0.0 to 1.0.1-SNAPSHOT, reflecting a minor upgrade in the build configuration.

Changes

File(s) Change Summary
contrib/dashj-bls Updated subproject commit reference from 05e87da6ace3b53d37ad79eae6cef6ced353bbac to 9e099b7f0c6d89034a3da04f754027484ff82d10.
core/build.gradle Updated dependency version for dashj-bls from 1.0.0 to 1.0.1-SNAPSHOT.

Poem

In my burrow, I hop with glee,
A commit change as fresh as can be.
Versions updated with a swift leap,
Hopping through updates, no time for sleep.
Code carrots crunch in every line,
Happy coding—now everything's fine!
🐇💻


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. (Beta)
  • @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: 1

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 2a571e3 and 898ddb9.

📒 Files selected for processing (2)
  • contrib/dashj-bls (1 hunks)
  • core/build.gradle (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • contrib/dashj-bls
🧰 Additional context used
🪛 GitHub Actions: CodeQL
core/build.gradle

[error] 1-1: Could not find org.dashj:dashj-bls:1.0.1-SNAPSHOT. Required by project :dashj-wallettemplate.


[error] 1-1: Could not resolve all files for configuration ':dashj-wallettemplate:runtimeClasspath'.

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: JAVA 11 OS macOS-latest Gradle
  • GitHub Check: JAVA 11 OS ubuntu-latest Gradle
🔇 Additional comments (1)
core/build.gradle (1)

126-137:

❓ Verification inconclusive

Verify Maven repository configuration.

The build is configured to use Sonatype repositories for both releases and snapshots. Ensure that:

  1. The SNAPSHOT version is being published to the correct repository
  2. The build has proper credentials configured for dependency resolution

Let's verify the repository configuration:


🏁 Script executed:

#!/bin/bash
# Verify repository access and credentials

# Test repository access
echo "Testing Sonatype snapshots repository access..."
curl -I "https://s01.oss.sonatype.org/content/repositories/snapshots/"

# Check if credentials are configured in environment
echo -e "\nChecking credential configuration..."
if [ -f ~/.gradle/gradle.properties ]; then
    echo "Gradle properties file exists"
    grep -c "ossrh" ~/.gradle/gradle.properties || echo "No ossrh credentials found"
else
    echo "No Gradle properties file found"
fi

Length of output: 1188


Action Required: Verify credentials provisioning for Sonatype repository

The repository URLs are confirmed accessible (HTTP/200 returned for the snapshots URL), and the code correctly routes SNAPSHOT versions to the snapshots repository. However, the automated check did not find a ~/.gradle/gradle.properties file containing the OSSRH credentials. This may be acceptable if the credentials are provided via an alternative mechanism (e.g., CI environment variables or project-level properties).

Please verify:

  • That the necessary ossrhUsername and ossrhPassword are injected into the build through another mechanism if not via ~/.gradle/gradle.properties.
  • That SNAPSHOT and release artifacts are published to the correct repositories.

@@ -28,7 +28,7 @@ dependencies {

// Dash Specific
implementation 'de.sfuhrm:saphir-hash-core:3.0.10'
implementation 'org.dashj:dashj-bls:1.0.0'
implementation 'org.dashj:dashj-bls:1.0.1-SNAPSHOT'
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

⚠️ Potential issue

🧩 Analysis chain

Critical: Build failure due to missing SNAPSHOT dependency.

The pipeline is failing because it cannot resolve org.dashj:dashj-bls:1.0.1-SNAPSHOT. This is blocking the build process.

Let's verify the availability of the package in the Maven repositories:

Consider these solutions:

  1. If the SNAPSHOT version is intentional (e.g., for development):
    • Ensure the SNAPSHOT is published to the Sonatype snapshots repository
    • Verify the subproject build publishes the artifact before the main build
  2. If this should be a release version:
    • Update to a released version instead of a SNAPSHOT
    -    implementation 'org.dashj:dashj-bls:1.0.1-SNAPSHOT'
    +    implementation 'org.dashj:dashj-bls:1.0.1'

🏁 Script executed:

#!/bin/bash
# Check if the SNAPSHOT version exists in the configured Maven repositories

# Check Sonatype snapshots repository
echo "Checking Sonatype snapshots repository..."
curl -s "https://s01.oss.sonatype.org/content/repositories/snapshots/org/dashj/dashj-bls/1.0.1-SNAPSHOT/maven-metadata.xml" || echo "Not found in Sonatype snapshots"

# Check Maven Central (though SNAPSHOTs shouldn't be here)
echo -e "\nChecking Maven Central..."
curl -s "https://repo1.maven.org/maven2/org/dashj/dashj-bls/maven-metadata.xml" || echo "Not found in Maven Central"

Length of output: 1752


Critical: Unresolved Dependency Must Be Addressed

The build is currently failing because the dependency

implementation 'org.dashj:dashj-bls:1.0.1-SNAPSHOT'

cannot be resolved. Our verification shows that the 1.0.1-SNAPSHOT artifact is missing from the Sonatype snapshots repository, and Maven Central only offers versions up to 1.0.0.

Next steps:

  • If a SNAPSHOT is intended: Ensure that the 1.0.1-SNAPSHOT artifact is published to the snapshots repository (and that any subproject responsible for publishing it is successfully running before this build).
  • Otherwise: Switch to a released version. For example:
    -    implementation 'org.dashj:dashj-bls:1.0.1-SNAPSHOT'
    +    implementation 'org.dashj:dashj-bls:1.0.0'

Please address this to ensure the build can resolve all dependencies.

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