[WIP] test: use ev-reth pr-106 image to validate reth v1.10.1 upgrade#3066
[WIP] test: use ev-reth pr-106 image to validate reth v1.10.1 upgrade#3066
Conversation
Summary of ChangesHello @chatton, 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 aims to validate the system's end-to-end tests against a specific version of Reth, namely v1.10.1. This is achieved by modifying the test setup to pull a pre-built Docker image of Reth identified by the 'pr-106' tag, ensuring that existing functionalities remain stable with the updated Reth version. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
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
|
|
Claude finished @chatton's task in 1m 55s —— View job Code Review CompleteTasks
SummaryThis PR adds Detailed Review✅ Positive Observations
|
| Criteria | Rating | Notes |
|---|---|---|
| Correctness | ✅ Good | Code is syntactically correct and follows the builder pattern properly |
| Architecture | Hardcoded values in helpers reduce flexibility; consider configuration layer | |
| Testing | Changes enable validation but lack fallback/error handling for missing images | |
| Documentation | ❌ Poor | No comments explaining the change or temporary nature |
| Maintainability | Duplication of hardcoded tag across files; no centralized version management | |
| Security | ✅ Good | No security concerns with image tag specification |
| Resilience | No handling for missing/unavailable image tags |
Action Items
Before merging, please address:
-
Clarify Intent: Is this a temporary validation change or permanent upgrade?
-
Choose Strategy:
- If Temporary: Use environment variable override approach [Fix this →]
- If Permanent: Update to stable version tag and add documentation [Fix this →]
-
Add Documentation: Include inline comments explaining the reth version and rationale
-
Verify Image Availability: Confirm the image is accessible in all test environments
-
Consider Centralization: Extract the tag to a shared constant if this pattern will be used long-term
Verdict
Conditional Approval: The code changes are technically correct and achieve the stated goal of validation. However, the approach needs refinement before merging to ensure maintainability and clarity.
The main decision point is whether this is temporary validation code (use env var) or a permanent upgrade (use stable tag + docs).
|
The latest Buf updates on your PR. Results from workflow CI / buf-check (pull_request).
|
There was a problem hiding this comment.
Code Review
This pull request updates the E2E tests to use a specific Reth image tag (pr-106) for validation purposes. My review focuses on the maintainability implications of this change. While using a specific tag is fine for a work-in-progress change, I've added comments to highlight that these hardcoded tags should be removed or made configurable before merging. This will prevent the test suite from depending on temporary build artifacts and ensure long-term stability.
| dockerCli, dockerNetID := getTestScopedDockerSetup(t) | ||
|
|
||
| n, err := reth.NewNodeBuilderWithTestName(t, fmt.Sprintf("%s-%s", t.Name(), randomString(6))). | ||
| WithTag("pr-106"). |
There was a problem hiding this comment.
Hardcoding the image tag pr-106 makes the test suite dependent on a temporary build artifact. Since this PR is a work-in-progress for testing, this is understandable, but this line should be removed before merging. For future flexibility, consider making the tag configurable via an environment variable, a pattern seen elsewhere in the test suite.
| func (s *DockerTestSuite) SetupRethNode(ctx context.Context, name string) RethSetupConfig { | ||
| rethNode, err := reth.NewNodeBuilder(s.T()). | ||
| WithName(name). | ||
| WithTag("pr-106"). |
There was a problem hiding this comment.
This hardcoded tag pr-106 appears to be for temporary testing. Please consider making this configurable via an environment variable, similar to how getEvNodeImage handles image tags. This will improve maintainability and prevent pinning tests to a temporary build. This line should be removed before merging if the custom tag is not needed for the default test run.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3066 +/- ##
==========================================
- Coverage 61.92% 61.89% -0.04%
==========================================
Files 111 111
Lines 11113 11113
==========================================
- Hits 6882 6878 -4
- Misses 3492 3496 +4
Partials 739 739
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Overview
This PR is bumping the E2E tests to use the version of reth built from 1.10.1 to verify they all pass. evstack/ev-reth#106