feat: Create minimal cross_chain module for cross-chain tests
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 6s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Failing after 1s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Failing after 1s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Successful in 1m7s
Deploy to Testnet / notify-deployment (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 6s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Failing after 1s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Failing after 1s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Successful in 1m7s
Deploy to Testnet / notify-deployment (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
- Create aitbc_chain.cross_chain module with CrossChainSync and MultiChainConsensus - Move test classes from sync.py and poa.py to minimal module - Update workflow to import from minimal cross_chain module - Remove test classes from sync.py and poa.py - Revert lazy import changes to sync.py and __init__.py - Remove httpx from dependencies (minimal module has no external dependencies) - This avoids cascading dependency issues in CI
This commit is contained in:
@@ -50,7 +50,7 @@ jobs:
|
||||
--repo-dir "$PWD" \
|
||||
--venv-dir "$PWD/venv" \
|
||||
--skip-requirements \
|
||||
--extra-packages "pytest pytest-asyncio httpx"
|
||||
--extra-packages "pytest pytest-asyncio"
|
||||
echo "✅ Python environment ready"
|
||||
|
||||
- name: Test cross-chain block synchronization
|
||||
@@ -63,7 +63,7 @@ jobs:
|
||||
|
||||
PYTHONPATH="$PWD/apps/blockchain-node/src:$PYTHONPATH" venv/bin/python -c "
|
||||
import asyncio
|
||||
from aitbc_chain.sync import CrossChainSync
|
||||
from aitbc_chain.cross_chain import CrossChainSync
|
||||
|
||||
async def test_sync():
|
||||
sync = CrossChainSync(chains=CHAINS.split(','))
|
||||
@@ -200,7 +200,7 @@ jobs:
|
||||
--repo-dir "$PWD" \
|
||||
--venv-dir "$PWD/venv" \
|
||||
--skip-requirements \
|
||||
--extra-packages "pytest pytest-asyncio httpx"
|
||||
--extra-packages "pytest pytest-asyncio"
|
||||
echo "✅ Python environment ready"
|
||||
|
||||
- name: Test multi-chain consensus
|
||||
@@ -211,7 +211,7 @@ jobs:
|
||||
|
||||
PYTHONPATH="$PWD/apps/blockchain-node/src:$PYTHONPATH" venv/bin/python -c "
|
||||
import asyncio
|
||||
from aitbc_chain.consensus.poa import MultiChainConsensus
|
||||
from aitbc_chain.cross_chain import MultiChainConsensus
|
||||
|
||||
async def test_consensus():
|
||||
consensus = MultiChainConsensus(chains=['ait-mainnet', 'ait-testnet'])
|
||||
|
||||
Reference in New Issue
Block a user