-
Notifications
You must be signed in to change notification settings - Fork 14
Update Yaci Store version, fix yaci-store jar download handling, rollback enhancements #130
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
Conversation
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.
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.
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 |
...ications/cli/src/main/java/com/bloxbean/cardano/yacicli/commands/common/DownloadService.java
Outdated
Show resolved
Hide resolved
...ications/cli/src/main/java/com/bloxbean/cardano/yacicli/commands/common/DownloadService.java
Outdated
Show resolved
Hide resolved
| clusterInfo = clusterInfoService.getClusterInfo(clusterName); | ||
| } catch (IOException e) { | ||
| writeLn(error("Unable to get cluster info for " + clusterName + ": " + e.getMessage())); | ||
| } catch (Exception e) { |
Copilot
AI
Jul 16, 2025
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.
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.
| } catch (Exception e) { | |
| } catch (Exception e) { | |
| log.error("Error retrieving cluster info for cluster: " + clusterName, e); |
...ications/cli/src/main/java/com/bloxbean/cardano/yacicli/commands/common/DownloadService.java
Outdated
Show resolved
Hide resolved
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>
CI Updates:
20.04to22.04in.github/workflows/dev-release-cli.yml,.github/workflows/release-cli.yml, and.github/workflows/release-viewer.ymlto ensure compatibility with newer environments. [1] [2] [3] [4]Yaci Store Updates:
2.0.0-beta2to2.0.0-beta3inapplications/cli/Earthfileandapplications/cli/config/download.properties. [1] [2]DownloadServiceto handle downloading and extracting the Yaci Store jar from a zip file instead of directly downloading the jar file. [1] [2]Store Feature Enhancements:
store.adapot.enabled,store.governance-aggr.enabled, and their corresponding APIs inapplications/cli/docker/store-application.properties.Multi-Node Cluster Support:
ClusterCommands,ClusterInfo,ClusterService,ClusterStartService, andClusterAdminController. [1] [2] [3] [4] [5]Code Enhancements:
StandardCopyOptionimport and refactoring download logic inDownloadService. [1] [2]ClusterStartService. [1] [2]