YNU-424: fix label in the metrics & reconfigure blockchains and assets#404
YNU-424: fix label in the metrics & reconfigure blockchains and assets#404
Conversation
Summary of ChangesHello @philanton, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new configuration for Ethereum (ETH) within the sandbox environment's asset definitions. The primary goal is to enable the representation of ETH as an off-chain-only asset, facilitating testing or simulation scenarios that do not require interaction with a live blockchain. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughConfiguration updates across multiple environments disable specific blockchain networks (flow in production, xrpl_evm_testnet in sandbox), remove debug logging environment variables from Helm chart deployments across prod/sandbox/uat, update Prometheus metrics label names from "network" to "blockchainID", and add Ethereum asset configuration. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Code Review
This pull request adds an off-chain Ethereum asset to the sandbox configuration. My review identifies a critical issue: the token address provided for Ethereum is invalid as it contains non-hexadecimal characters. This will cause a failure during application startup when asset configurations are loaded. I've suggested replacing the invalid address with a conventional sentinel address used for native assets.
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
clearnode/chart/config/sandbox/assets.yaml (1)
20-21: Inconsistent YAML formatting: name should be quoted for consistency.The existing asset "ytest.USD" uses quotes around the name, but the new Ethereum entry does not. This creates style inconsistency in the configuration file.
- - name: Ethereum + - name: "Ethereum" symbol: eth
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
clearnode/chart/config/sandbox/assets.yaml(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Build and Publish (Clearnode)
- GitHub Check: Test (Integration) / Test Integration
- GitHub Check: Analyze (go)
🔇 Additional comments (2)
clearnode/chart/config/sandbox/assets.yaml (2)
21-21: Verify symbol naming pattern consistency.The existing asset uses a dotted-lowercase pattern (
ytest.usd), while the new entry uses plain lowercase (eth). Consider whether the symbol should follow the existing pattern for consistency (e.g.,ethereum.ethor similar), or if a flatter naming convention is intentional for off-chain-only assets.
24-24: Clarify the placeholder address for off-chain asset.The address
0x0ethethethethethethethethethethethethethappears to be a placeholder rather than a valid hex address (it contains letters beyond 'f'). Since this is an off-chain-only asset, confirm that this placeholder is intentional. If it should represent a null/zero address instead, consider using the standard zero address format0x0000000000000000000000000000000000000000.
cbd6272 to
3249f09
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.github/workflows/temp-push.yml (1)
32-35: Consider adding semantic version or "latest" tags alongside the short SHA.The workflow currently tags images only with the short commit SHA (e.g.,
ghcr.io/repo/clearnode:abc1234). For improved discoverability and easier rollback, consider also tagging with:
- A semantic version (if using releases)
latesttag (for the most recent build on this branch)- Branch name (e.g.,
feat-off-chain-eth)This improves image management and deployment workflows.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/temp-push.yml(1 hunks)
🧰 Additional context used
🪛 actionlint (1.7.8)
.github/workflows/temp-push.yml
19-19: the runner of "docker/login-action@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
30-30: the runner of "docker/build-push-action@v4" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🔇 Additional comments (1)
.github/workflows/temp-push.yml (1)
1-9: Clarify the intended lifespan of this temporary workflow.The workflow is explicitly named "Temp Push on PR branch" and is hardcoded to trigger only on the
feat/off-chain-ethbranch. Before merging:
- Confirm this workflow should be committed to the main branch (vs. being discarded after the PR).
- If it's intended to be permanent, rename to reflect its actual purpose and consider generalizing the branch trigger.
- If it's temporary for this feature branch, clarify the cleanup strategy post-merge.
This is relevant to the PR's build/deployment strategy and should be explicitly documented.
Summary by CodeRabbit
Release Notes