Skip to content

fix(tests): switch tx-view test to Conway-era tx#3479

Merged
mkoura merged 1 commit into
masterfrom
fix_tx_view_conway_tx
May 21, 2026
Merged

fix(tests): switch tx-view test to Conway-era tx#3479
mkoura merged 1 commit into
masterfrom
fix_tx_view_conway_tx

Conversation

@mkoura
Copy link
Copy Markdown
Collaborator

@mkoura mkoura commented May 21, 2026

Babbage-era transactions no longer supported by cardano-cli transaction view. Regenerate golden files from Conway txs and drop the CLI 799 issue probe.

Strip the legacy update proposal field from view output before comparing, since newer cardano-cli omits it.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the cardano-cli transaction view golden-file test to use Conway-era transactions now that Babbage-era transactions are no longer supported by the CLI’s view output, and normalizes the output across CLI versions by stripping the legacy update proposal field before comparison.

Changes:

  • Switch test_tx_view to use Conway-era tx artifacts and new Conway golden output files.
  • Remove the CLI issue-799 probe and drop the older “redeemers/datums” output-format skip logic.
  • Remove Babbage-era tx fixtures and introduce a Conway signed tx fixture; update golden JSON outputs accordingly.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
cardano_node_tests/tests/test_cli.py Uses Conway tx fixtures for transaction view and sanitizes legacy update proposal field before comparing to golden outputs.
cardano_node_tests/tests/data/test_tx_metadata_both_tx.signed Removes the deprecated Babbage-era signed tx fixture.
cardano_node_tests/tests/data/test_tx_metadata_both_tx.body Removes the deprecated Babbage-era tx-body fixture.
cardano_node_tests/tests/data/test_tx_metadata_both_tx_conway.signed Adds a Conway-era signed tx fixture for --tx-file view testing.
cardano_node_tests/tests/data/test_tx_metadata_both_tx_conway_json.out Updates the expected transaction view --tx-file JSON output for Conway.
cardano_node_tests/tests/data/test_tx_metadata_both_tx_conway_body_json.out Updates the expected transaction view --tx-body-file JSON output for Conway.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cardano_node_tests/tests/test_cli.py
Comment thread cardano_node_tests/tests/test_cli.py Outdated
Babbage-era transactions no longer supported by `cardano-cli
transaction view`. Regenerate golden files from Conway txs and
drop the CLI 799 issue probe.

Strip the legacy `update proposal` field from view output before
comparing, since newer cardano-cli omits it.
@mkoura mkoura force-pushed the fix_tx_view_conway_tx branch from 3fe5a6d to bdc603b Compare May 21, 2026 15:38
@mkoura mkoura merged commit 6790233 into master May 21, 2026
3 checks passed
@mkoura mkoura deleted the fix_tx_view_conway_tx branch May 21, 2026 15:51
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.

2 participants