-
Notifications
You must be signed in to change notification settings - Fork 721
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
Automated drep (Scenario 1) #5815
Conversation
2258014
to
e3e536a
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.
Nice job on separating the PRs. We are lacking in comments however.
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
172d84e
to
e4f6e9d
Compare
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
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.
Looking good, I just have a comment about waitAndCheckNewEpochState
the rest are minor. Will approve after the comment about waitAndCheckNewEpochState
.
cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/DRepActivity.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
...net/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/PredefinedAbstainDRep.hs
Outdated
Show resolved
Hide resolved
2d3c9e6
to
5b72c6c
Compare
ef4d1db
to
a2537b8
Compare
Co-authored-by: Mateusz Galazyn <[email protected]>
a2537b8
to
5b62ae6
Compare
5de639b
to
5b16cd1
Compare
Automated drep (Scenario 1)
@@ -187,4 +184,11 @@ hprop_plutus_v3 = integrationWorkspace "all-plutus-script-purposes" $ \tempAbsBa | |||
] | |||
H.success | |||
|
|||
waitForJustM :: (H.MonadTest m, MonadIO m) => m (Maybe a) -> m a |
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.
findLargestUtxoWithAddress
should be modified to recurse if no UTxOs are found and terminate at a specified termination epoch.
"failingProposal" wallet2 [(1, "yes")] secondTargetDRepActivity | ||
minEpochsToWaitIfNotChanging (Just firstTargetDRepActivity) | ||
maxEpochsToWaitAfterProposal | ||
|
||
kickWatchdog watchdog |
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.
An indication that we are testing too much and this test needs to be further decomposed.
"failingProposal" wallet2 [(1, "yes")] secondTargetDRepActivity | ||
minEpochsToWaitIfNotChanging (Just firstTargetDRepActivity) | ||
maxEpochsToWaitAfterProposal | ||
|
||
kickWatchdog watchdog | ||
|
||
-- We now send a bunch of proposals to make sure that the 2 new DReps expire. |
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.
This should be a separate property. Drep Expiry.
@@ -122,17 +124,19 @@ hprop_check_drep_activity = integrationWorkspace "test-activity" $ \tempAbsBaseP | |||
-- This proposal should fail because there is 2 DReps that don't vote (out of 3) |
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.
This can be a separate property. Voting threshold not reached.
@@ -145,7 +149,7 @@ hprop_check_drep_activity = integrationWorkspace "test-activity" $ \tempAbsBaseP | |||
-- Last proposal (set activity to something else again and it should pass, because of inactivity) |
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.
This can be a separate property. Update DRep activity.
Description
This PR aims to address this issue: #5600
With that aim, it adds two scenarios for automated DReps. This PR contains the first scenario:
Scenario 1
yes
with the first DRep only.yes
with first DRep only.Checklist
See Runnings tests for more details
CHANGELOG.md
for affected package.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7