Skip to content

Commit

Permalink
Resolve merge conflict and apply PR review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturWieczorek committed Jun 24, 2024
2 parents 4244027 + c9ae9a7 commit 4d73069
Show file tree
Hide file tree
Showing 105 changed files with 3,056 additions and 1,094 deletions.
4 changes: 3 additions & 1 deletion .github/env_nightly
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
CLUSTER_ERA=babbage
TX_ERA=babbage
MIXED_P2P=true
NUM_POOLS=4
CI_BYRON_CLUSTER=true
3 changes: 3 additions & 0 deletions .github/env_nightly_conway_bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CLUSTER_ERA=conway
COMMAND_ERA=conway
ENABLE_P2P=true
1 change: 1 addition & 0 deletions .github/env_nightly_conway_cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CLUSTER_ERA=conway
COMMAND_ERA=conway
PV10=true
ENABLE_P2P=true
1 change: 1 addition & 0 deletions .github/env_nightly_conway_nocc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CLUSTER_ERA=conway
COMMAND_ERA=conway
NO_CC=true
PV10=true
ENABLE_P2P=true
2 changes: 1 addition & 1 deletion .github/env_nightly_dbsync
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ CLUSTER_ERA=babbage
TX_ERA=babbage
MARKEXPR=dbsync
CLUSTERS_COUNT=5
DBSYNC_REV=sancho-4-2-1
DBSYNC_REV=sancho-5.0.0
DBSYNC_SKIP_INDEXES=true
CI_BYRON_CLUSTER=true
1 change: 0 additions & 1 deletion .github/env_nightly_p2p
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
CLUSTER_ERA=babbage
TX_ERA=babbage
ENABLE_P2P=true
CI_BYRON_CLUSTER=true
19 changes: 14 additions & 5 deletions .github/regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ export SCHEDULING_LOG=scheduling.log
true > "$SCHEDULING_LOG"

MARKEXPR="${MARKEXPR:-""}"
if [ "${MARKEXPR:-""}" = "all" ]; then
if [ "$MARKEXPR" = "all" ]; then
unset MARKEXPR
elif [ "${MARKEXPR:-""}" = "conway only" ]; then
elif [ "$MARKEXPR" = "conway only" ]; then
unset MARKEXPR
export TESTS_DIR="cardano_node_tests/tests/tests_conway"
fi
Expand All @@ -89,11 +89,20 @@ if [ -n "${CLUSTERS_COUNT:-""}" ]; then
export CLUSTERS_COUNT
fi

export CLUSTER_ERA="${CLUSTER_ERA:-"$DEFAULT_CLUSTER_ERA"}"
CLUSTER_ERA="${CLUSTER_ERA:-"$DEFAULT_CLUSTER_ERA"}"
if [ "$CLUSTER_ERA" = "conway 9" ]; then
unset PV10
CLUSTER_ERA="conway"
elif [ "$CLUSTER_ERA" = "conway 10" ]; then
export PV10=1
CLUSTER_ERA="conway"
fi
export CLUSTER_ERA

if [ "${TX_ERA:-""}" = "default" ]; then
TX_ERA="${TX_ERA:-""}"
if [ "$TX_ERA" = "default" ]; then
export TX_ERA=""
elif [ "${TX_ERA:-""}" = "conway" ]; then
elif [ "$TX_ERA" = "conway" ]; then
unset TX_ERA
export COMMAND_ERA="conway"
fi
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Nightly tests Alonzo Tx
name: Nightly tests Conway Bootstrap

