-
Notifications
You must be signed in to change notification settings - Fork 624
refactor: remove unused check #1685
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
WalkthroughThe changes remove hard fork name validation and associated constants from various prover task logic files, update configuration files and tests to use the "feynman" fork instead of "euclidV2," and expand the verifier configuration to support multiple forks. No exported entity signatures are altered. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Coordinator
participant Verifier
Client->>Coordinator: Request prover task (with hardForkName)
Coordinator->>Verifier: Pass hardForkName (no validation)
Verifier-->>Coordinator: Verifier processes task
Coordinator-->>Client: Returns task result
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1685 +/- ##
===========================================
+ Coverage 39.83% 39.92% +0.09%
===========================================
Files 236 236
Lines 18829 18814 -15
===========================================
+ Hits 7500 7512 +12
+ Misses 10594 10563 -31
- Partials 735 739 +4
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:
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
coordinator/conf/config.json (1)
11-20
: Consider deduplicating identical verifier asset pathsYou now list two fork entries pointing to the same
"assets"
directory.
If the directory contains fork-specific proving keys, having both forks share it is fine; otherwise you risk key collisions.
Either split the assets into fork-scoped sub-folders or document the convention to avoid future confusion.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
common/types/message/message.go
(0 hunks)coordinator/cmd/api/app/mock_app.go
(1 hunks)coordinator/conf/config.json
(1 hunks)coordinator/internal/config/config_test.go
(1 hunks)coordinator/internal/logic/provertask/batch_prover_task.go
(0 hunks)coordinator/internal/logic/provertask/bundle_prover_task.go
(0 hunks)coordinator/internal/logic/provertask/chunk_prover_task.go
(0 hunks)
💤 Files with no reviewable changes (4)
- common/types/message/message.go
- coordinator/internal/logic/provertask/chunk_prover_task.go
- coordinator/internal/logic/provertask/bundle_prover_task.go
- coordinator/internal/logic/provertask/batch_prover_task.go
⏰ Context from checks skipped due to timeout of 90000ms (3)
- GitHub Check: tests
- GitHub Check: tests
- GitHub Check: tests
🔇 Additional comments (2)
coordinator/internal/config/config_test.go (1)
24-27
: Add a test variant that exercises multiple‐fork configsThe updated template now validates a single
"feynman"
fork, which is fine.
Given that the productionconf/config.json
supports an array with multiple fork entries, consider adding an extra sub-test that feeds a template containing ≥2 verifiers (e.g."euclidV2"
+"feynman"
). That will guard against future regressions in the array-handling logic ofNewConfig
.coordinator/cmd/api/app/mock_app.go (1)
93-99
: Ensure non-empty AssetsPath for verifier initializationWe didn’t find any explicit
len(AssetsPath)>0
guard, but in
coordinator/internal/logic/verifier/verifier.go
(lines 139–144) the code does:vkFile := path.Join(cfg.AssetsPath, vkFileName) f, err := os.Open(filepath.Clean(vkFile)) if err != nil { return err }With
AssetsPath == ""
, this opensvkFileName
in the CWD, which will likely fail at runtime when loading verification keys. Both your mock inmock_app.go
and the API tests use an empty path:• coordinator/cmd/api/app/mock_app.go:95
• coordinator/test/api_test.go:90Please confirm that the coordinator API binary can handle an empty
assets_path
(e.g. keys placed in CWD). Otherwise restore a valid assets path in tests, for example:- AssetsPath: "", + AssetsPath: "assets", // or a temp dir containing the vk files
Purpose or design rationale of this PR
Describe your change. Make sure to answer these three questions: What does this PR do? Why does it do it? How does it do it?
PR title
Your PR title must follow conventional commits (as we are doing squash merge for each PR), so it must start with one of the following types:
Deployment tag versioning
Has
tag
incommon/version.go
been updated or have you addedbump-version
label to this PR?Breaking change label
Does this PR have the
breaking-change
label?Summary by CodeRabbit
New Features
Bug Fixes
Chores