Skip to content

Conversation

@julienrbrt
Copy link
Member

Closes: #269

This command is really complex and could be a lot simplified. This should definitely still be done.
I've simplified a bunch as suggested here: #230 (comment) but still more is left to be done.

@julienrbrt julienrbrt requested a review from a team as a code owner November 10, 2025 11:17
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @julienrbrt, 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 significantly refactors the attester command, transitioning it from an independent executable to an integral part of the ev-abci server. This change streamlines the command's architecture, simplifies its configuration, and enhances its maintainability by consolidating it within the main application's command-line interface. The refactoring also includes a general cleanup of the codebase and the addition of dedicated tests and updated documentation.

Highlights

  • Refactor Attester Command: The standalone attester command has been refactored and integrated into the ev-abci server as a cobra.Command, moving its source code from attester/main.go to server/attester_cmd.go.
  • Simplified Configuration: Flag parsing and client context creation for the attester command have been simplified by leveraging client.GetClientContextFromCmd, reducing boilerplate and improving consistency with other ev-abci commands.
  • Codebase Cleanup: Redundant imports, comments, and helper functions (like createClientContext) have been removed, making the attester logic more concise and easier to maintain.
  • Enhanced Documentation and Testing: New unit tests (server/attester_cmd_test.go) have been added for key attester functionalities, and comprehensive documentation (server/docs/attester_cmd.md) is now available for the integrated command.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request successfully refactors the standalone attester into a more integrated command within the ev-abci server, which is a great improvement. The code is simplified by leveraging the existing client context. However, I've identified a critical issue where the Bech32 prefix configuration is missing, which will prevent the command from working correctly. The documentation for the new command is also out of sync with the implementation, which could confuse users. Additionally, I've provided several suggestions to enhance maintainability and robustness, such as improving state management, avoiding hardcoded values, and using more idiomatic Go.

Base automatically changed from julien/bump-v9 to main November 10, 2025 13:28
Copy link
Contributor

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

utACK

@julienrbrt julienrbrt enabled auto-merge (squash) November 11, 2025 15:59
@julienrbrt julienrbrt disabled auto-merge November 11, 2025 16:17
@julienrbrt julienrbrt merged commit d93ea39 into main Nov 11, 2025
13 checks passed
@julienrbrt julienrbrt deleted the julien/extract-attester branch November 11, 2025 16:17
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.

Attester: move attester command to cobra

3 participants