Skip to content

feat: remove context equivalence Plutus tests and related scripts#3363

Merged
mkoura merged 1 commit intomasterfrom
remove_context_equivalence_tests
Mar 10, 2026
Merged

feat: remove context equivalence Plutus tests and related scripts#3363
mkoura merged 1 commit intomasterfrom
remove_context_equivalence_tests

Conversation

@mkoura
Copy link
Collaborator

@mkoura mkoura commented Mar 9, 2026

The working version of create-script-context tool is not available for several years, and the https://github.com/IntersectMBO/plutus-apps repo where the tool comes from is archived. The tests relying on the tool have been disabled for a long time.

  • Remove all tests and code related to "context equivalence" for Plutus scripts, including:
    • Test cases for context equivalence in minting and spending (build and build-raw flows)
    • Associated Plutus scripts and test data files
    • Helper functions and constants for context equivalence
    • The .github/source_plutus_apps.sh script and related setup logic
    • The create_script_context utility function
  • Clean up imports and references to removed functionality

This streamlines the codebase by removing long-disabled or broken tests and dependencies on the create-script-context tool.

@mkoura mkoura requested a review from saratomaz as a code owner March 9, 2026 16:41
@mkoura mkoura requested review from Copilot and removed request for saratomaz March 9, 2026 16:41
Copy link
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

Removes long-disabled Plutus “context equivalence” tests and the associated dependency chain on the archived plutus-apps create-script-context tool, simplifying the test suite and CI setup.

Changes:

  • Deleted context-equivalence minting/spending tests (build and build-raw flows) and removed related constants/helpers.
  • Removed the create_script_context utility wrapper and CI plumbing for sourcing/building create-script-context.
  • Cleaned up imports and removed the obsolete Plutus script artifacts used only by the deleted tests.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
cardano_node_tests/utils/helpers.py Updates tool_has docstring example away from create-script-context.
cardano_node_tests/utils/clusterlib_utils.py Removes create_script_context wrapper for plutus-apps tool.
cardano_node_tests/tests/tests_plutus/test_spend_raw.py Deletes spending context-equivalence test and related imports.
cardano_node_tests/tests/tests_plutus/test_spend_build.py Deletes spending context-equivalence test and related imports.
cardano_node_tests/tests/tests_plutus/test_mint_raw.py Deletes minting context-equivalence test and related imports/usages.
cardano_node_tests/tests/tests_plutus/test_mint_build.py Deletes minting context-equivalence test and related imports/usages.
cardano_node_tests/tests/plutus_common.py Removes context-equivalence script paths, costs, and the blocker-wrapper helper.
cardano_node_tests/tests/common.py Removes the now-unneeded SKIPIF_MISMATCHED_ERAS marker.
cardano_node_tests/tests/data/plutus/v1/minting-context-equivalence-test.plutus Deletes unused Plutus script artifact.
cardano_node_tests/tests/data/plutus/v1/context-equivalence-test.plutus Deletes unused Plutus script artifact.
.github/source_plutus_apps.sh Removes script that built/sourced create-script-context.
.github/regression.sh Removes optional plutus-apps setup branch tied to create-script-context.

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

You can also share your feedback on Copilot code review. Take the survey.

The working version of `create-script-context` tool is not available for several years, and the https://github.com/IntersectMBO/plutus-apps repo where the tool comes from is archived. The tests relying on the tool have been disabled for a long time.

- Remove all tests and code related to "context equivalence" for Plutus scripts, including:
  - Test cases for context equivalence in minting and spending (build and build-raw flows)
  - Associated Plutus scripts and test data files
  - Helper functions and constants for context equivalence
  - The `.github/source_plutus_apps.sh` script and related setup logic
  - The `create_script_context` utility function
- Clean up imports and references to removed functionality

This streamlines the codebase by removing long-disabled or broken tests and dependencies on the `create-script-context` tool.
@mkoura mkoura force-pushed the remove_context_equivalence_tests branch from 9abf7af to 2bb9896 Compare March 10, 2026 10:16
@mkoura mkoura merged commit dda2efe into master Mar 10, 2026
3 checks passed
@mkoura mkoura deleted the remove_context_equivalence_tests branch March 10, 2026 10:20
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