-
Notifications
You must be signed in to change notification settings - Fork 217
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
expose an executable 'shelley-test-cluster' which starts an integration test cluster with faucets #2178
expose an executable 'shelley-test-cluster' which starts an integration test cluster with faucets #2178
Conversation
6239764
to
3c3efd7
Compare
-- | ||
-- - (Shelley) Contains only small coins (but greater than the minUTxOValue) | ||
-- | ||
-- [ "either" , "flip" , "maple" , "shift" , "dismiss" |
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.
Nice docs, but feels like it might get out of date very easily? Also is a doc comment actually the right place for this information?
Maybe we could add a new shelley-test-cluster mnemonics
, and change shelleyIntegrationTestFunds
to also include a String
description for each wallet?
The output of such a command would be huge. We could add some logic to protect against it, or maybe just something like grep:
E.g.
$ shelley-test-cluster query-mnemonic "small coins"
shelley/special/seq/Contains only small coins (but greater than the minUTxOValue) 1
either flip maple shift dismiss bridge sweet reveal green tornado need patient wall stamp pass
shelley/special/seq/Contains only small coins (but greater than the minUTxOValue) 2
reveal sweet green tornado need patient wall stamp pass either flip maple shift dismiss bridge
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.
Nice docs, but feels like it might get out of date very easily? Also is a doc comment actually the right place for this information?
I wondered the same and actually considered the same idea you're proposing here. Although arguably:
- we haven't changed those mnemonics in several months and have no reason to change them in the upcoming future.
- that is for now, mostly an internal tool, so if this end up outdated, we'll most likely notice it quite quickly.
So, the size of the problem seems not large enough to spend effort on making this better 😅 ... arguably.
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.
I mean, the same argument applies for the pools configurations and even the cluster setup (what if we add a new node tomorrow? the doc becomes outdated). All this doc describes implementation details, so by its very nature, it's fragile.
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.
I remember having to re-regenerate and update faucet mnemonics several for Shelley, which was not fun at all. With the HFC integration we finally got it much more automated.
I think just adding a command to output all mnemonics with a description, requiring manual | grep ""
piping, would have been really simple.
But sure, it's perhaps unlikely they'll change now. And perhaps still best to keep it comment, for now.
Btw, I wonder if this could be used for ADP-381 eventually.
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.
Perhaps ultimately, we can clean-up our integration tests setup to use that executable. Spawn it in a process and go ahead with the rest of the tests. Right now the integration setup is very complicated with contexts and mvars a bit everywhere waiting for stuff.
I can skim over again when rebased. But trying now I get:
seems 6 characters too long on macOS. Using |
a5f269a
to
99d5ecd
Compare
99d5ecd
to
0d2fcc7
Compare
bors merge |
2178: expose an executable 'shelley-test-cluster' which starts an integration test cluster with faucets r=KtorZ a=KtorZ # Issue Number <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - [ ] I have exposed our integration test setup in an executable. # Comments <!-- Additional comments or screenshots to attach if any --> @Anviking there's probably some clashes with what you're also doing with the logging, so happy to get the logging revision merged first and adjust that one. <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: IOHK <[email protected]>
@@ -1648,6 +1715,8 @@ instance ToText ClusterLog where | |||
MsgGenOperatorKeyPair dir -> | |||
"Generating stake pool operator key pair in " <> T.pack dir | |||
MsgCLI args -> T.pack $ unwords ("cardano-cli":args) | |||
MsgListenAddress addr -> | |||
"Wallet backend server listening on " <> T.pack (show addr) |
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.
I don't think this should be added.
For cardano-wallet:integration there is a separation between TestsLog
and ClusterLog
, where MsgListenAddress
would make sense in TestsLog
, but not ClusterLog
.
We could add a similar TestsLog
for this executable in a follow-up PR.
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.
Hmmm. Possibly. Although this one should really be in the application logs of the wallet.
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.
Unless someone wants needs this urgently, can we address at least #2178 (comment) first?
bors r- |
Canceled. |
Suggestion of direction:
|
f3d65b8
to
e99d875
Compare
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.
👍
bors r+ |
2178: expose an executable 'shelley-test-cluster' which starts an integration test cluster with faucets r=Anviking a=KtorZ # Issue Number <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> #2175 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - 9722d82 📍 **expose an executable 'shelley-test-cluster' which starts an integration test cluster with faucets** - 6eefd47 📍 **Let the shelley-test-cluster nix build be run from any directory** - 4c4d01e 📍 **Allow setting different LoggerName when configuring trace with 'withLogging'** - 571e67d 📍 **Add TestLog to shelley-test-cluster** - e99d875 📍 **Regenerate nix** # Comments <!-- Additional comments or screenshots to attach if any --> ~~@Anviking there's probably some clashes with what you're also doing with the logging, so happy to get the logging revision merged first and adjust that one.~~ <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: Johannes Lund <[email protected]> Co-authored-by: IOHK <[email protected]>
Canceled. |
8da9ccc
to
2342b8d
Compare
bors retry |
bors r- |
Canceled. |
…on test cluster with faucets
2342b8d
to
a7b441e
Compare
bors merge |
2178: expose an executable 'shelley-test-cluster' which starts an integration test cluster with faucets r=KtorZ a=KtorZ # Issue Number <!-- Put here a reference to the issue this PR relates to and which requirements it tackles --> #2175 # Overview <!-- Detail in a few bullet points the work accomplished in this PR --> - 9722d82 📍 **expose an executable 'shelley-test-cluster' which starts an integration test cluster with faucets** - 6eefd47 📍 **Let the shelley-test-cluster nix build be run from any directory** - 4c4d01e 📍 **Allow setting different LoggerName when configuring trace with 'withLogging'** - 571e67d 📍 **Add TestLog to shelley-test-cluster** - e99d875 📍 **Regenerate nix** # Comments <!-- Additional comments or screenshots to attach if any --> ~~@Anviking there's probably some clashes with what you're also doing with the logging, so happy to get the logging revision merged first and adjust that one.~~ <!-- Don't forget to: ✓ Self-review your changes to make sure nothing unexpected slipped through ✓ Assign yourself to the PR ✓ Assign one or several reviewer(s) ✓ Once created, link this PR to its corresponding ticket ✓ Assign the PR to a corresponding milestone ✓ Acknowledge any changes required to the Wiki --> Co-authored-by: KtorZ <[email protected]> Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: Johannes Lund <[email protected]> Co-authored-by: IOHK <[email protected]>
Canceled. |
Manually tweaked .nix file |
bors r+ |
Build succeeded: |
2235: Fix extra-source-files not containing files used by TH r=hasufell a=hasufell 2239: WIP: Bump version from 2020.9.30 to 2020.10.13 r=KtorZ a=jonathanknowles <!-- Short optional summary --> Compatible with [`[email protected]`](https://github.com/input-output-hk/jormungandr/releases/tag/v0.9.0) and [`[email protected]`](https://github.com/input-output-hk/cardano-node/releases/tag/1.21.1). ## New Features - Adds the ability for users to select their own SMASH servers for stakepool listings. (#2214) - Adds transaction expiry slots for pending transactions. (#1879) ## Improvements - Adds a 100-wallet scenario to the latency benchmark. (#2223) - Adds an executable `shelley-test-cluster` which starts an integration test cluster that includes faucets. (#2178) - Extends `isOurs` to return the derivation path of an address. (#2219) ## Resolved Issues - Make pool garbage collection handle an unknown current epoch. (#2203) - Fixes incorrect mainnet network parameters returned from API. (#2226) ## Known Issues **_This section is a work in progress._** - Wallet restoration status reported incorrectly on mainnet. ([ADP-483](https://jira.iohk.io/browse/ADP-483)) ## Documentation <!-- A snapshot of the documentation at the time of releasing. --> Cardano (cardano-node) | ITN (Jörmungandr) --- | --- [API Documentation](https://input-output-hk.github.io/cardano-wallet/api/v2020-10-13) | [API Documentation](https://input-output-hk.github.io/cardano-wallet/api/v2020-10-13) [CLI Manual](https://github.com/input-output-hk/cardano-wallet/wiki/Wallet-command-line-interface/f71ecb7ece3deaec5bf60f4a4beea1d3950e0d46) | [CLI Manual](https://github.com/input-output-hk/cardano-wallet/wiki/Wallet-command-line-interface-jormungandr/f71ecb7ece3deaec5bf60f4a4beea1d3950e0d46) [Docker Manual](https://github.com/input-output-hk/cardano-wallet/wiki/Docker/f71ecb7ece3deaec5bf60f4a4beea1d3950e0d46) | [Docker Manual](https://github.com/input-output-hk/cardano-wallet/wiki/Docker-jormungandr/f71ecb7ece3deaec5bf60f4a4beea1d3950e0d46) ## Installation Instructions ### Cardano (cardano-node) 1. Install [`[email protected]`](https://github.com/input-output-hk/cardano-node/releases/tag/1.21.1). 2. Download the provided `cardano-wallet` for your platform, and uncompress it in a directory that is on your `$PATH`, e.g. `/usr/local/bin`. Or `%PATH%` on Windows. 4. Start `cardano-wallet --help` and see available parameters. #### Docker Pull from DockerHub and verify the version matches 2020.10.13. ``` $ docker pull inputoutput/cardano-wallet:2020.10.13 $ docker run --rm inputoutput/cardano-wallet:2020.10.13 version ``` ### ITN (jormungandr) 1. Install [`[email protected]`](https://github.com/input-output-hk/jormungandr/releases/tag/v0.9.0). 2. Download the provided `cardano-wallet-jormungandr` for your platform, and uncompress it in a directory that is on your `$PATH`, e.g. `/usr/local/bin`. Or `%PATH%` on Windows. 3. (optional) Install the bash/zsh auto-completion script according to the [jormungandr cli manual](https://github.com/input-output-hk/cardano-wallet/wiki/Wallet-Command-Line-Interface/{{JORM_CLI_WIKI_COMMIT}}) 4. Start `cardano-wallet --help` and see available parameters. #### Docker Pull from DockerHub and verify the version matches 2020.10.13 ``` $ docker pull inputoutput/cardano-wallet:2020.10.13-jormungandr $ docker run --rm inputoutput/cardano-wallet:2020.10.13-jormungandr version ``` ## Signatures <!-- Signatures of people responsible for the release --> Name | Role | Approval --- | --- | ---: Matthias Benkort @KtorZ | Technical Team Lead | ⌛ Piotr Stachyra @piotr-iohk | QA Engineer | ⌛ Tatyana Valkevych @tatyanavych | Release Manager | ⌛ Co-authored-by: Julian Ospald <[email protected]> Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: Jonathan Knowles <[email protected]> Co-authored-by: IOHK <[email protected]>
Issue Number
#2175
Overview
9722d82
📍 expose an executable 'shelley-test-cluster' which starts an integration test cluster with faucets
6eefd47
📍 Let the shelley-test-cluster nix build be run from any directory
4c4d01e
📍 Allow setting different LoggerName when configuring trace with 'withLogging'
571e67d
📍 Add TestLog to shelley-test-cluster
e99d875
📍 Regenerate nix
Comments
@Anviking there's probably some clashes with what you're also doing with the logging, so happy to get the logging revision merged first and adjust that one.