Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .github/regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,6 @@ case "${DBSYNC_REV:-}" in
;;
esac

# Setup plutus-apps (disabled by default).
# The "plutus-apps" repo is needed for the `create-script-context` tool, which is used by the
# Plutus tests that are testing script context.
# TODO: The `create-script-context` tool is broken for a very long time, hence disabled.
# See https://github.com/IntersectMBO/plutus-apps/issues/1107
case "${PLUTUS_APPS_REV:="none"}" in
"none" )
unset PLUTUS_APPS_REV
;;
* )
# shellcheck disable=SC1091
. .github/source_plutus_apps.sh
;;
esac

# setup cardano-cli (use the built-in version by default)
case "${CARDANO_CLI_REV:-}" in
"" )
Expand Down
24 changes: 0 additions & 24 deletions .github/source_plutus_apps.sh

This file was deleted.

5 changes: 0 additions & 5 deletions cardano_node_tests/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@
reason="`build-estimate` fails to balance tx with no txouts",
)

SKIPIF_MISMATCHED_ERAS = pytest.mark.skipif(
VERSIONS.transaction_era != VERSIONS.cluster_era,
reason="transaction era must be the same as node era",
)

SKIPIF_WRONG_ERA = pytest.mark.skipif(
not (
VERSIONS.cluster_era >= VERSIONS.DEFAULT_CLUSTER_ERA
Expand Down

This file was deleted.

This file was deleted.

40 changes: 0 additions & 40 deletions cardano_node_tests/tests/plutus_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from cardano_clusterlib import clusterlib
from packaging import version

from cardano_node_tests.tests import issues
from cardano_node_tests.utils import cluster_nodes
from cardano_node_tests.utils import clusterlib_utils
from cardano_node_tests.utils import dbsync_utils
Expand All @@ -27,7 +26,6 @@
ALWAYS_FAILS_PLUTUS_V1 = SCRIPTS_V1_DIR / "always-fails.plutus"
GUESSING_GAME_PLUTUS_V1 = SCRIPTS_V1_DIR / "custom-guess-42-datum-42.plutus"
GUESSING_GAME_UNTYPED_PLUTUS_V1 = SCRIPTS_V1_DIR / "guess-42-datum-42-txin.plutus"
CONTEXT_EQUIVALENCE_PLUTUS_V1 = SCRIPTS_V1_DIR / "context-equivalence-test.plutus"

ALWAYS_SUCCEEDS_PLUTUS_V2 = SCRIPTS_V2_DIR / "always-succeeds-spending.plutus"
ALWAYS_FAILS_PLUTUS_V2 = SCRIPTS_V2_DIR / "always-fails.plutus"
Expand All @@ -42,7 +40,6 @@

MINTING_PLUTUS_V1 = SCRIPTS_V1_DIR / "anyone-can-mint.plutus"
MINTING_TIME_RANGE_PLUTUS_V1 = SCRIPTS_V1_DIR / "time_range.plutus"
MINTING_CONTEXT_EQUIVALENCE_PLUTUS_V1 = SCRIPTS_V1_DIR / "minting-context-equivalence-test.plutus"
MINTING_WITNESS_REDEEMER_PLUTUS_V1 = SCRIPTS_V1_DIR / "witness-redeemer.plutus"
MINTING_TOKENNAME_PLUTUS_V1 = SCRIPTS_V1_DIR / "mint-tokenname.plutus"

Expand Down Expand Up @@ -96,8 +93,6 @@ class ExecutionCost:
ALWAYS_SUCCEEDS_COST = ExecutionCost(per_time=368_100, per_space=1_700, fixed_cost=125)
GUESSING_GAME_COST = ExecutionCost(per_time=282_016_214, per_space=1_034_516, fixed_cost=80_025)
GUESSING_GAME_UNTYPED_COST = ExecutionCost(per_time=4_985_806, per_space=11_368, fixed_cost=1_016)
# TODO: fix once context equivalence tests can run again
CONTEXT_EQUIVALENCE_COST = ExecutionCost(per_time=100_000_000, per_space=1_000_00, fixed_cost=947)

ALWAYS_FAILS_V2_COST = ExecutionCost(per_time=230_100, per_space=1_100, fixed_cost=81)
ALWAYS_SUCCEEDS_V2_COST = ExecutionCost(per_time=230_100, per_space=1_100, fixed_cost=81)
Expand All @@ -122,10 +117,6 @@ class ExecutionCost:
MINTING_TIME_RANGE_COST = ExecutionCost(
per_time=277_239_670, per_space=1_044_064, fixed_cost=80_232
)
# TODO: fix once context equivalence tests can run again
MINTING_CONTEXT_EQUIVALENCE_COST = ExecutionCost(
per_time=358_849_733, per_space=978_434, fixed_cost=82_329
)
MINTING_WITNESS_REDEEMER_COST = ExecutionCost(
per_time=261_056_789, per_space=1_013_630, fixed_cost=75_278
)
Expand Down Expand Up @@ -895,34 +886,3 @@ def xfail_on_secp_error(cluster_obj: clusterlib.ClusterLib, algorithm: str, err_

if before_pv8 and (is_forbidden or is_overspending):
pytest.xfail("The SECP256k1 builtin functions are not allowed before protocol version 8")


def create_script_context_w_blockers(
cluster_obj: clusterlib.ClusterLib,
plutus_version: int,
redeemer_file: pl.Path,
tx_file: pl.Path | None = None,
) -> None:
"""Run the `create-script-context` command (available in plutus-apps).

This variant of the `create_script_context` function catches known errors and fails the test
with a blocker issue.
"""
try:
clusterlib_utils.create_script_context(
cluster_obj=cluster_obj,
plutus_version=plutus_version,
redeemer_file=redeemer_file,
tx_file=tx_file,
)
except RuntimeError as err:
str_err = str(err)
if "Unwitnessed Tx ConwayEra" in str_err:
pytest.xfail("create-script-context: unsupported 'Unwitnessed Tx ConwayEra'")
if "DeserialiseFailure" in str_err:
issues.plutus_apps_583.finish_test()
if "TextEnvelopeTypeError" in str_err:
issues.plutus_apps_1078.finish_test()
if "PlutusScriptV1 custom redeemer not wired up" in str_err:
issues.plutus_apps_1107.finish_test()
raise
Loading
Loading