-
Notifications
You must be signed in to change notification settings - Fork 617
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
feat(coordinator): add version check for sdk provers #1551
Conversation
Caution Review failedThe pull request is closed. WalkthroughThe changes introduce new functionality for handling SDK versions in the Changes
Possibly related PRs
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
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: 2
🧹 Outside diff range and nitpick comments (1)
common/version/prover_version.go (1)
30-34
: Add tracking and detailed documentation for future SDK version checks.The current implementation is a placeholder that accepts all SDK versions. To ensure this doesn't remain as technical debt:
- Document the expected format of SDK versions
- Add a TODO with specific checks that will be implemented
- Create a tracking issue for the implementation
Would you like me to help create a GitHub issue to track the implementation of SDK version validation?
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
- common/version/prover_version.go (3 hunks)
- common/version/version.go (1 hunks)
✅ Files skipped from review due to trivial changes (1)
- common/version/version.go
🔇 Additional comments (1)
common/version/prover_version.go (1)
12-14
: Verify the implications of accepting all SDK versions.While the implementation is clean, accepting all SDK versions without validation could potentially lead to compatibility issues. Consider adding validation logic or logging when SDK versions are encountered to track usage patterns.
Consider adding structured logging to track SDK version usage:
if strings.HasPrefix(proverVersion, "sdk") { + log.Info("Processing SDK prover version", "version", proverVersion) return CheckProverSDKVersion(proverVersion) }
Purpose or design rationale of this PR
Currently the sdk-provers are hard to get the "repo" commit hash and hard to follow the version check we are using in coordinator now: see https://github.com/scroll-tech/scroll-proving-sdk/blob/haoyu/sindri_tokio/src/utils.rs#L5-L9, we have to hardcode a version to bypass the version check for now.
This PR add a dedicated version check mechanism for sdk-prover. And it simply returns true for now.
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
These changes improve the application's capability to manage SDK versions while ensuring existing functionalities remain intact.