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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
118 changes: 0 additions & 118 deletions .github/ACTIONS-README.md

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/simple-master-node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ jobs:

# Build the network binary
go mod tidy
go build -o bin/betanet-network ./cmd/betanet-network
go build -o bin/alxnet-network ./cmd/alxnet-network

# Test discovery command (simulates remote node discovery)
echo "Simulating remote node discovering your network..."
echo "This simulates a node from anywhere in the world discovering your network!"

# Test with timeout and error handling
if timeout 30s ./bin/betanet-network -command discover; then
if timeout 30s ./bin/alxnet-network -command discover; then
echo "✅ Discovery command executed successfully"
else
echo "⚠️ Discovery command completed (expected behavior in test environment)"
Expand All @@ -66,7 +66,7 @@ jobs:
run: |
echo "📊 Generating master node status report..."

echo "# 🌐 Betanet Master Node Status" > master-node-status.md
echo "# 🌐 AlxNet Master Node Status" > master-node-status.md
echo "" >> master-node-status.md
echo "**Repository:** ${{ github.repository }}" >> master-node-status.md
echo "**Status:** 🟢 OPERATIONAL" >> master-node-status.md
Expand All @@ -88,7 +88,7 @@ jobs:
echo "- **Global Access:** Verified" >> master-node-status.md
echo "" >> master-node-status.md
echo "### 🚀 Ready for Production" >> master-node-status.md
echo "Your Betanet master node is now:" >> master-node-status.md
echo "Your AlxNet master node is now:" >> master-node-status.md
echo "- **Globally accessible** via GitHub" >> master-node-status.md
echo "- **Cross-internet functional** for peer discovery" >> master-node-status.md
echo "- **Production ready** with comprehensive testing" >> master-node-status.md
Expand Down Expand Up @@ -120,4 +120,4 @@ jobs:
echo "✅ Network is ready for worldwide deployment"
echo ""
echo "🌍 Anyone can now discover your network from anywhere in the world!"
echo "🚀 Your Betanet project is production-ready!"
echo "🚀 Your AlxNet project is production-ready!"
32 changes: 16 additions & 16 deletions .github/workflows/test-master-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test Master Node - Global Discovery Network
on:
push:
branches: [ main ]
paths: [ 'network/**', 'internal/network/**', 'cmd/betanet-network/**' ]
paths: [ 'network/**', 'internal/network/**', 'cmd/alxnet-network/**' ]
workflow_dispatch:
inputs:
test_type:
Expand Down Expand Up @@ -38,11 +38,11 @@ jobs:
with:
go-version: '1.21'

- name: Build Betanet Network
- name: Build AlxNet Network
run: |
go mod tidy
go build -o bin/betanet-network ./cmd/betanet-network
go build -o bin/betanet-node ./cmd/betanet-node
go build -o bin/alxnet-network ./cmd/alxnet-network
go build -o bin/alxnet-node ./cmd/alxnet-node

- name: Test Master List Accessibility
run: |
Expand All @@ -59,19 +59,19 @@ jobs:
- name: Test Network Discovery
run: |
echo "🔍 Testing network discovery from GitHub Actions..."
timeout 30s ./bin/betanet-network -command discover || true
timeout 30s ./bin/alxnet-network -command discover || true
echo "✅ Discovery test completed"

- name: Test Peer Listing
run: |
echo "📋 Testing peer listing from GitHub Actions..."
timeout 30s ./bin/betanet-network -command peers -limit 5 || true
timeout 30s ./bin/alxnet-network -command peers -limit 5 || true
echo "✅ Peer listing test completed"

- name: Test Network Health
run: |
echo "💚 Testing network health from GitHub Actions..."
timeout 30s ./bin/betanet-network -command health || true
timeout 30s ./bin/alxnet-network -command health || true
echo "✅ Health monitoring test completed"

- name: Test Cross-Internet Sync
Expand All @@ -83,7 +83,7 @@ jobs:

# Start master node (simulating your local node)
echo "🚀 Starting master node..."
timeout 60s ./bin/betanet-node run -data /tmp/master -listen /ip4/0.0.0.0/tcp/4001 &
timeout 60s ./bin/alxnet-node run -data /tmp/master -listen /ip4/0.0.0.0/tcp/4001 &
MASTER_PID=$!
sleep 5

Expand All @@ -95,7 +95,7 @@ jobs:
echo "🔗 Starting test nodes..."
for i in {1..3}; do
echo "Starting test node $i..."
timeout 60s ./bin/betanet-node run \
timeout 60s ./bin/alxnet-node run \
-data "/tmp/node$i" \
-listen "/ip4/0.0.0.0/tcp/400$((i+1))" \
-bootstrap "$MASTER_ADDR" &
Expand All @@ -108,10 +108,10 @@ jobs:

# Test network status
echo "📊 Testing network status..."
./bin/betanet-network -command status
./bin/alxnet-network -command status

# Cleanup
pkill -f betanet-node || true
pkill -f alxnet-node || true
echo "✅ Cross-internet sync test completed"

- name: Test Master Node Reliability
Expand All @@ -121,7 +121,7 @@ jobs:
# Test multiple discovery attempts
for i in {1..5}; do
echo "Discovery attempt $i..."
timeout 10s ./bin/betanet-network -command discover || true
timeout 10s ./bin/alxnet-network -command discover || true
sleep 2
done

Expand Down Expand Up @@ -171,12 +171,12 @@ jobs:
run: |
echo "🧪 Testing network stability..."
go mod tidy
go build -o bin/betanet-network ./cmd/betanet-network
go build -o bin/alxnet-network ./cmd/alxnet-network

# Test network manager stability
for i in {1..10}; do
echo "Stability test $i..."
timeout 15s ./bin/betanet-network -command status || true
timeout 15s ./bin/alxnet-network -command status || true
sleep 1
done

Expand All @@ -188,7 +188,7 @@ jobs:

# Simulate multiple concurrent requests
for i in {1..20}; do
(timeout 10s ./bin/betanet-network -command health || true) &
(timeout 10s ./bin/alxnet-network -command health || true) &
done

wait
Expand All @@ -203,7 +203,7 @@ jobs:
- name: Deploy Master Node Status
run: |
echo "🚀 Deploying master node status..."
echo "## 🌐 Betanet Master Node Status" >> master-node-status.md
echo "## 🌐 AlxNet Master Node Status" >> master-node-status.md
echo "**Repository:** ${{ github.repository }}" >> master-node-status.md
echo "**Status:** 🟢 OPERATIONAL" >> master-node-status.md
echo "**Last Test:** $(date)" >> master-node-status.md
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/security-audit
coverage.html
coverage.out
/data
Loading
Loading