-
Notifications
You must be signed in to change notification settings - Fork 214
Integration test for marconi indexer using local testnet #714
Conversation
031dd66
to
bd282cd
Compare
Did it via trial and error: - the SubmitResult gives the numbers it needs to balance - the process is iterative: e.g the expected fee changes when applying the numbers from the first run, but it quickly converges.
.. so the modules could be used for testing.
1f03a50
to
2bfbdbc
Compare
ec973d5
to
0a3719b
Compare
@koslambrou @james-iohk ping for another review. |
These were introduced by rebasing on new master.
|
||
return indexer | ||
|
||
utxoVKeyFile <- H.note $ tempAbsPath </> "shelley/utxo-keys/utxo1.vkey" |
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.
Once we scale up number of tests we'll want to reduce and reuse as much as possible. Are we also able to move stuff like this along with other testnet helpers, or does MonadTest
prevent this?
-- wants. And although they change again after you correct them, | ||
-- then the procedure converges quickly. | ||
executionUnits = C.ExecutionUnits {C.executionSteps = 500_000, C.executionMemory = 10_000 } | ||
tx2fee = 1000303 :: C.Lovelace |
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.
Is there not a way to have this calculated? it could vary with different protocol params or how it's calculated in other eras.
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.
There is function constructBalancedTx
from this PR IntersectMBO/cardano-node#4446, but it's very recent. The cardano-node we depend on doesn't have it.
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 see. Until we use this we could use a higher fee (e.g. 2ada) to be certain.
This reverts commit ca2c082.
As otherwise the test fails with either plutus-tx-plugin required or not required.
@koslambrou trying to satisfy CI I've done the following things (do these look ok?), and at the end there is a new issue again with CI
The new issue: https://hydra.iohk.io/build/19716407/nixlog/4. It happens to me locally as well (using |
Alright, fixed it locally. Let's see with CI. The issue was that |
0ee5dcd
to
c0835cf
Compare
The latest error here was that Made also a PR here to show more info haskell/network#537. EDIT: found failing CI report too: https://hydra.iohk.io/build/19720430/nixlog/6 |
It's not too obvious to me how to pull in your custom
to |
This reverts commit c0835cf.
Co-authored-by: Konstantinos Lambrou-Latreille <konstantinos.lambrou@iohk.io>
Pre-submit checklist: