Skip to content

Add --spec-dijkstra flag to dijkstra genesis create-testnet-data - #1465

Merged
palas merged 2 commits into
masterfrom
add-spec-dijkstra
Oct 13, 2026
Merged

palas merged 2 commits into
masterfrom
add-spec-dijkstra

Conversation

@palas

@palas palas commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Context

The --spec-dijkstra flag in dijkstra genesis create-testnet-data was hidden. This PR shows it and adds a golden test for it.

How to trust this PR

The change itself it is pretty straightforward. But how do we know that the produced .spec.json file does indeed work? I've tested that in this branch in cardano-node: palas/spec-dijkstra-test/prepare-11.2

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff
  • Changelog fragment added in .changes/

@palas palas self-assigned this Oct 13, 2026
Copilot AI balanced review requested due to automatic review settings October 13, 2026 20:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The option exposure, generated-output regression test, valid fixture, and help snapshots are consistent and complete.

0 open findings

What changed in this PR

Exposes the existing --spec-dijkstra option and verifies that custom Dijkstra genesis specifications are preserved.

Changes:

  • Makes --spec-dijkstra visible in CLI help.
  • Adds functional coverage with a custom Dijkstra genesis fixture.
  • Updates help snapshots and changelog metadata.
File Description
cardano-cli/​src/​Cardano/​CLI/​EraBased/​Genesis/​Option.hs Exposes the Dijkstra specification option.
cardano-cli/​test/​cardano-cli-golden/​Test/​Golden/​CreateTestnetData.hs Tests custom Dijkstra genesis output.
cardano-cli/​test/​cardano-cli-golden/​files/​input/​dijkstra/​genesis.dijkstra.spec.json Adds the test specification.
cardano-cli/​test/​cardano-cli-golden/​files/​golden/​help/​latest_genesis_create-testnet-data.cli Updates latest-era help.
cardano-cli/​test/​cardano-cli-golden/​files/​golden/​help/​dijkstra_genesis_create-testnet-data.cli Updates Dijkstra help.
cardano-cli/​test/​cardano-cli-golden/​files/​golden/​help/​conway_genesis_create-testnet-data.cli Updates Conway help.
cardano-cli/​test/​cardano-cli-golden/​files/​golden/​help.cli Updates consolidated help output.
.changes/​20261013_205950_cardano-cli_palas_spec_dijkstra_flag.yml Documents the feature.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@palas
palas force-pushed the add-spec-dijkstra branch from f8bc1a4 to 57fa88b Compare October 13, 2026 20:20
@palas
palas added this pull request to the merge queue Oct 13, 2026
Merged via the queue into master with commit aae20e4 Oct 13, 2026
25 checks passed
@palas
palas deleted the add-spec-dijkstra branch October 13, 2026 22:01

@carbolymer carbolymer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍🏻

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