Merge pull request #6595 from IntersectMBO/improve-gha
ci: improve github actions
ci: improve github actions
- Separates cost models from the rest of the parameters - Uses an object for the cost model instead of an array
Were removed when the node started only considering valid what mainnet shipped with
The pool relays were wrote into the Shelley genesis (via `pool-relays.json` and `cardano-cli ... --relays` / `--relay-specification-file`) are only consumed by ledger-peer discovery. With ledger peers off and `publicRoots` empty, the relay records in genesis are never read. Every workbench topology disables it: - the supervisor (local / 127.0.0.1) backend gets `useLedgerAfterSlot: -1` from `cardano-topology projection-for`. - the Nomad backend hardcodes the same value (nix/workbench/backend/nomad-job.nix).
Signed-off-by: solunolab <[email protected]>
Was converging to `create-staked` output, keep `create-testnet-data` layout:
- pools-keys/poolN/{cold,kes,vrf,opcert}.{skey,vkey,cert,counter}
- stake-delegators/delegatorN/{payment,staking}.{skey,vkey}
- drep-keys/drepN/drep.{skey,vkey}
- utxo-keys/utxoN/utxo.{skey,vkey}
- genesis-keys/genesisN/key.{skey,vkey}
- delegate-keys/delegateN/{key,kes,vrf,opcert}.{skey,vkey,cert,counter}
- byron-gen-command/
Normalises genesis files names. Every era's genesis file is now genesis.<era>.json everywhere:
- genesis.byron.json
- genesis.shelley.json
- genesis.alonzo.json
- genesis.conway.json
- genesis.dijkstra.json
Details:
- create-testnet-data drops its symlink-creation block and the `link_keys` helper (no longer needed under the native layout).
- Removes `Massage_the_key_file_layout_to_match_AWS`, `key_depl` and `key_genesis`.
Genesis file names are unchanged here.
Replaces 'cardano-cli byron genesis genesis'.
This introduces changes to the cache output so the directory entry now has the "v2" suffix.
Removes genesis-byron-{jq,modular} and the genesis-byron dispatcher.
Default is `create-testnet-data`
Function `derive-from-cache` becomes a backend implementation. Both `derive-from-cache` and `finalise-cache-entry` are merged and inlined into `derive-from-cache-jq` (`derive-from-cache-modular` delegates to "jq").
Resolve `$genesis_backend` once at source time and replace all the 'if WB_MODULAR_GENESIS' with a single `"X-$genesis_backend" "$@"`. Applies to `profile-cache-key-input`, `profile-cache-key`, `spec` and `pool-relays`. Also, the decision between `create-testnet-data` and `create-staked` (WB_CREATE_TESTNET_DATA), now lives in the "jq" backend (the "modular" backend only implements spec, pool-relays, byron and cache key functions, not the create-testnet-data call).
config parsing Replace locally-defined orphan `ToJSON`/`FromJSON` instances that already exist in `Cardano.Network.OrphanInstances` (from the `cardano-diffusion:orphan-instances` sublibrary) with imports of that module: - `TopologyP2P`: remove `FromJSON/ToJSON PeerTrustable`, `FromJSON/ToJSON (NetworkTopology UseBootstrapPeers PeerTrustable)`, and `FromJSON UseBootstrapPeers`; add `Cardano.Network.OrphanInstances ()` and `Ouroboros.Network.OrphanInstances ()` imports. - `StateRep`: remove local `ToJSON/FromJSON NodeToNodeVersion`, `ToJSON/FromJSON NodeToClientVersion`, and `parseBoundedEnum`; add `Cardano.Network.OrphanInstances ()` import. - `Tracers`: remove Show-based `ToJSON NodeToNodeVersionData` and `ToJSON NodeToClientVersionData` stubs; add `Cardano.Network.OrphanInstances ()` import. Additionally fix two pre-existing issues in `Consensus.hs`: - `deltaq`: use `toJSON gsv` (structured JSON via `Ouroboros.Network.OrphanInstances`) instead of `String . show`. - `TraceDecisionEvent`: restore the `dtal >= DMaximum` conditional branch (replacing the reversed fold), using `forMachine DMaximum` for the verbose case. In `Startup.hs`, fix `ConsensusNetworkVersionTuple` to emit proper structured JSON for `nodeToClientVersion`/`nodeToNodeVersion` via `ToJSON` from `Cardano.Network.OrphanInstances`, and fix the `maxNodeToNode/ClientVersion` field to show only the version key rather than the full `(key, value)` pair.