on:
schedule:
Expand All @@ -11,7 +11,7 @@ jobs:
# reusable workflow from local repo and same branch as this config
uses: ./.github/workflows/regression_reusable.yaml
with:
env-path: .github/env_nightly_alonzo_tx
env-path: .github/env_nightly_conway_bootstrap
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CI_FAIL_MAILS: ${{ secrets.NIGHTLY_FAIL_MAILS }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly_conway_nocc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Nightly tests Conway no CC

on:
schedule:
- cron: '15 07 * * *'
- cron: '15 04 * * *'
workflow_dispatch:

jobs:
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/nightly_mixed.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/nightly_shelley_tx.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/nightly_upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Nightly tests upgrade

on:
schedule:
- cron: '15 06 * * *'
- cron: '15 05 * * *'
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nix_smoke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:
description: "Cluster era"
options:
- babbage
- conway
- conway 9
- conway 10
default: babbage
tx_era:
type: choice
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/regression_reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GH_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upgrade_reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v26
uses: cachix/install-nix-action@V27
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GH_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# Workdir for running tests
run_workdir/
dev_workdir/

# Status files of cluster instances
/state-cluster*/
Expand Down
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ When running tests, the testing framework starts and stops cluster instances as
1. cd back to 'cardano-node-tests' repo
```sh
cd ../cardano-node-test
cd ../cardano-node-tests
```
1. activate virtual env
Expand All @@ -179,22 +179,24 @@ When running tests, the testing framework starts and stops cluster instances as
export PYTHONPATH="$(echo $VIRTUAL_ENV/lib/python3*/site-packages)":$PYTHONPATH
```
1. prepare cluster scripts for starting local cluster directly in Babbage era
1. set env variables
```sh
prepare-cluster-scripts -d <destination dir>/babbage_fast -s cardano_node_tests/cluster_scripts/babbage_fast/
export CARDANO_NODE_SOCKET_PATH="$PWD/dev_workdir/state-cluster0/bft1.socket" DEV_CLUSTER_RUNNING=1
mkdir -p "${CARDANO_NODE_SOCKET_PATH%/*}"
```
1. set env variables
1. prepare cluster scripts for starting local cluster directly in Babbage era
```sh
export CARDANO_NODE_SOCKET_PATH=<your path to cardano-node repo>/state-cluster0/bft1.socket DEV_CLUSTER_RUNNING=1
mkdir -p dev_workdir
prepare-cluster-scripts -c -d dev_workdir/babbage_fast -s cardano_node_tests/cluster_scripts/babbage_fast/
```
1. start the cluster instance in development mode
```sh
<destination dir>/babbage_fast/start-cluster
./dev_workdir/babbage_fast/start-cluster
```
After the cluster starts, keys and configuration files are available in the `<your path to cardano-node repo>/state-cluster0` directory. The pool-related files and keys are located in the `nodes` subdirectory, genesis keys in the `shelley` and `byron` subdirectories, and payment address with initial funds and related keys in the `byron` subdirectory. The local faucet address and related key files are stored in the `addrs_data` subdirectory.
Expand Down
8 changes: 4 additions & 4 deletions cardano_node_tests/chang_us_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ def get_args() -> argparse.Namespace:


def _get_color(status: str) -> str:
if status == requirements.Statuses.SUCCESS:
if status == requirements.Statuses.success.name:
return "green"
if status == requirements.Statuses.FAILURE:
if status == requirements.Statuses.failure.name:
return "red"
if status == requirements.Statuses.PARTIAL_SUCCESS:
if status == requirements.Statuses.partial_success.name:
return "yellow"
return "grey"

Expand All @@ -62,7 +62,7 @@ def main() -> None:

for req_id, req_data in chang_group.items():
# Partial or uncovered requirements should be ignored
if req_id.startswith("int") or req_data["status"] == requirements.Statuses.UNCOVERED:
if req_id.startswith("int") or req_data["status"] == requirements.Statuses.uncovered.name:
continue

color = _get_color(req_data["status"])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"dRepDeposit": 2000000,
"dRepActivity": 100,
"minFeeRefScriptCostPerByte": 0,
"plutusV3CostModel": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
"constitution": {
"anchor": {
"url": "",
Expand All @@ -34,7 +35,6 @@
"committee": {
"members": {
},
"quorum": 0.0,
"threshold": 0.0
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"poolVotingThresholds": {
"motionNoConfidence": 0.51,
"committeeNormal": 0.51,
"committeeNoConfidence": 0.51,
"hardForkInitiation": 0.51,
"ppSecurityGroup": 0.51
},
"dRepVotingThresholds": {
"motionNoConfidence": 0.51,
"committeeNormal": 0.51,
"committeeNoConfidence": 0.51,
"updateToConstitution": 0.51,
"hardForkInitiation": 0.51,
"ppNetworkGroup": 0.51,
"ppEconomicGroup": 0.51,
"ppTechnicalGroup": 0.51,
"ppGovGroup": 0.51,
"treasuryWithdrawal": 0.51
},
"committeeMinSize": 0,
"committeeMaxTermLength": 11000,
"govActionLifetime": 2,
"govActionDeposit": 100000000,
"dRepDeposit": 2000000,
"dRepActivity": 100,
"minFeeRefScriptCostPerByte": 0,
"constitution": {
"anchor": {
"url": "",
"dataHash": "0000000000000000000000000000000000000000000000000000000000000000"
}
},
"committee": {
"members": {
},
"quorum": 0.0,
"threshold": 0.0
}
}
9 changes: 9 additions & 0 deletions cardano_node_tests/cluster_scripts/babbage/start-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,15 @@ if [ "$genesis_created" -eq 0 ] ; then
echo "Failed to generate genesis files, retrying with a different genesis.conway.spec.json"
mv "$STATE_CLUSTER/shelley/genesis.conway.spec.json" \
"$STATE_CLUSTER/shelley/master-genesis.conway.spec.json"
mv "$STATE_CLUSTER/shelley/release_8_9-genesis.conway.spec.json" \
"$STATE_CLUSTER/shelley/genesis.conway.spec.json"
gen_genesis && genesis_created=1 || genesis_created=0
fi

if [ "$genesis_created" -eq 0 ] ; then
echo "Failed to generate genesis files, retrying with a different genesis.conway.spec.json"
mv "$STATE_CLUSTER/shelley/genesis.conway.spec.json" \
"$STATE_CLUSTER/shelley/release_8_9-genesis.conway.spec.json"
mv "$STATE_CLUSTER/shelley/release-genesis.conway.spec.json" \
"$STATE_CLUSTER/shelley/genesis.conway.spec.json"
gen_genesis && genesis_created=1 || genesis_created=0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"dRepDeposit": 2000000,
"dRepActivity": 100,
"minFeeRefScriptCostPerByte": 0,
"plutusV3CostModel": [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
"constitution": {
"anchor": {
"url": "",
Expand All @@ -34,7 +35,6 @@
"committee": {
"members": {
},
"quorum": 0.0,
"threshold": 0.0
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"poolVotingThresholds": {
"motionNoConfidence": 0.51,
"committeeNormal": 0.51,
"committeeNoConfidence": 0.51,
"hardForkInitiation": 0.51,
"ppSecurityGroup": 0.51
},
"dRepVotingThresholds": {
"motionNoConfidence": 0.51,
"committeeNormal": 0.51,
"committeeNoConfidence": 0.51,
"updateToConstitution": 0.51,
"hardForkInitiation": 0.51,
"ppNetworkGroup": 0.51,
"ppEconomicGroup": 0.51,
"ppTechnicalGroup": 0.51,
"ppGovGroup": 0.51,
"treasuryWithdrawal": 0.51
},
"committeeMinSize": 0,
"committeeMaxTermLength": 11000,
"govActionLifetime": 2,
"govActionDeposit": 100000000,
"dRepDeposit": 2000000,
"dRepActivity": 100,
"minFeeRefScriptCostPerByte": 0,
"constitution": {
"anchor": {
"url": "",
"dataHash": "0000000000000000000000000000000000000000000000000000000000000000"
}
},
"committee": {
"members": {
},
"quorum": 0.0,
"threshold": 0.0
}
}
9 changes: 9 additions & 0 deletions cardano_node_tests/cluster_scripts/babbage_fast/start-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,15 @@ if [ "$genesis_created" -eq 0 ] ; then
echo "Failed to generate genesis files, retrying with a different genesis.conway.spec.json"
mv "$STATE_CLUSTER/create_staked/genesis.conway.spec.json" \
"$STATE_CLUSTER/create_staked/master-genesis.conway.spec.json"
mv "$STATE_CLUSTER/create_staked/release_8_9-genesis.conway.spec.json" \
"$STATE_CLUSTER/create_staked/genesis.conway.spec.json"
gen_genesis && genesis_created=1 || genesis_created=0
fi

if [ "$genesis_created" -eq 0 ] ; then
echo "Failed to generate genesis files, retrying with a different genesis.conway.spec.json"
mv "$STATE_CLUSTER/create_staked/genesis.conway.spec.json" \
"$STATE_CLUSTER/create_staked/release_8_9-genesis.conway.spec.json"
mv "$STATE_CLUSTER/create_staked/release-genesis.conway.spec.json" \
"$STATE_CLUSTER/create_staked/genesis.conway.spec.json"
gen_genesis && genesis_created=1 || genesis_created=0
Expand Down
Loading

0 comments on commit 4d73069

Please sign in to comment.