Skip to content

Commit

Permalink
CAD-4528 Nix expression for generating coverage reports (#3920)
Browse files Browse the repository at this point in the history
* Update Nix infra, update index-state

Cherry-picks c0a02b1 as a precondition
for running coverage reports on the feature/utxohd branch.

* Merge #3909

3909: Add coverage reports r=bartfrenk a=sevanspowell

Adds coverage reports to the ouroboros-network repository and includes documentation on how to generate and debug them.

Alternative to #3899, feel free to take what you need from this PR and merge it into the #3899.

Co-authored-by: Samuel Evans-Powell <mail@sevanspowell.net>

* Cherry picked commits from master
* Revert dependency changes to avoid having to rerun benchmarking

Co-authored-by: Alexander Esgen <alexander.esgen@iohk.io>
Co-authored-by: iohk-bors[bot] <43231472+iohk-bors[bot]@users.noreply.github.com>
Co-authored-by: Samuel Evans-Powell <mail@sevanspowell.net>
  • Loading branch information
4 people authored and jasagredo committed Dec 2, 2022
1 parent 6547f30 commit c791ef1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions nix/sources.json
Expand Up @@ -43,10 +43,10 @@
"homepage": null,
"owner": "input-output-hk",
"repo": "iohk-nix",
"rev": "9a604d01bd4420ab7f396f14d1947fbe2ce7db8b",
"sha256": "0w562wdmdhp83dw9rabiijj5hk1f4l8p8f3bwlr7virakgbg8lf8",
"rev": "edb2d2df2ebe42bbdf03a0711115cf6213c9d366",
"sha256": "1yjm5bk26vak25j9ws5lv2jw80kjdfn1a7b003kzs1r0zds87xy2",
"type": "tarball",
"url": "https://github.com/input-output-hk/iohk-nix/archive/9a604d01bd4420ab7f396f14d1947fbe2ce7db8b.tar.gz",
"url": "https://github.com/input-output-hk/iohk-nix/archive/edb2d2df2ebe42bbdf03a0711115cf6213c9d366.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz",
"version": "60fe72cf807a4ec4409a53883d5c3af77f60f721"
}
Expand Down
Expand Up @@ -26,6 +26,7 @@ import Test.Tasty.QuickCheck

import Test.Util.Orphans.IOLike ()


tests :: TestTree
tests = testProperty "RAWLock correctness" prop_RAWLock_correctness

Expand Down
Expand Up @@ -93,7 +93,7 @@ type family BlockProtocol blk :: Type
Configuration
-------------------------------------------------------------------------------}

-- | Static configuration required to work with this type of blocks
-- | Static configuration required to work with this type of blocks.
data family BlockConfig blk :: Type

-- | Static configuration required for serialisation and deserialisation of
Expand Down
Expand Up @@ -114,7 +114,7 @@ hashHeader (BlockHeader _ b c d e) = HeaderHash (hash (b, c, d, e))
deriving instance Hashable SlotNo
deriving instance Hashable BlockNo

-- | 'Hashable' instance for 'Hash'
-- | 'Hashable' instance for 'Hash'.
--
-- We don't insist that 'Hashable' in 'StandardHash' because 'Hashable' is
-- only used in the network layer /tests/.
Expand Down

0 comments on commit c791ef1

Please sign in to comment.