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

op-program: Support running in offline mode. #5466

Merged
merged 1 commit into from
Apr 18, 2023
Merged

Conversation

ajsutton
Copy link
Contributor

@ajsutton ajsutton commented Apr 17, 2023

Description

Update the setup code for op-program to support running in offline mode. A --datadir CLI arg is added to specify the directory to use to store preimage data. If the --l1 and --l2 options are specified the preimages are fetched, otherwise only the pre-populated preimages are used to replay the derivation.

In-memory kv store is still supported in fetching mode if no --datadir is supplied because it makes testing easier (and the host part of op-program is essentially just a test harness).

Tests

Tests for the new CLI arg and config option. Will need to add e2e tests to cover the setup changes.

Additional context

Builds on #5463, #5465 and #5452

Metadata

@ajsutton ajsutton requested a review from a team as a code owner April 17, 2023 01:42
@ajsutton ajsutton requested review from trianglesphere and removed request for a team April 17, 2023 01:42
@changeset-bot
Copy link

changeset-bot bot commented Apr 17, 2023

⚠️ No Changeset found

Latest commit: 3dfc570

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mergify
Copy link
Contributor

mergify bot commented Apr 17, 2023

Hey @ajsutton! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Apr 17, 2023
@ajsutton ajsutton force-pushed the aj/fpp-store-fetched-data branch from 09a1965 to 4739b0f Compare April 17, 2023 20:09
@ajsutton ajsutton force-pushed the aj/fpp-disk-store branch from 214cf01 to a12652d Compare April 17, 2023 20:10
@mergify mergify bot removed the conflict label Apr 17, 2023
@mergify
Copy link
Contributor

mergify bot commented Apr 17, 2023

Hey @ajsutton! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Apr 17, 2023
Base automatically changed from aj/fpp-store-fetched-data to develop April 17, 2023 21:31
Copy link
Contributor

@Inphi Inphi left a comment

Choose a reason for hiding this comment

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

LGTM

op-program/host/cmd/main.go Outdated Show resolved Hide resolved
@ajsutton ajsutton force-pushed the aj/fpp-disk-store branch from a12652d to 69cb291 Compare April 17, 2023 22:51
@netlify
Copy link

netlify bot commented Apr 17, 2023

Deploy Preview for opstack-docs canceled.

Name Link
🔨 Latest commit 3dfc570
🔍 Latest deploy log https://app.netlify.com/sites/opstack-docs/deploys/643dd876cb50f300087bb91d

@mergify mergify bot removed the conflict label Apr 17, 2023
@ajsutton ajsutton force-pushed the aj/fpp-disk-store branch from 69cb291 to 3dfc570 Compare April 17, 2023 23:38
@ajsutton ajsutton requested a review from Inphi April 18, 2023 00:30
@ajsutton ajsutton merged commit a01d02c into develop Apr 18, 2023
@ajsutton ajsutton deleted the aj/fpp-disk-store branch April 18, 2023 20:50
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.

2 participants