-
Notifications
You must be signed in to change notification settings - Fork 15
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
Move input files out of golden
directory
#454
Move input files out of golden
directory
#454
Conversation
6b36414
to
fa0012c
Compare
.github/workflows/haskell.yml
Outdated
run: cabal test all | ||
run: | | ||
cabal test all | ||
rm -rf cardano-cli/test/cardano-cli-golden/files/golden |
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 think this rm
followed by rerunning the test suite should be explained by a comment.
It looks like an unusual pattern and we will forget why it's there in the future.
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.
Oh woow yeah I overlooked that. Windows is so unusual, my mind doesn't even consider it 😆
Did a first pass, @newhoggy> ping me when the CI passes, I'll have another look 👍 |
070a4f3
to
b17f193
Compare
b17f193
to
4db6514
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.
LGTM!
import qualified Hedgehog.Extras.Test.Golden as H | ||
|
||
{- HLINT ignore "Use camelCase" -} | ||
|
||
hprop_golden_shelleyGenesisInitialTxIn :: Property | ||
hprop_golden_shelleyGenesisInitialTxIn = propertyOnce $ do | ||
verificationKeyFile <- noteInputFile "test/cardano-cli-golden/files/input/shelley/keys/genesis_verification_keys/genesis-utxo.vkey" | ||
goldenUtxoHashFile <- noteInputFile "test/cardano-cli-golden/files/golden/shelley/keys/genesis_utxo_hashes/utxo_hash" | ||
goldenUtxoHashFile <- H.note "test/cardano-cli-golden/files/golden/shelley/keys/genesis_utxo_hashes/utxo_hash" |
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.
Did you intentionally not change golden -> input here?
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.
Yes because goldenUtxoHashFile
is not used as an input file. The code before was misleading.
4db6514
to
b351b1b
Compare
b351b1b
to
2381388
Compare
Changelog
Context
Only golden files should live in the
golden
directory.A new CI check has been added to enforce this.
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist