Skip to content

Conversation

@ninioArtillero
Copy link
Collaborator

@ninioArtillero ninioArtillero commented Jan 9, 2026

Description

This PR implementes a ConformanceTest type to reify the genesis tests. The introduced change accounts to a local refactor.

Closes tweag/cardano-conformance-testing-of-consensus#72

@ninioArtillero ninioArtillero force-pushed the ninioArtillero/reify-tests branch 3 times, most recently from da24908 to 543fcb8 Compare January 9, 2026 20:32
@ninioArtillero ninioArtillero marked this pull request as ready for review January 9, 2026 20:33
@ninioArtillero ninioArtillero force-pushed the ninioArtillero/reify-tests branch 2 times, most recently from ba399d8 to f1c5216 Compare January 9, 2026 20:38
@ninioArtillero ninioArtillero changed the title Reify tests in ConformanceTest type Implemente ConformanceTest type Jan 9, 2026
@ninioArtillero ninioArtillero changed the title Implemente ConformanceTest type Implement ConformanceTest type Jan 9, 2026
Copy link
Member

@isovector isovector left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm; though can we rebase it onto conformance-testing?

@ninioArtillero ninioArtillero force-pushed the ninioArtillero/reify-tests branch from f1c5216 to 909a150 Compare January 12, 2026 15:58
@ninioArtillero ninioArtillero changed the base branch from isovector/more-detest to conformance-testing January 12, 2026 15:59
@ninioArtillero ninioArtillero force-pushed the ninioArtillero/reify-tests branch from 909a150 to eea5179 Compare January 12, 2026 17:20
@ninioArtillero ninioArtillero force-pushed the ninioArtillero/reify-tests branch 4 times, most recently from fbc82c7 to 7a370a1 Compare January 12, 2026 19:28
Copy link
Member

@nbloomf nbloomf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

-- ^ A shrinker allowed to inspect the output value of a test.
, ctProperty :: GenesisTestFull blk -> StateView blk -> Property
-- ^ The property to test.
--, ctDesiredPasses :: Int
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming we will use this later!

Copy link
Collaborator Author

@ninioArtillero ninioArtillero Jan 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This is specified in our design document. Just left it out until when we port the existing tests to the new type and avoid this change to propagate outside this module (or having to hardcode a dummy value).

forAllGenesisTest generator schedulerConfig shrinker mkProperty =
forAllGenRunShrinkCheck generator runner shrinker' $ \genesisTest result ->
runConformanceTest :: forall blk.
( blk ~ TestBlock
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this class constraint be relaxed yet?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thing is I rebased to conformance-tesing, where the needed parametrization is not in place yet. Good thing I implemented over those changes, so I have a quick fix to get rid of this constraint as soon as #21 lands.

@ninioArtillero ninioArtillero force-pushed the ninioArtillero/reify-tests branch from 7a370a1 to ee64b42 Compare January 13, 2026 18:02
@ninioArtillero ninioArtillero force-pushed the ninioArtillero/reify-tests branch from ee64b42 to 5f3cb27 Compare January 13, 2026 18:06
@ninioArtillero ninioArtillero merged commit 0dd4aec into conformance-testing Jan 13, 2026
1 check passed
@ninioArtillero ninioArtillero deleted the ninioArtillero/reify-tests branch January 13, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants