-
Notifications
You must be signed in to change notification settings - Fork 224
Add haskell program coverage reports to Hydra tests #2124
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65ab60a
to
40e7a7a
Compare
sevanspowell
approved these changes
Oct 2, 2020
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!
fd464f7
to
21659a2
Compare
bors try |
tryBuild succeeded: |
2d1ad8c
to
1833f9d
Compare
bors r+ |
iohk-bors bot
added a commit
that referenced
this pull request
Oct 9, 2020
2124: Add haskell program coverage reports to Hydra tests r=rvl a=rvl ### Issue Number ADP-99 ### Overview This is a bit of an assortment of nix build improvements. 1. Add a code test coverage report for the Hydra build - implemented by PR input-output-hk/haskell.nix#762 2. Add a nix-shell with profiled packages. Profiled packages will be built on Hydra for master branch but not PRs. This means you can download haskell dependencies with profiling enabled, rather than having to build everything yourself. 3. Update versions of build tools in the nix-shell to latest hackage release - ghcide, hlint and stylish-haskell updated. ### Comments - [Hydra jobset](https://hydra.iohk.io/jobset/Cardano/cardano-wallet-pr-2124) - [Coverage report job](https://hydra.iohk.io/job/Cardano/cardano-wallet-pr-2124/musl64.testCoverageReport.x86_64-linux/latest) - [Coverage report from bors try](https://hydra.iohk.io/build/4328848/download/2/hpc_index.html) <details> <summary>Stack coverage report for comparison</summary> #### Command ``` stack build --coverage --fast --test --skip integration --skip jormungandr-integration ``` #### Result: ``` ... Generating unified report 26% expressions used (26186/98111) 44% boolean coverage (136/305) 42% guards (102/240), 72 always True, 7 always False, 59 unevaluated 52% 'if' conditions (33/63), 4 always True, 8 always False, 18 unevaluated 50% qualifiers (1/2), 1 always True 40% alternatives used (849/2108) 58% local declarations used (859/1456) 50% top-level declarations used (1769/3533) The unified report is available at /home/rodney/iohk/cardano-wallet/.stack-work/install/x86_64-linux/2cecc28bf3aab8c8c3e4a07c1c6c1c846ec8861df3d8a5e9247bce185aeb7542/8.6.5/hpc/combined/all/hpc_index.html An index of the generated HTML coverage reports is available at /home/rodney/iohk/cardano-wallet/.stack-work/install/x86_64-linux/2cecc28bf3aab8c8c3e4a07c1c6c1c846ec8861df3d8a5e9247bce185aeb7542/8.6.5/hpc/index.html -- While building package cardano-wallet-2020.9.30 using: /home/rodney/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build lib:cardano-wallet exe:cardano-wallet test:unit --ghc-options "-hpcdir .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/hpc -fdiagnostics-color=always" Process exited with code: ExitFailure 1 Progress 335/336 ``` </details> Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: Samuel Evans-Powell <[email protected]>
Timed out. |
Big rebuild... bors r+ |
iohk-bors bot
added a commit
that referenced
this pull request
Oct 9, 2020
2124: Add haskell program coverage reports to Hydra tests r=rvl a=rvl ### Issue Number ADP-99 ### Overview This is a bit of an assortment of nix build improvements. 1. Add a code test coverage report for the Hydra build - implemented by PR input-output-hk/haskell.nix#762 2. Add a nix-shell with profiled packages. Profiled packages will be built on Hydra for master branch but not PRs. This means you can download haskell dependencies with profiling enabled, rather than having to build everything yourself. 3. Update versions of build tools in the nix-shell to latest hackage release - ghcide, hlint and stylish-haskell updated. ### Comments - [Hydra jobset](https://hydra.iohk.io/jobset/Cardano/cardano-wallet-pr-2124) - [Coverage report job](https://hydra.iohk.io/job/Cardano/cardano-wallet-pr-2124/musl64.testCoverageReport.x86_64-linux/latest) - [Coverage report from bors try](https://hydra.iohk.io/build/4328848/download/2/hpc_index.html) <details> <summary>Stack coverage report for comparison</summary> #### Command ``` stack build --coverage --fast --test --skip integration --skip jormungandr-integration ``` #### Result: ``` ... Generating unified report 26% expressions used (26186/98111) 44% boolean coverage (136/305) 42% guards (102/240), 72 always True, 7 always False, 59 unevaluated 52% 'if' conditions (33/63), 4 always True, 8 always False, 18 unevaluated 50% qualifiers (1/2), 1 always True 40% alternatives used (849/2108) 58% local declarations used (859/1456) 50% top-level declarations used (1769/3533) The unified report is available at /home/rodney/iohk/cardano-wallet/.stack-work/install/x86_64-linux/2cecc28bf3aab8c8c3e4a07c1c6c1c846ec8861df3d8a5e9247bce185aeb7542/8.6.5/hpc/combined/all/hpc_index.html An index of the generated HTML coverage reports is available at /home/rodney/iohk/cardano-wallet/.stack-work/install/x86_64-linux/2cecc28bf3aab8c8c3e4a07c1c6c1c846ec8861df3d8a5e9247bce185aeb7542/8.6.5/hpc/index.html -- While building package cardano-wallet-2020.9.30 using: /home/rodney/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build lib:cardano-wallet exe:cardano-wallet test:unit --ghc-options "-hpcdir .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/hpc -fdiagnostics-color=always" Process exited with code: ExitFailure 1 Progress 335/336 ``` </details> 2223: Enable 100 wallet scenario in latency benchmark r=Anviking a=Anviking # Issue Number ADP-469, ADP-473 # Overview - [x] Simply enable `Latencies for 100 fixture wallets` - [x] Delete all wallets in between all latency scenarios - [x] Rename DSL helper `tearDown` to `deleteAllWallets`, and re-use it more # Comments ``` $ stack bench cardano-wallet Benchmark latency: RUNNING... Non-cached run getNetworkInfo - 20.7 ms Latencies for 2 fixture wallets scenario listWallets - 1.4 ms getWallet - 0.5 ms getUTxOsStatistics - 0.4 ms listAddresses - 1.0 ms listTransactions - 2.2 ms postTransactionFee - 86.4 ms listStakePools - 1.2 ms getNetworkInfo - 0.0 ms Latencies for 10 fixture wallets scenario listWallets - 4.8 ms getWallet - 0.4 ms getUTxOsStatistics - 0.3 ms listAddresses - 0.9 ms listTransactions - 2.0 ms postTransactionFee - 93.2 ms listStakePools - 1.3 ms getNetworkInfo - 0.0 ms Latencies for 100 fixture wallets listWallets - 59.9 ms getWallet - 0.5 ms getUTxOsStatistics - 0.4 ms listAddresses - 1.2 ms listTransactions - 2.6 ms postTransactionFee - 139.2 ms listStakePools - 1.1 ms getNetworkInfo - 0.0 ms Latencies for 2 fixture wallets with 10 txs scenario listWallets - 1.1 ms getWallet - 0.5 ms getUTxOsStatistics - 0.4 ms listAddresses - 0.9 ms listTransactions - 3.8 ms postTransactionFee - 104.2 ms listStakePools - 1.3 ms getNetworkInfo - 0.1 ms Latencies for 2 fixture wallets with 20 txs scenario listWallets - 1.1 ms getWallet - 0.5 ms getUTxOsStatistics - 0.4 ms listAddresses - 1.0 ms listTransactions - 5.5 ms postTransactionFee - 97.0 ms listStakePools - 1.2 ms getNetworkInfo - 0.1 ms Latencies for 2 fixture wallets with 100 txs scenario listWallets - 1.1 ms getWallet - 0.5 ms getUTxOsStatistics - 0.4 ms listAddresses - 1.0 ms listTransactions - 14.5 ms postTransactionFee - 95.1 ms listStakePools - 1.7 ms getNetworkInfo - 0.1 ms Latencies for 10 fixture wallets with 10 txs scenario listWallets - 4.4 ms getWallet - 0.5 ms getUTxOsStatistics - 0.3 ms listAddresses - 0.9 ms listTransactions - 4.3 ms postTransactionFee - 106.6 ms listStakePools - 1.3 ms getNetworkInfo - 0.0 ms Latencies for 10 fixture wallets with 20 txs scenario listWallets - 4.2 ms getWallet - 0.4 ms getUTxOsStatistics - 0.3 ms listAddresses - 0.9 ms listTransactions - 4.5 ms postTransactionFee - 106.6 ms listStakePools - 1.3 ms getNetworkInfo - 0.1 ms Latencies for 10 fixture wallets with 100 txs scenario listWallets - 4.5 ms getWallet - 0.5 ms getUTxOsStatistics - 0.4 ms listAddresses - 0.9 ms listTransactions - 15.8 ms postTransactionFee - 96.8 ms listStakePools - 1.6 ms getNetworkInfo - 0.1 ms Latencies for 2 fixture wallets with 100 utxos scenario listWallets - 1.7 ms getWallet - 0.5 ms getUTxOsStatistics - 0.4 ms listAddresses - 1.0 ms listTransactions - 12.2 ms postTransactionFee - 95.9 ms listStakePools - 1.4 ms getNetworkInfo - 0.0 ms Latencies for 2 fixture wallets with 200 utxos scenario listWallets - 1.7 ms getWallet - 0.5 ms getUTxOsStatistics - 0.4 ms listAddresses - 1.0 ms listTransactions - 25.1 ms postTransactionFee - 96.6 ms listStakePools - 1.4 ms getNetworkInfo - 0.1 ms Latencies for 2 fixture wallets with 500 utxos scenario listWallets - 1.6 ms getWallet - 0.5 ms getUTxOsStatistics - 0.4 ms listAddresses - 1.0 ms listTransactions - 69.7 ms postTransactionFee - 87.9 ms listStakePools - 1.5 ms getNetworkInfo - 0.0 ms Latencies for 2 fixture wallets with 1000 utxos scenario ``` <!-- Additional comments or screenshots to attach if any --> <!-- 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: Rodney Lorrimar <[email protected]> Co-authored-by: Samuel Evans-Powell <[email protected]> Co-authored-by: Johannes Lund <[email protected]>
Build failed (retrying...): |
iohk-bors bot
added a commit
that referenced
this pull request
Oct 9, 2020
2124: Add haskell program coverage reports to Hydra tests r=rvl a=rvl ### Issue Number ADP-99 ### Overview This is a bit of an assortment of nix build improvements. 1. Add a code test coverage report for the Hydra build - implemented by PR input-output-hk/haskell.nix#762 2. Add a nix-shell with profiled packages. Profiled packages will be built on Hydra for master branch but not PRs. This means you can download haskell dependencies with profiling enabled, rather than having to build everything yourself. 3. Update versions of build tools in the nix-shell to latest hackage release - ghcide, hlint and stylish-haskell updated. ### Comments - [Hydra jobset](https://hydra.iohk.io/jobset/Cardano/cardano-wallet-pr-2124) - [Coverage report job](https://hydra.iohk.io/job/Cardano/cardano-wallet-pr-2124/musl64.testCoverageReport.x86_64-linux/latest) - [Coverage report from bors try](https://hydra.iohk.io/build/4328848/download/2/hpc_index.html) <details> <summary>Stack coverage report for comparison</summary> #### Command ``` stack build --coverage --fast --test --skip integration --skip jormungandr-integration ``` #### Result: ``` ... Generating unified report 26% expressions used (26186/98111) 44% boolean coverage (136/305) 42% guards (102/240), 72 always True, 7 always False, 59 unevaluated 52% 'if' conditions (33/63), 4 always True, 8 always False, 18 unevaluated 50% qualifiers (1/2), 1 always True 40% alternatives used (849/2108) 58% local declarations used (859/1456) 50% top-level declarations used (1769/3533) The unified report is available at /home/rodney/iohk/cardano-wallet/.stack-work/install/x86_64-linux/2cecc28bf3aab8c8c3e4a07c1c6c1c846ec8861df3d8a5e9247bce185aeb7542/8.6.5/hpc/combined/all/hpc_index.html An index of the generated HTML coverage reports is available at /home/rodney/iohk/cardano-wallet/.stack-work/install/x86_64-linux/2cecc28bf3aab8c8c3e4a07c1c6c1c846ec8861df3d8a5e9247bce185aeb7542/8.6.5/hpc/index.html -- While building package cardano-wallet-2020.9.30 using: /home/rodney/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build lib:cardano-wallet exe:cardano-wallet test:unit --ghc-options "-hpcdir .stack-work/dist/x86_64-linux/Cabal-2.4.0.1/hpc -fdiagnostics-color=always" Process exited with code: ExitFailure 1 Progress 335/336 ``` </details> Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: Samuel Evans-Powell <[email protected]>
Timed out. |
Includes Samuel's coverage PR. input-output-hk/haskell.nix#762
1833f9d
to
e2c02b0
Compare
bors merge |
Build succeeded: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue Number
ADP-99
Overview
This is a bit of an assortment of nix build improvements.
Comments
Stack coverage report for comparison
Command
Result: