Skip to content
Closed
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
16 changes: 1 addition & 15 deletions .github/workflows/db_sync_full_sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ on:
- preprod
- preview
default: preprod
run_only_sync_test:
type: boolean
default: true
description: "If checked only full sync test will be run otherwise local snapshot creation and restoration tests will be started after sync test is completed"
configs_base_url:
description: "Base URL for Cardano environment configs"
required: false
Expand Down Expand Up @@ -93,25 +89,15 @@ jobs:
HB_PID=$!
trap 'pkill -P "$HB_PID" 2>/dev/null || true; kill "$HB_PID" 2>/dev/null || true' EXIT

if [ "${{ inputs.run_only_sync_test }}" = "true" ]; then
test_marker="node_sync or db_sync"
else
test_marker="node_sync or db_sync or snapshot_creation or local_snapshot"
fi

pytest_args=(
sync_tests/tests/
-m "${test_marker}"
-m "node_sync or db_sync"
--environment "${{ inputs.environment }}"
--node-revision "${{ inputs.node_version }}"
--db-sync-revision "${{ inputs.db_sync_version }}"
--db-sync-start-options "${DB_SYNC_START_OPTIONS}"
)

if [ "${{ inputs.run_only_sync_test }}" = "true" ]; then
pytest_args+=(--run-only-sync-test)
fi

pytest_exit=0
{
echo "=== ci step started $(date -u +%FT%TZ) ==="
Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ log_level = "INFO"
markers = [
"node_sync: marks tests that require a fully synced cardano-node",
"db_sync: marks tests that require a fully synced cardano-db-sync",
"snapshot_creation: marks snapshot creation tests (run after full sync)",
"local_snapshot: marks local snapshot restoration tests",
"iohk_snapshot: marks IOHK official snapshot restoration tests",
"mainnet_tx_count: marks mainnet transaction count tests",
]

Expand Down
12 changes: 0 additions & 12 deletions sync_tests/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,6 @@ def pytest_addoption(parser: tp.Any) -> None:
default=None,
help="Working directory for logs and artifacts",
)
parser.addoption(
"--snapshot-url",
action="store",
default=None,
help="Snapshot download URL for IOHK snapshot restoration",
)
parser.addoption(
"--run-only-sync-test",
action="store_true",
default=False,
help="Skip snapshot creation/restoration steps",
)
parser.addoption(
"--pg-port",
action="store",
Expand Down
319 changes: 0 additions & 319 deletions sync_tests/tests/test_iohk_snapshot_restoration.py

This file was deleted.

Loading