Skip to content
Merged
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
100 changes: 7 additions & 93 deletions .github/workflows/on-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ on:
- B00
- B02
- B31
- D01
- D10
- D20
- D21
- D22
- D23
run-basic-examples:
description: "Run selected basic examples"
type: boolean
Expand All @@ -44,11 +38,6 @@ on:
type: boolean
required: false
default: true
run-blockchain-examples:
description: "Run selected blockchain examples"
type: boolean
required: false
default: true
run-full-lifecycle:
description: "Run Docker build/up/probe/test/down lifecycle"
type: boolean
Expand All @@ -63,7 +52,6 @@ env:
SELECTED_EXAMPLE: ${{ github.event.inputs['selected-example'] || 'all' }}
RUN_BASIC_EXAMPLES: ${{ github.event.inputs['run-basic-examples'] || 'true' }}
RUN_INTERNET_EXAMPLES: ${{ github.event.inputs['run-internet-examples'] || 'true' }}
RUN_BLOCKCHAIN_EXAMPLES: ${{ github.event.inputs['run-blockchain-examples'] || 'true' }}
RUN_FULL_LIFECYCLE: ${{ github.event.inputs['run-full-lifecycle'] || 'true' }}

jobs:
Expand Down Expand Up @@ -92,7 +80,6 @@ jobs:
python -m py_compile \
seedemu/testing/base.py \
seedemu/testing/internet.py \
seedemu/testing/blockchain.py \
seedemu/testing/satellite.py \
seedemu/testing/registry.py \
seedemu/testing/runtime.py \
Expand Down Expand Up @@ -122,20 +109,7 @@ jobs:
examples/internet/B02_mini_internet_with_dns/mini_internet_with_dns.py \
examples/internet/B02_mini_internet_with_dns/test_runtime.py \
examples/internet/B31_mini_internet_mpls/mini_internet_mpls.py \
examples/internet/B31_mini_internet_mpls/test_runtime.py \
examples/blockchain/D01_ethereum_pos/ethereum_pos.py \
examples/blockchain/D01_ethereum_pos/test_runtime.py \
examples/blockchain/D10_eth_explorer/ethereum_pos.py \
examples/blockchain/D10_eth_explorer/test_runtime.py \
examples/blockchain/D20_faucet/faucet.py \
examples/blockchain/D20_faucet/test_runtime.py \
examples/blockchain/D21_deploy_contract/deploy_contract.py \
examples/blockchain/D21_deploy_contract/test_runtime.py \
examples/blockchain/D22_oracle/simple_oracle.py \
examples/blockchain/D22_oracle/test_runtime.py \
examples/blockchain/D23_validator/validator.py \
examples/blockchain/D23_validator/test_runtime.py \
examples/blockchain/D23_validator/test_vc_at_running.py
examples/internet/B31_mini_internet_mpls/test_runtime.py

- name: Validate selected example manifests
run: |
Expand All @@ -152,12 +126,6 @@ jobs:
python seedemu/testing/cli.py clean examples/internet/B00_mini_internet/example.yaml
python seedemu/testing/cli.py clean examples/internet/B02_mini_internet_with_dns/example.yaml
python seedemu/testing/cli.py clean examples/internet/B31_mini_internet_mpls/example.yaml
python seedemu/testing/cli.py clean examples/blockchain/D01_ethereum_pos/example.yaml
python seedemu/testing/cli.py clean examples/blockchain/D10_eth_explorer/example.yaml
python seedemu/testing/cli.py clean examples/blockchain/D20_faucet/example.yaml
python seedemu/testing/cli.py clean examples/blockchain/D21_deploy_contract/example.yaml
python seedemu/testing/cli.py clean examples/blockchain/D22_oracle/example.yaml
python seedemu/testing/cli.py clean examples/blockchain/D23_validator/example.yaml

