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

Expose ValidationPolicy interface #1390

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Adapt tests to use `ValidationPolicy` and `ComputeLedgerEvents`

245dce7
Select commit
Loading
Failed to load commit list.
Open

Expose ValidationPolicy interface #1390

Adapt tests to use `ValidationPolicy` and `ComputeLedgerEvents`
245dce7
Select commit
Loading
Failed to load commit list.
IOG Hydra / ci/hydra-build:aarch64-darwin.required.native failed Feb 19, 2025 in 13s

Build dependency failed

1 failed steps

Details

Failed Steps

Step 9

Derivation

/nix/store/la7fvnpjcqafmxyv313ykppxzmn68p8w-ouroboros-consensus-cardano-test-tools-test-0.21.0.0-check.drv

Log

Running phase: unpackPhase
unpacking source archive /nix/store/shby0vhgy1xwmljrvplbp2f255dn1c26-source-root-ouroboros-consensus-cardano-test-tools-test-root
source root is source-root-ouroboros-consensus-cardano-test-tools-test-root
Running phase: patchPhase
Running phase: buildPhase
/nix/store/xsglzgdvsh2rj7yi6zbai82jkmm60s9d-ouroboros-consensus-cardano-test-tools-test-0.21.0.0/bin:
patching script interpreter paths in /private/tmp/nix-build-ouroboros-consensus-cardano-test-tools-test-0.21.0.0-check.drv-0/tmp.IEsOShHJb4/bin
cardano-tools
  synthesize and analyse: blockCount
: --> forger count: 2
--> opening ChainDB on file system with mode: OpenCreateForce
--> starting at: SlotNo 0
--> epoch size: EpochSize 432000
--> will process until: ForgeLimitEpoch 1
FAIL (0.08s)
    running synthesis - create (0.07s)
      Prelude.undefined
      CallStack (from HasCallStack):
        undefined, called at src/shelley/Ouroboros/Consensus/Shelley/Ledger/Ledger.hs:323:21 in ouroboros-consensus-cardano-0.21.0.0-DmVHdTeQP88Dv0cqdXaCzu:Ouroboros.Consensus.Shelley.Ledger.Ledger
    
    Use -p '/synthesize and analyse: blockCount
    /' to rerun this test only.
  HeaderValidation
    roundtrip To/FromJSON samples:     OK (8.57s)
      +++ OK, passed 100 tests.
    validate legit header:             OK (0.27s)
      +++ OK, passed 100 tests:
      54% NoMutation
      10% MutateCounterUnder
       9% MutateCounterOver1
       8% MutateColdKey
       7% MutateKESKey
       7% MutateKESPeriod
       5% MutateKESPeriodBefore

1 out of 3 tests failed (8.91s)