Skip to content

Conversation

@satran004
Copy link
Member

@satran004 satran004 commented Jul 16, 2025

CI Updates:

  • Updated Ubuntu version from 20.04 to 22.04 in .github/workflows/dev-release-cli.yml, .github/workflows/release-cli.yml, and .github/workflows/release-viewer.yml to ensure compatibility with newer environments. [1] [2] [3] [4]

Yaci Store Updates:

  • Updated Yaci Store version from 2.0.0-beta2 to 2.0.0-beta3 in applications/cli/Earthfile and applications/cli/config/download.properties. [1] [2]
  • Modified DownloadService to handle downloading and extracting the Yaci Store jar from a zip file instead of directly downloading the jar file. [1] [2]

Store Feature Enhancements:

  • Enabled new store features such as store.adapot.enabled, store.governance-aggr.enabled, and their corresponding APIs in applications/cli/docker/store-application.properties.

Multi-Node Cluster Support:

  • Added support for configuring stake ratio between nodes in multi-node clusters for rollback testing. Changes span across ClusterCommands, ClusterInfo, ClusterService, ClusterStartService, and ClusterAdminController. [1] [2] [3] [4] [5]

Code Enhancements:

  • Improved code structure by adding StandardCopyOption import and refactoring download logic in DownloadService. [1] [2]
  • Enhanced cluster handling by integrating events and services for multi-node setups in ClusterStartService. [1] [2]

Upgraded Yaci Store to version 2.0.0-beta3 across CLI configs and Earthfile. Improved download process to handle jar packaged in a zip file, adding extraction, file relocation, and cleanup steps. Adjusted error handling to handle null ClusterInfo and refined logic for jar-specific downloads.
@satran004 satran004 requested a review from Copilot July 16, 2025 16:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR upgrades Yaci Store to version 2.0.0-beta3 and adapts the download process to handle a new distribution format where the jar file is packaged within a zip file. The changes improve error handling for cluster operations and refine the download logic.

Key changes:

  • Updated Yaci Store version from 2.0.0-beta2 to 2.0.0-beta3 across configuration files
  • Modified jar download process to extract from zip file, including file extraction, relocation, and cleanup
  • Enhanced error handling in LocalPeerService to handle null ClusterInfo cases

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
applications/cli/config/download.properties Updated Yaci Store version numbers to 2.0.0-beta3
applications/cli/Earthfile Updated STORE_NATIVE_BRANCH to release/2.0.0-beta3
applications/cli/src/main/java/com/bloxbean/cardano/yacicli/commands/general/DownloadCommand.java Removed yaci-store-jar from "all" component download logic
applications/cli/src/main/java/com/bloxbean/cardano/yacicli/commands/common/DownloadService.java Added zip extraction logic for yaci-store jar download and updated download URL
applications/cli/src/main/java/com/bloxbean/cardano/yacicli/localcluster/peer/LocalPeerService.java Enhanced error handling to catch all exceptions and handle null ClusterInfo

clusterInfo = clusterInfoService.getClusterInfo(clusterName);
} catch (IOException e) {
writeLn(error("Unable to get cluster info for " + clusterName + ": " + e.getMessage()));
} catch (Exception e) {
Copy link

Copilot AI Jul 16, 2025

Choose a reason for hiding this comment

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

The original error message was removed when changing from IOException to Exception. This makes debugging harder as errors are now silently ignored. Consider logging the exception or providing some indication of what went wrong.

Suggested change
} catch (Exception e) {
} catch (Exception e) {
log.error("Error retrieving cluster info for cluster: " + clusterName, e);

Copilot uses AI. Check for mistakes.
satran004 and others added 10 commits July 17, 2025 11:53
Enabled `adapot` and `governance-aggr` features in application properties. Added `PUBLIC_INDEXER_CLIENT_BASE_URL` for client-side usage to improve environmental variable flexibility. Updated `NetworkInfo.svelte` to prioritize the client-specific base URL.
Introduced support for configuring a stake ratio factor in multi-node cluster setups, improving flexibility in testing rollback scenarios. Adjusted stake amount allocation logic, updated CLI options, and ensured proper handling in related services.
Introduce a new `/devnet/tip` API to fetch the current tips for all nodes, supporting multi-node setups. The response includes block number, slot, and hash for each node and indicates if multi-node mode is enabled. This enhances visibility into the cluster's state.
…mmands/common/DownloadService.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…mmands/common/DownloadService.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…mmands/common/DownloadService.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@satran004 satran004 changed the title Update Yaci Store version and fix yaci-store jar download handling Update Yaci Store version, fix yaci-store jar download handling, rollback enhancements Jul 18, 2025
@satran004 satran004 merged commit 0407ad1 into main Jul 18, 2025
2 checks passed
@satran004 satran004 deleted the yaci-2.0.0-beta3 branch July 18, 2025 05:03
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