-
Notifications
You must be signed in to change notification settings - Fork 3.9k
op-challenger: Integrate super node trace provider #18668
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
base: develop
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## develop #18668 +/- ##
===========================================
- Coverage 73.54% 66.58% -6.96%
===========================================
Files 189 55 -134
Lines 11244 4031 -7213
===========================================
- Hits 8269 2684 -5585
+ Misses 2831 1203 -1628
Partials 144 144
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
c6d873e to
d04c868
Compare
d04c868 to
88c74ff
Compare
Add a config option to switch to super node.
Interface values are only nil if the type and value are nil - in our case the type is always non-nil so superNodeProvider == nil is always false causing panics.
88c74ff to
16cb91b
Compare
| Usage: "Provider URL for supervisor RPC", | ||
| EnvVars: prefixEnvVars("SUPERVISOR_RPC"), | ||
| SuperRpcFlag = &cli.StringFlag{ | ||
| Name: "super-rpc", |
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.
nit: Although super-rpc here refers to both supervisor and supernode, we might as well change this now to supernode-rpc since that's what we'll be using in the end. Using supernode-rpc will be confusing only to humans outside of proofs, but I expect we'd have fully migrated to using op-supernode for anyone else to care.
Description
Integrate the super node trace provider into op-challenger. Since we plan to remove op-supervisor support as soon as all the tests are migrated, this is setup to replace it with a simple config toggle to choose between supervisor and super node. That requires significantly fewer changes to the config/cli validation code which would just be thrown out again when removing op-supervisor support. If needed we can add a hidden CLI flag to set the toggle as well, but there's a pretty good chance the supervisor tests can be updated without needing it.
There's still some places that create a supervisor client and trace provider directly like in op-e2e and vm runner. We'll need to switch them over in follow up PRs.
Metadata
#18524