compile-selected-examples:
name: Compile ${{ matrix.example.code }}
Expand Down Expand Up @@ -221,30 +189,6 @@ jobs:
category: internet
requires_mpls: true
manifest: examples/internet/B31_mini_internet_mpls/example.yaml
- code: D01
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D01_ethereum_pos/example.yaml
- code: D10
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D10_eth_explorer/example.yaml
- code: D20
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D20_faucet/example.yaml
- code: D21
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D21_deploy_contract/example.yaml
- code: D22
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D22_oracle/example.yaml
- code: D23
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D23_validator/example.yaml
steps:
- name: Check out the source repository
uses: actions/checkout@v5
Expand All @@ -266,8 +210,7 @@ jobs:
(env.SELECTED_EXAMPLE == 'all' || env.SELECTED_EXAMPLE == matrix.example.code) &&
(
(matrix.example.category == 'basic' && env.RUN_BASIC_EXAMPLES == 'true') ||
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true') ||
(matrix.example.category == 'blockchain' && env.RUN_BLOCKCHAIN_EXAMPLES == 'true')
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true')
)
}}
run: |
Expand All @@ -283,8 +226,7 @@ jobs:
(env.SELECTED_EXAMPLE == 'all' || env.SELECTED_EXAMPLE == matrix.example.code) &&
(
(matrix.example.category == 'basic' && env.RUN_BASIC_EXAMPLES == 'true') ||
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true') ||
(matrix.example.category == 'blockchain' && env.RUN_BLOCKCHAIN_EXAMPLES == 'true')
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true')
)
}}
uses: actions/upload-artifact@v6
Expand Down Expand Up @@ -354,30 +296,6 @@ jobs:
category: internet
requires_mpls: true
manifest: examples/internet/B31_mini_internet_mpls/example.yaml
- code: D01
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D01_ethereum_pos/example.yaml
- code: D10
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D10_eth_explorer/example.yaml
- code: D20
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D20_faucet/example.yaml
- code: D21
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D21_deploy_contract/example.yaml
- code: D22
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D22_oracle/example.yaml
- code: D23
category: blockchain
requires_mpls: false
manifest: examples/blockchain/D23_validator/example.yaml
steps:
- name: Check out the source repository
uses: actions/checkout@v5
Expand All @@ -402,8 +320,7 @@ jobs:
(env.SELECTED_EXAMPLE == 'all' || env.SELECTED_EXAMPLE == matrix.example.code) &&
(
(matrix.example.category == 'basic' && env.RUN_BASIC_EXAMPLES == 'true') ||
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true') ||
(matrix.example.category == 'blockchain' && env.RUN_BLOCKCHAIN_EXAMPLES == 'true')
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true')
)
}}
run: |
Expand All @@ -428,8 +345,7 @@ jobs:
(env.SELECTED_EXAMPLE == 'all' || env.SELECTED_EXAMPLE == matrix.example.code) &&
(
(matrix.example.category == 'basic' && env.RUN_BASIC_EXAMPLES == 'true') ||
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true') ||
(matrix.example.category == 'blockchain' && env.RUN_BLOCKCHAIN_EXAMPLES == 'true')
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true')
)
}}
run: |
Expand All @@ -443,8 +359,7 @@ jobs:
(!matrix.example.requires_mpls || steps.mpls.outputs.available == 'true') &&
(
(matrix.example.category == 'basic' && env.RUN_BASIC_EXAMPLES == 'true') ||
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true') ||
(matrix.example.category == 'blockchain' && env.RUN_BLOCKCHAIN_EXAMPLES == 'true')
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true')
)
}}
run: |
Expand All @@ -462,8 +377,7 @@ jobs:
(!matrix.example.requires_mpls || steps.mpls.outputs.available == 'true') &&
(
(matrix.example.category == 'basic' && env.RUN_BASIC_EXAMPLES == 'true') ||
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true') ||
(matrix.example.category == 'blockchain' && env.RUN_BLOCKCHAIN_EXAMPLES == 'true')
(matrix.example.category == 'internet' && env.RUN_INTERNET_EXAMPLES == 'true')
)
}}
uses: actions/upload-artifact@v6
Expand Down
4 changes: 0 additions & 4 deletions seedemu/services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,10 @@
from .ReverseDomainNameService import ReverseDomainNameService, ReverseDomainNameServer
from .BgpLookingGlassService import BgpLookingGlassServer, BgpLookingGlassService
from .DHCPService import DHCPServer, DHCPService
from .EthereumService import *
from .MoneroService import *
from .SolanaService import *
from .ScionBwtestService import ScionBwtestService
from .ScionBwtestClientService import ScionBwtestClientService
from .KuboService import *
from .CAService import CAService, CAServer, RootCAStore
from .ChainlinkService import *
from .TrafficService import *
from .DevService import *
from .CDNService import CDNService, CDNOriginServer, CDNEdgeServer
Expand Down
3 changes: 0 additions & 3 deletions seedemu/testing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
"""Testing runners for standardized SEED Emulator examples and emulations."""

from .base import TestRunner, TestRunnerError
from .blockchain import BlockchainTestRunner, EthereumRuntimeTest
from .internet import InternetTestRunner
from .registry import create_runner
from .runtime import ComposeRuntimeTest, ComposeService
from .satellite import SatelliteTestRunner

__all__ = [
"BlockchainTestRunner",
"ComposeRuntimeTest",
"ComposeService",
"EthereumRuntimeTest",
"InternetTestRunner",
"SatelliteTestRunner",
"TestRunner",
Expand Down
2 changes: 1 addition & 1 deletion seedemu/testing/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
parser.add_argument("--artifact-dir", type=Path, help="Optional directory for command logs and summaries.")
parser.add_argument(
"--runner",
choices=["generic", "internet", "satellite", "blockchain"],
choices=["generic", "internet", "satellite"],
help="Runner type. Defaults to the manifest's runner field, then generic.",
)
args = parser.parse_args(argv)
Expand Down
5 changes: 1 addition & 4 deletions seedemu/testing/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@

try:
from .base import TestRunner, TestRunnerError
from .blockchain import BlockchainTestRunner
from .internet import InternetTestRunner
from .satellite import SatelliteTestRunner
except ImportError:
from base import TestRunner, TestRunnerError
from blockchain import BlockchainTestRunner
from internet import InternetTestRunner
from satellite import SatelliteTestRunner

Expand All @@ -21,8 +19,7 @@
"generic": TestRunner,
"test": TestRunner,
"internet": InternetTestRunner,
"satellite": SatelliteTestRunner,
"blockchain": BlockchainTestRunner,
"satellite": SatelliteTestRunner
}


Expand Down
Loading