Skip to content
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

Run conformance on passTick #4762

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

Soupstraw
Copy link
Contributor

Description

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages.
    New section is never added with the code changes. (See RELEASING.md)
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated.
    If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

With a new `iteHook` field added to `ImpTestEnv`, we get an overridable
function that can be executed within `trySubmitTx` for every submitted
transaction. To override this hook we have `modifyImpInitHook`
and  `withHook` functions. We add a new `Conformance.Imp` module to
`cardano-ledger-conformance` package, to import `Conway.Imp` and run
those tests with a modified "hook" that runs the `LEDGER` rule from Agda
on the Tx and `checkConformance` on the results.

Additions:
- `iteHook` field to `ImpTestEnv`.
- `modifyImpInitHook` function to override the hook.
- `withHook` helper function to use a different hook locally.
- `impInitEnvL` and `impInitStateL` lenses.

Changes:
- Change `trySubmitTx` to run the hook for every submitted Tx.
@Soupstraw Soupstraw marked this pull request as ready for review November 19, 2024 16:26
@Soupstraw Soupstraw requested a review from a team as a code owner November 19, 2024 16:26
@Soupstraw Soupstraw force-pushed the jj/imptest-conformance-passtick branch from 93cf1d8 to e3a3a81 Compare November 19, 2024 16:30
@Soupstraw Soupstraw marked this pull request as draft December 17, 2024 10:25
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.

2 participants