Skip to content

Commit

Permalink
Merge pull request #2907 from IntersectMBO/upgrade_tests_pv10
Browse files Browse the repository at this point in the history
feat: upgrade testing now starts in protocol version 10
  • Loading branch information
mkoura authored Feb 12, 2025
2 parents 3f1d418 + 5a9bf8a commit 8da7eb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/node_upgrade_pytest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ if [ "$1" = "step1" ]; then

export UPGRADE_TESTS_STEP=1
export ENABLE_LEGACY=1
export PV9=1

if [ -n "${BASE_TAR_URL:-""}" ]; then
# download and extract base revision binaries
Expand Down Expand Up @@ -107,7 +106,6 @@ elif [ "$1" = "step2" ]; then

export UPGRADE_TESTS_STEP=2
export MIXED_P2P=1
export PV9=1
unset ENABLE_LEGACY

# Setup `cardano-cli` binary
Expand Down Expand Up @@ -233,7 +231,7 @@ elif [ "$1" = "step2" ]; then
pytest cardano_node_tests/tests/test_node_upgrade.py -k test_ignore_log_errors
err_retval="$?"

# Update PlutusV3 cost models.
# Update Plutus cost models.
pytest cardano_node_tests/tests/test_node_upgrade.py -k test_update_cost_models || exit 6

# run smoke tests
Expand Down Expand Up @@ -269,7 +267,7 @@ elif [ "$1" = "step3" ]; then
printf "STEP3 start: %(%H:%M:%S)T\n" -1

export UPGRADE_TESTS_STEP=3
unset ENABLE_LEGACY MIXED_P2P PV9
unset ENABLE_LEGACY MIXED_P2P

# Setup `cardano-cli` binary
if [ -n "${UPGRADE_CLI_REVISION:-""}" ]; then
Expand Down
2 changes: 2 additions & 0 deletions cardano_node_tests/tests/test_node_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def test_ignore_log_errors(
)

@allure.link(helpers.get_vcs_link())
@pytest.mark.disabled(reason="The test is not needed when we are already in PV10 on mainnet")
@pytest.mark.skipif(UPGRADE_TESTS_STEP != 2, reason="runs only on step 2 of upgrade testing")
def test_update_cost_models(
self,
Expand Down Expand Up @@ -196,6 +197,7 @@ def _check_models(cost_models: dict):
_check_models(enact_gov_state["currentPParams"]["costModels"])

@allure.link(helpers.get_vcs_link())
@pytest.mark.disabled(reason="The test is not needed when we are already in PV10 on mainnet")
@pytest.mark.skipif(UPGRADE_TESTS_STEP != 3, reason="runs only on step 3 of upgrade testing")
def test_hardfork(
self,
Expand Down
4 changes: 1 addition & 3 deletions src_docs/source/test_results/nightly_system_tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,18 @@ Nightly upgrade testing
* `Step 1 <https://cardano-tests-reports-3-74-115-22.nip.io/cardano-node-tests-nightly-upgrade/step1/>`__: |nightly-upgrade-step1-badge|
* use the `latest cardano-node release <https://github.com/IntersectMBO/cardano-node-tests/blob/master/.github/env_nightly_upgrade>`__ for Mainnet
* network in Conway era
* protocol version 9 (bootstrap phase)
* protocol version 10
* Constitutional Commitee has 5 members
* default (legacy) network topology
* smoke tests
* governance info action test
* `Step 2 <https://cardano-tests-reports-3-74-115-22.nip.io/cardano-node-tests-nightly-upgrade/step2/>`__: |nightly-upgrade-step2-badge|
* upgrade all nodes except one to the latest cardano-node master
* mixed network topology (half nodes P2P, half nodes legacy topology)
* update PlutusV3 cost models
* smoke tests
* `Step 3 <https://cardano-tests-reports-3-74-115-22.nip.io/cardano-node-tests-nightly-upgrade/step3/>`__: |nightly-upgrade-step3-badge|
* upgrade the last remaining node to latest cardano-node master
* P2P network topology
* hard fork to Conway protocol version 10
* smoke tests
* governance treasury withdrawal action test

Expand Down

0 comments on commit 8da7eb6

Please sign in to comment.