Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Setup wallets for singularity #76

Merged
merged 2 commits into from
Aug 30, 2023
Merged

Conversation

hannahhoward
Copy link
Contributor

Goals

Implements #54

Implementations

@masih I am curious to see how you do this for Jiffy when you get to your integration test. It doesn't feel great that this all lives inside the blob store but I don't see another way to do it.

For now:

  • pass the wallet to the Singularity blob store
  • insure wallet is imported to singularity and assigned to the dataset

Copy link
Member

@masih masih left a comment

Choose a reason for hiding this comment

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

LGTM other than the failing CI

singularityClient client.Client
}

func NewSingularityStore(dir string, singularityClient client.Client) *SingularityStore {
func NewSingularityStore(dir string, wallet *wallet.Wallet, singularityClient client.Client) *SingularityStore {
Copy link
Member

Choose a reason for hiding this comment

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

Alternatives I can think of are:

  • Move all the config into a package and pass that around
    • pro: simpler
    • con: not all stores have the same config, meaning we end up with irrelevant config for some stores.
  • Take a storeCreator as an option in Motion and let store define its own options.
    • pro: each store has full control over its options
    • con: more boilerplate.

@masih
Copy link
Member

masih commented Aug 29, 2023

how you do this for Jiffy

Jiffy implements its own motion store, with bespoke options. How I see it work is that it would then create its own executable, with a "motion compatible HTTP API". This means the point of compatibility between Jiffy and Motion is the Motion API spec, not Motion configuration.

@hannahhoward hannahhoward force-pushed the feat/singularity-wallets branch from 3e4b4c7 to 784866a Compare August 30, 2023 00:32
@hannahhoward hannahhoward merged commit 832f907 into main Aug 30, 2023
@hannahhoward hannahhoward deleted the feat/singularity-wallets branch August 30, 2023 01:00
hannahhoward added a commit that referenced this pull request Aug 30, 2023
# Goals

Implement #57 

# Implementation

- extract replication config to seperate object so we can pass it to
singularity blob store
- on initialization make sure there is a schedule for each provider in
singularity
- builds on #76
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants