Skip to content

Add Genesis test

23567d5
Select commit
Loading
Failed to load commit list.
Draft

Improve testing setup and genesis json golden test #5243

Add Genesis test
23567d5
Select commit
Loading
Failed to load commit list.
IOG Hydra / ci/hydra-build:x86_64-darwin.required failed Aug 22, 2025 in 5m 15s

Build dependency failed

1 failed steps

Details

Failed Steps

Step 2

Derivation

/nix/store/5gkgsa6f1w5k0qmp0l1ysxgahf3b0p3q-cardano-ledger-shelley-test-tests-1.17.0.0-check.drv

Log

Running phase: unpackPhase
unpacking source archive /nix/store/sqdc619damb1kv3rd0h7ykcvfs5cwsvb-source-eras-shelley-impl-test-tests-root
source root is source-eras-shelley-impl-test-tests-root
Running phase: patchPhase
Running phase: buildPhase
/nix/store/dqa30nf9g2vqm95jdks0ggfqx1mis3bf-cardano-ledger-shelley-test-tests-1.17.0.0/bin:
patching script interpreter paths in /private/tmp/nix-build-cardano-ledger-shelley-test-tests-1.17.0.0-check.drv-0/tmp.AcGOhxPyVk/bin

Spec for every Era
  JSON
    Golden
      Genesis [✘]
Shelley
  Golden
    NewEpochState [✔] (9600ms)
      +++ OK, passed 100 tests.
    Golden JSON specs for PParams [✔]
    Golden JSON specs for PParamsUpdate [✔]
  RoundTrip
    Core Type Families
      Coin [✔] (2ms)
        +++ OK, passed 100 tests.
      CompactForm Coin [✔]
        +++ OK, passed 100 tests.
      ShelleyTxOut ShelleyEra [✔] (14ms)
        +++ OK, passed 100 tests.
      ShelleyTxCert ShelleyEra [✔] (9ms)
        +++ OK, passed 100 tests.
      PParams ShelleyEra [✔] (15ms)
        +++ OK, passed 100 tests.
      PParamsUpdate ShelleyEra [✔] (15ms)
        +++ OK, passed 100 tests.
      MultiSig ShelleyEra [✔] (5ms)
        +++ OK, passed 100 tests.
      MultiSig ShelleyEra [✔] (5ms)
        +++ OK, passed 100 tests.
      ShelleyTxAuxData ShelleyEra [✔] (46ms)
        +++ OK, passed 100 tests.
      ShelleyTxAuxData ShelleyEra [✔] (36ms)
        +++ OK, passed 100 tests.
      ShelleyTxWits ShelleyEra [✔] (666ms)
        +++ OK, passed 100 tests.
      ShelleyTxWits ShelleyEra [✔] (640ms)
        +++ OK, passed 100 tests.
      TxBody ShelleyEra [✔] (643ms)
        +++ OK, passed 100 tests.
      TxBody ShelleyEra [✔] (554ms)
        +++ OK, passed 100 tests.
      Tx ShelleyEra [✔] (715ms)
        +++ OK, passed 100 tests.
      Tx ShelleyEra [✔] (611ms)
        +++ OK, passed 100 tests.
      MemPack/CBOR Roundtrip ShelleyTxOut ShelleyEra [✔] (13ms)
        +++ OK, passed 100 tests.
      ShelleyCertState ShelleyEra [✔] (4158ms)
        +++ OK, passed 100 tests.
    Core State Types
      SnapShots [✔] (6244ms)
        +++ OK, passed 100 tests.
      DState ShelleyEra [✔] (172ms)
        +++ OK, passed 100 tests.
      PState ShelleyEra [✔] (3996ms)
        +++ OK, passed 100 tests.
      CommitteeState ShelleyEra [✔] (43ms)
        +++ OK, passed 100 tests.
      UTxO ShelleyEra [✔] (260ms)
        +++ OK, passed 100 tests.
    State Types Families
      ShelleyGovState ShelleyEra [✔] (101ms)
        +++ OK, passed 100 tests.
    State Types
      UTxOState ShelleyEra [✔] (459ms)
        +++ OK, passed 100 tests.
      EpochState ShelleyEra [✔] (11340ms)
        +++ OK, passed 100 tests.
      NewEpochState ShelleyEra [✔] (14464ms)
        +++ OK, passed 100 tests.
    Predicate Failures
      ShelleyDelegPredFailure ShelleyEra [✔]
        +++ OK, passed 100 tests.
      ShelleyDelegsPredFailure ShelleyEra [✔] (32ms)
        +++ OK, passed 100 tests.
      ShelleyDelplPredFailure ShelleyEra [✔] (1ms)
        +++ OK, passed 100 tests.
      ShelleyLedgerPredFailure ShelleyEra [✔] (20ms)
        +++ OK, passed 100 tests.
      ShelleyLedgersPredFailure ShelleyEra [✔] (22ms)
        +++ OK, passed 100 tests.
      ShelleyPoolPredFailure ShelleyEra [✔] (1ms)
        +++ OK, passed 100 tests.
      ShelleyPpupPredFailure ShelleyEra [✔] (10ms)
        +++ OK, passed 100 tests.
      ShelleyUtxoPredFailure ShelleyEra [✔] (51ms)
        +++ OK, passed 100 tests.
      ShelleyUtxowPredFailure ShelleyEra [✔] (25ms)
        +++ OK, passed 100 tests.
    Non era parametric Shelley types
      NominalDiffTimeMicro [✔] (4ms)
        +++ OK, passed 100 tests.
      ShelleyGenesisStaking [✔] (16568ms)
        +++ OK, passed 100 tests.
      ShelleyGenesis [✔] (2197ms)
        +++ OK, passed 100 tests.
      RewardUpdate [✔] (14827ms)
        +++ OK, passed 100 tests.
      RewardSnapShot [✔] (20351ms)
        +++ OK, passed 100 tests.
      FreeVars [✔] (21506ms)
        +++ OK, passed 100 tests.
      RewardPulser (ReaderT Globals Identity) RewardAns [✔] (30984ms)
        +++ OK, passed 100 tests.
      PulsingRewUpdate [✔] (33978ms)
        +++ OK, passed 100 tests.
  DecCBOR instances equivalence
    Data ShelleyEra [✔] (4ms)
      +++ OK, passed 100 tests.
    MultiSig ShelleyEra [✔] (4ms)
      +++ OK, passed 100 tests.
    ShelleyTxAuxData ShelleyEra [✔] (41ms)
      +++ OK, passed 100 tests.
    ShelleyTxWits ShelleyEra [✔] (624ms)
      +++ OK, passed 100 tests.
    TxBody ShelleyEra [✔] (617ms)
      +++ OK, passed 100 tests.
    Tx ShelleyEra [✔] (689ms)
      +++ OK, passed 100 tests.
  Transaction size
    should match the size of the cbor encoding [✔] (417ms)
      +++ OK, passed 100 tests.
  CDDL
    Ruby-based
      bootstrap_witness: Annotator BootstrapWitness [✔] (5366ms)
      bootstrap_witness: BootstrapWitness [✔] (4768ms)
      address: Addr [✔] (4676ms)
      reward_account: RewardAccount [✔] (4687ms)
      stake_credential: Credential 'Staking [✔] (4677ms)
      transaction_body: Annotator (MemoBytes ShelleyTxBodyRaw) [✔] (4848ms)
      transaction_body: MemoBytes ShelleyTxBodyRaw [✔] (4760ms)
      transaction_output: ShelleyTxOut ShelleyEra [✔] (4699ms)
      relay: StakePoolRelay [✔] (4667ms)
      certificate: ShelleyTxCert ShelleyEra [✔] (4678ms)
      transaction_input: TxIn [✔] (4671ms)
      transaction_metadata: Annotator (MemoBytes (ShelleyTxAuxDataRaw ShelleyEra)) [✔] (4918ms)
      transaction_metadata: MemoBytes (ShelleyTxAuxDataRaw ShelleyEra) [✔] (4673ms)
      multisig_script: Annotator (MemoBytes (MultiSigRaw ShelleyEra)) [✔] (4722ms)
      multisig_script: MultiSig ShelleyEra [✔] (4873ms)
      update: Update ShelleyEra [✔] (4674ms)
      proposed_protocol_parameter_updates: Map (KeyHash 'Genesis) (PParamsUpdate ShelleyEra) [✔] (4711ms)
      protocol_param_update: PParamsUpdate ShelleyEra [✔] (4686ms)
      transaction: Annotator (Tx ShelleyEra) [✔] (5614ms)
      transaction: ShelleyTx ShelleyEra [✔] (4907ms)
      DecCBOR instances equivalence via CDDL
        bootstrap_witness: BootstrapWitness [✔] (1911ms)
        transaction_body: MemoBytes ShelleyTxBodyRaw [✔] (2001ms)
        transaction_metadata: MemoBytes (ShelleyTxAuxDataRaw ShelleyEra) [✔] (1937ms)
        multisig_script: MultiSig ShelleyEra [✔] (2468ms)
        transaction: ShelleyTx ShelleyEra [✔] (2685ms)
    Huddle
      address: Addr [✔] (1ms)
      bootstrap_witness: Annotator BootstrapWitness [✔] (1ms)
      bootstrap_witness: BootstrapWitness [✔] (2ms)
      reward_account: RewardAccount [✔] (1ms)
      stake_credential: Credential 'Staking [✔]
      transaction_body: Annotator (MemoBytes ShelleyTxBodyRaw) [✔] (31ms)
      transaction_body: MemoBytes ShelleyTxBodyRaw [✔] (28ms)
      transaction_output: ShelleyTxOut ShelleyEra [✔]
      relay: StakePoolRelay [✔] (2ms)
      certificate: ShelleyTxCert ShelleyEra [✔] (4ms)
      transaction_input: TxIn [✔] (1ms)
      transaction_metadata: Annotator (MemoBytes (ShelleyTxAuxDataRaw ShelleyEra)) [✔] (32ms)
      transaction_metadata: MemoBytes (ShelleyTxAuxDataRaw ShelleyEra) [✔] (31ms)
      multisig_script: Annotator (MemoBytes (MultiSigRaw ShelleyEra)) [✔] (35ms)
      multisig_script: MultiSig ShelleyEra [✔] (35ms)
      update: Update ShelleyEra [✔] (110ms)
      proposed_protocol_parameter_updates: Map (KeyHash 'Genesis) (PParamsUpdate ShelleyEra) [✔] (184ms)
      protocol_param_update: PParamsUpdate ShelleyEra [✔] (16ms)
      transaction: Annotator (Tx ShelleyEra) [✔] (42ms)
      transaction: ShelleyTx ShelleyEra [✔] (38ms)
      transaction_witness_set: Annotator (MemoBytes (ShelleyTxWitsRaw ShelleyEra)) [✔] (33ms)
      transaction_witness_set: ShelleyTxWits ShelleyEra [✔] (36ms)
      DecCBOR instances equivalence via CDDL
        bootstrap_witness: BootstrapWitness [✔]
        transaction_body: MemoBytes ShelleyTxBodyRaw [✔] (28ms)
        transaction_metadata: MemoBytes (ShelleyTxAuxDataRaw ShelleyEra) [✔] (33ms)
        multisig_script: MultiSig ShelleyEra [✔] (32ms)
        transaction: ShelleyTx ShelleyEra [✔] (35ms)
  ShelleyImpSpec
    Version 2
      LEDGER
        Transactions update UTxO [✔] (7ms)
      EPOCH
        Runs basic transaction [✔] (109ms)
        Crosses epoch boundaries [✔] (101ms)
      UTXOW
        Bootstrap Witness
          Valid Witnesses [✔] (1ms)
          InvalidWitnessesUTXOW [✔]?7h
        MissingVKeyWitnessesUTXOW [✔]
        MissingScriptWitnessesUTXOW [✔]
        MissingTxBodyMetadataHash [✔]
        MissingTxMetadata [✔]
        ConflictingMetadataHash [✔]
        ExtraneousScriptWitnessesUTXOW [✔]
      UTXO
        ShelleyUtxoPredFailure
          ValueNotConservedUTxO [✔] (1ms)
  ShelleyPureTests
    InstantStakeIncludesRewards [✔] (1188ms)
      +++ OK, passed 100 tests.
  Shelley
    RoundTrip JSON
      PParams ShelleyEra [✔] (19ms)
        +++ OK, passed 100 tests.
      FromByronTranslationContext [✔] (48ms)
        +++ OK, passed 100 tests.
  Shelley era JSON Roundtrip: Shelley
    TransitionConfig ShelleyEra [✔] (3433ms)
      +++ OK, passed 100 tests.

Failures:

  testlib/Test/Cardano/Ledger/Era/Spec.hs:35:11: 
  1) Spec for every Era, JSON, Golden, Genesis
       
       Uncaught Exception: /nix/store/zclb47rzkqrzch2nsb5q4hlm1gd4r6yp-cardano-ledger-shelley-lib-testlib-1.17.0.0-data/share/ghc-9.6.7/x86_64-osx-ghc-9.6.7/cardano-ledger-shelley-1.17.0.0/golden/json/shelley-genesis.json: withBinaryFile: does not exist (No such file or directory)

  To rerun use: --match "/Spec for every Era/JSON/Golden/Genesis/" --seed 1179120352

Randomized with seed 1179120352

Finished in 311.1101 seconds
123 examples, 1 failure