Skip to content
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(op-supervisor): add op-supervisor component #110

Merged
merged 26 commits into from
Jan 6, 2025

Conversation

edobry
Copy link
Contributor

@edobry edobry commented Dec 18, 2024

Description

This PR adds the op-supervisor component to the package, along with a new interop configuration section. It also wires op-supervisor up to op-node and op-geth.

Example configuration

The configuration options for the interop section can be set as follows:

optimism_package:
  interop:
    enabled: true
    supervisor_params:
      image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-supervisor:e0a34554c72d56808d3db52da3b87d36ab7ed2f0
      dependency_set: |
        {
          "dependencies": {
            "2151908": {
              "chainIndex": "2151908",
              "activationTime": 0,
              "historyMinTime": 0
            }
          }
        }
      extra_params:
        - --test-param

# note that you must also set an interop_time_offset
# on the chains participating in the interoperability set
  chains:
    - participants:
      - el_type: op-geth
         # ...
      network_params:
        network: "kurtosis"
        # ...
        interop_time_offset: 0

Successful logs

After executing kurtosis run, the op-supervisor service printed the following log messages, indicating a successful boot:

[op-supervisor] t=2024-12-19T16:16:39+0000 lvl=info msg="Initializing Supervisor"
[op-supervisor] t=2024-12-19T16:16:39+0000 lvl=info msg="Metrics disabled"
[op-supervisor] t=2024-12-19T16:16:39+0000 lvl=info msg="Opening entry database" path=/db/2151908/log.db
[op-supervisor] t=2024-12-19T16:16:39+0000 lvl=info msg="Opening entry database" path=/db/2151908/local_safe.db
[op-supervisor] t=2024-12-19T16:16:39+0000 lvl=info msg="Opening entry database" path=/db/2151908/cross_safe.db
[op-supervisor] t=2024-12-19T16:16:39+0000 lvl=info msg="attaching RPC to chain processor" rpc=http://172.16.0.22:8545
[op-supervisor] t=2024-12-19T16:16:39+0000 lvl=info msg="Admin RPC enabled"
[op-supervisor] t=2024-12-19T16:16:39+0000 lvl=info msg="Starting JSON-RPC server"
[op-supervisor] t=2024-12-19T16:16:39+0000 lvl=info msg="Resuming, but found no DB contents" chain=2151908
[op-supervisor] t=2024-12-19T16:16:39+0000 lvl=info msg="JSON-RPC Server started" endpoint=[::]:8545
[op-supervisor] t=2024-12-19T16:16:44+0000 lvl=info msg="Updated local unsafe" chain=2151908 block=0x39cafdf728927312683427d088de806fc82f8726f7ec96defc25765da5521fb7:0
[op-supervisor] t=2024-12-19T16:16:44+0000 lvl=info msg="Indexed block events" chain=2151908 block=0x39cafdf728927312683427d088de806fc82f8726f7ec96defc25765da5521fb7:0 txs=0
[op-supervisor] t=2024-12-19T16:16:49+0000 lvl=info msg="Updated local unsafe" chain=2151908 block=0x0228dfb30ecc00f572e5b938c1c4f30d922e3669dfc9e0f93e2a9ebb46b9b1af:1
[op-supervisor] t=2024-12-19T16:16:49+0000 lvl=info msg="Indexed block events" chain=2151908 block=0x0228dfb30ecc00f572e5b938c1c4f30d922e3669dfc9e0f93e2a9ebb46b9b1af:1 txs=1
[op-supervisor] t=2024-12-19T16:16:54+0000 lvl=info msg="Updated local unsafe" chain=2151908 block=0xefe0bdc8d8d53472bcdae7a0a79a5cba0b1f98be0affd1705b3c43b3b27b492f:2
[op-supervisor] t=2024-12-19T16:16:54+0000 lvl=info msg="Indexed block events" chain=2151908 block=0xefe0bdc8d8d53472bcdae7a0a79a5cba0b1f98be0affd1705b3c43b3b27b492f:2 txs=1
[op-supervisor] t=2024-12-19T16:16:59+0000 lvl=info msg="Updated local unsafe" chain=2151908 block=0x77e4fe98ba86ffcbfa5df53154af56a6933ae688373c71543bba1d214eb40cec:3
[op-supervisor] t=2024-12-19T16:16:59+0000 lvl=info msg="Indexed block events" chain=2151908 block=0x77e4fe98ba86ffcbfa5df53154af56a6933ae688373c71543bba1d214eb40cec:3 txs=1

Metadata

This PR was created in support of: https://github.com/ethereum-optimism/platforms-team/issues/520

@edobry edobry force-pushed the edobry/op-supervisor branch from 27bf7f6 to 07824fd Compare December 19, 2024 19:37
@edobry edobry marked this pull request as ready for review December 19, 2024 19:45
Copy link
Collaborator

@mslipper mslipper left a comment

Choose a reason for hiding this comment

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

Generally looks good but there are some (what appear to be) extraneous changes in here. Can you comment on what those changes are?

src/package_io/input_parser.star Outdated Show resolved Hide resolved
src/package_io/input_parser.star Outdated Show resolved Hide resolved
main.star Outdated Show resolved Hide resolved
@edobry edobry requested a review from mslipper December 20, 2024 19:02
@edobry edobry force-pushed the edobry/op-supervisor branch from df0b814 to a5c62ef Compare December 20, 2024 19:10
@edobry edobry force-pushed the edobry/op-supervisor branch from ecea25f to 7c1010e Compare January 3, 2025 19:19
@mslipper mslipper enabled auto-merge (squash) January 3, 2025 21:38
auto-merge was automatically disabled January 6, 2025 17:49

Head branch was pushed to by a user without write access

@zhwrd zhwrd enabled auto-merge (squash) January 6, 2025 17:51
@zhwrd zhwrd merged commit 99fe41d into ethpandaops:main Jan 6, 2025
5 checks passed
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.

3 participants