Skip to content

Add DependencyManager Mithril Aggregator #131

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

Merged
merged 14 commits into from
Apr 22, 2022

Conversation

jpraynaud
Copy link
Member

@jpraynaud jpraynaud commented Apr 20, 2022

This a first version of a dependency manager that is accessed by the handlers of the http server of the aggregator

@jpraynaud jpraynaud changed the title Add DependencyManager first version Add DependencyManager first version 🛠️ Apr 20, 2022
@jpraynaud jpraynaud marked this pull request as draft April 20, 2022 15:08
@github-actions
Copy link

github-actions bot commented Apr 20, 2022

Unit Test Results

1 files  ±0  1 suites  ±0   1s ⏱️ -1s
5 tests ±0  5 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 2902f93. ± Comparison against base commit 87f379d.

♻️ This comment has been updated with latest results.

@jpraynaud jpraynaud force-pushed the ensemble/120-dependency-injection branch 2 times, most recently from 4827cc0 to 7a18e1f Compare April 21, 2022 09:45
* Implement a dependency manager
* Add a snashot storer as a dependency
* Use snapshot storer dependency in server routes
@jpraynaud jpraynaud force-pushed the ensemble/120-dependency-injection branch from 7a18e1f to ee52d70 Compare April 21, 2022 09:52
@jpraynaud jpraynaud changed the title Add DependencyManager first version 🛠️ Add DependencyManager Mithril Aggregator Apr 21, 2022
@jpraynaud jpraynaud marked this pull request as ready for review April 21, 2022 13:44
@jpraynaud jpraynaud requested review from Alenar and a user April 21, 2022 13:47
jpraynaud and others added 4 commits April 21, 2022 19:35
* Allow configuraton from json file or by env vars
* Example launch when no config file: 'NETWORK=testnet URL_SNAPSHOT_MANIFEST=https://storage.googleapis.com/cardano-testnet/snapshots.json ./mithril-aggregator'
@jpraynaud
Copy link
Member Author

@abailly-iohk this new version embeds the config crates we have screened this afternoon.

We can configure the node with env vars now and run it with:
NETWORK=testnet URL_SNAPSHOT_MANIFEST=https://storage.googleapis.com/cardano-testnet/snapshots.json ./mithril-aggregator

How can we set these env vars in the end to end test of the CI? 🤔

@ghost
Copy link

ghost commented Apr 21, 2022

There are various options, we could pass them to the process running cabal test for example, as a CI configuration. That would probably be the simplest and most robust option.

@jpraynaud
Copy link
Member Author

Great, thanks 🙂

@jpraynaud jpraynaud merged commit 6a3b58b into main Apr 22, 2022
@jpraynaud jpraynaud deleted the ensemble/120-dependency-injection branch April 22, 2022 12:47
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