Skip to content

Commit d68e868

Browse files
authored
mark ci e2e tests (#1062)
1 parent 93ce685 commit d68e868

File tree

9 files changed

+12
-4
lines changed

9 files changed

+12
-4
lines changed

.github/actions/tests/local-environment-tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ inputs:
1111
description: "PC Artifact Tag"
1212
required: true
1313
markers:
14-
description: 'Run tests by markers (-m). Available markers: smoke, rpc, reserve, governed_map, delegator_rewards, ariadne, wizards or full'
14+
description: 'Run tests by markers (-m). Available markers: ci, smoke, rpc, reserve, governed_map, delegator_rewards, ariadne, wizards or full'
1515
required: true
1616

1717
outputs: {}

.github/actions/tests/run-e2e-tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ inputs:
1111
required: false
1212
default: 'test_'
1313
markers:
14-
description: 'Run tests by markers (-m). Available markers: smoke, rpc, reserve, governed_map, delegator_rewards, ariadne, wizards or full'
14+
description: 'Run tests by markers (-m). Available markers: ci, smoke, rpc, reserve, governed_map, delegator_rewards, ariadne, wizards or full'
1515
required: false
1616
mc_epoch:
1717
description: 'MC epoch to test (committee tests)'

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ jobs:
426426
runs-on: ubuntu-latest
427427
strategy:
428428
matrix:
429-
markers: [smoke, rpc, reserve, governed_map, delegator_rewards, ariadne, wizards]
429+
markers: [ci, smoke, rpc, reserve, governed_map, delegator_rewards, ariadne, wizards]
430430
steps:
431431
- name: Checkout
432432
uses: actions/checkout@v4
@@ -870,7 +870,7 @@ jobs:
870870
env: ci
871871
decrypt: true
872872
blockchain: substrate
873-
markers: smoke
873+
markers: ci
874874
env:
875875
AWS_SESSION_TOKEN: ${{ env.AWS_SESSION_TOKEN }}
876876
AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}

e2e-tests/pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ markers =
33
# smoke tests
44
smoke: block producing, transactions, etc.
55
rpc: node RPC methods
6+
ci: tests that can pass on a brand new partner-chain in CI environment
67

78
# main features
89
ariadne: committee selection algorithm

e2e-tests/tests/committee/test_blocks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88

99
@mark.xdist_group("faucet_tx")
10+
@mark.ci
1011
def test_block_producer_can_update_their_metadata(genesis_utxo, api: BlockchainApi, get_wallet: Wallet, write_file):
1112
logger.info("Signing block producer metadata...")
1213
skey, vkey_hex, vkey_hash = api.cardano_cli.generate_cross_chain_keys()
@@ -60,6 +61,7 @@ def test_block_producer_can_update_their_metadata(genesis_utxo, api: BlockchainA
6061

6162

6263
@mark.xdist_group("faucet_tx")
64+
@mark.ci
6365
def test_block_producer_can_delete_their_metadata(genesis_utxo, api: BlockchainApi, get_wallet: Wallet, write_file):
6466
logger.info("Signing block producer metadata...")
6567
skey, vkey_hex, vkey_hash = api.cardano_cli.generate_cross_chain_keys()
@@ -157,6 +159,7 @@ def test_block_authors_match_committee_seats(
157159

158160

159161
@mark.test_key('ETCM-7481')
162+
@mark.ci
160163
def test_block_headers_have_mc_hash(api: BlockchainApi, config: ApiConfig, pc_epoch, get_pc_epoch_blocks):
161164
"""Test block headers have mainchain hash
162165
* Get blocks for current partner chain epoch

e2e-tests/tests/committee/test_committee.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ def test_no_rogue_committee_members(
474474
), f"Committee member {pub_key} not an active candidate for pc epoch {pc_epoch}"
475475

476476
@mark.test_key('ETCM-7029')
477+
@mark.ci
477478
def test_authorities_matching_committee(self, api: BlockchainApi, config: ApiConfig):
478479
"""Test that authorities match validators for a given partner chain epoch
479480

e2e-tests/tests/delegator_rewards/test_spo_journey.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def test_no_unexpected_producers(block_participation):
206206

207207

208208
@mark.xdist_group("faucet_tx")
209+
@mark.ci
209210
class TestMarginFee:
210211
@fixture(scope="class")
211212
def random_margin_fee(self) -> int:

e2e-tests/tests/test_rpc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77

88
@mark.rpc
9+
@mark.ci
910
class TestRpc:
1011
@mark.test_key('ETCM-6994')
1112
def test_get_status(self, api: BlockchainApi):

e2e-tests/tests/test_smoke.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77

88
@mark.smoke
9+
@mark.ci
910
class TestSmoke:
1011
@mark.test_key('ETCM-6992')
1112
def test_block_producing(self, api: BlockchainApi, config: ApiConfig):

0 commit comments

Comments
 (0)