Merge pull request #1621 from input-output-hk/fast_cluster_skips
Skip tests that cannot run on fast local cluster
Skip tests that cannot run on fast local cluster
pytestmark = common.SKIPIF_WRONG_ERA
# TODO: It would be better to use `cluster_nodes.get_cluster_type().uses_shortcut`, but we would
# need to get a cluster instance first. That would be too expensive in this module, as we are using
# custom startup scripts.
SKIPIF_HF_SHORTCUT = pytest.mark.skipif(
"_fast" in configuration.SCRIPTS_DIRNAME,
reason="cannot run on local cluster with HF shortcut",
)
@pytest.fixture(scope="module")
def short_kes_start_cluster(tmp_path_factory: TempPathFactory) -> Path:
"""Update *slotsPerKESPeriod* and *maxKESEvolutions*."""
MAX_INT_VAL = 2**64
@allure.link(helpers.get_vcs_link())
@SKIPIF_HF_SHORTCUT
@pytest.mark.order(5)
@pytest.mark.long
def test_expired_kes(
from cardano_node_tests.cluster_management import cluster_management
from cardano_node_tests.tests import common
from cardano_node_tests.tests import delegation
from cardano_node_tests.utils import cluster_nodes
from cardano_node_tests.utils import clusterlib_utils
from cardano_node_tests.utils import helpers
saturated and oversaturated
"""
# pylint: disable=too-many-statements,too-many-locals,too-many-branches
cluster = cluster_lock_pools
temp_template = common.get_test_id(cluster)
if (
cluster_nodes.get_cluster_type().type == cluster_nodes.ClusterType.LOCAL
and cluster_nodes.get_cluster_type().uses_shortcut
):
# TODO: would need more investigation and changes to initial setup of local cluster
# to make this test work with HF shortcut
pytest.skip("Cannot run on local cluster with HF shortcut.")
epoch_saturate = 2
epoch_oversaturate = 4
epoch_withdrawal = 6
cluster = cluster_lock_pools
temp_template = common.get_test_id(cluster)
initial_balance = 1_000_000_000
faucet_rec = cluster_manager.cache.addrs_data["faucet"]
temp_template = common.get_test_id(cluster)
if (
cluster_nodes.get_cluster_type().type == cluster_nodes.ClusterType.LOCAL
and cluster_nodes.get_cluster_type().uses_shortcut
):
pytest.skip("Cannot run on local cluster with HF shortcut, see node issue #4556.")
clusterlib_utils.wait_for_epoch_interval(
cluster_obj=cluster, start=5, stop=common.EPOCH_STOP_SEC_BUFFER
)
By running 'make upgrade' command.
By running 'make upgrade' command.
By running 'cargo update' command.