Skip to content

Add an end-to-end test for Dijkstra transaction witnessing - #1432

Merged
palas merged 3 commits into
masterfrom
add-dijkstra-witnessing-test
Sep 1, 2026
Merged

Add an end-to-end test for Dijkstra transaction witnessing#1432
palas merged 3 commits into
masterfrom
add-dijkstra-witnessing-test

Conversation

@palas

@palas palas commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Context

This is the regression test for #1422: transaction assemble used to reject witness
files from eras after Conway, and the fix merged without its test because the test needs
dijkstra transaction commands to exist on master, which only happened in the PR below
this one.

How to trust this PR

  • Test-only: zero changes to library or executable code
  • The test passes
  • It is a simple workflow

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 Aug 28, 2026
Copilot AI lite review requested due to automatic review settings August 28, 2026 19:49

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.

Pull request overview

Adds a golden end-to-end regression test to ensure cardano-cli dijkstra transaction assemble can consume witness files produced by cardano-cli dijkstra transaction witness, covering the Dijkstra-era witness round-trip that previously failed (issue #1422).

Changes:

  • Introduces a new golden property test that builds a raw tx body, produces a detached witness, then assembles a signed tx and asserts the resulting text-envelope era types.
  • Registers the new test module in the cardano-cli-golden test-suite so it’s compiled and discovered.
  • Adds a changelog fragment documenting the new test coverage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
cardano-cli/test/cardano-cli-golden/Test/Golden/Dijkstra/Transaction/Assemble.hs New golden E2E test for Dijkstra build-rawwitnessassemble, asserting expected text envelope types.
cardano-cli/cardano-cli.cabal Adds the new Dijkstra test module to the golden test-suite module list.
.changes/20260828_214439_cardano-cli_palas_dijkstra_witnessing_test.yml Changelog fragment noting the added Dijkstra witnessing regression test.

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

Comment thread cardano-cli/test/cardano-cli-golden/Test/Golden/Dijkstra/Transaction/Assemble.hs Outdated
Base automatically changed from enable-dijkstra-command-set to master August 31, 2026 13:16
@palas
palas force-pushed the add-dijkstra-witnessing-test branch 2 times, most recently from 88c3cef to 14c8de7 Compare August 31, 2026 13:17
palas added 2 commits August 31, 2026 15:19
Exercise the newly enabled Dijkstra transaction commands end to end:
build-raw, witness and assemble a transaction, asserting the text
envelope types along the way.
Replace the envelope-type substring assertions with byte-exact golden
comparisons of both the witness and the assembled transaction, matching
the Conway assemble test; the outputs are deterministic since the
transaction fields are fixed and Ed25519 signing is deterministic.
@palas
palas force-pushed the add-dijkstra-witnessing-test branch from 3d947d0 to 4e99a78 Compare August 31, 2026 13:19
@palas
palas requested a review from carbolymer August 31, 2026 13:22
Replace the made-up transaction in the witnessing end-to-end test with
one that was built with these exact commands, submitted to a local
Dijkstra testnet (magic 42) and accepted on chain; the
golden files are byte-identical to the envelopes that testnet accepted.
The witnessing key is the testnet's genesis UTxO key, vendored as a
test input.
@palas
palas added this pull request to the merge queue Sep 1, 2026
Merged via the queue into master with commit af6862f Sep 1, 2026
25 checks passed
@palas
palas deleted the add-dijkstra-witnessing-test branch September 1, 2026 09:55
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.

3 participants