refactor: rename tli→fxt, delete legacy scripts/RunPod/deploy artifacts

- Rename tli/ directory to fxt/, update package + binary name to "fxt"
- Replace all `use tli::` → `use fxt::` across 52 Rust files
- Update build.rs proto paths (tli/proto → fxt/proto) in 6 services
- Update Dockerfiles, CI workflows, deploy.sh for new paths
- Delete ~170 legacy shell scripts (kept 15 essential ones)
- Delete RunPod Python client (runpod/), tests (tests/runpod/)
- Delete foxhunt-deploy crate (RunPod-only deployment tool)
- Delete terraform/runpod/ (moved to Scaleway)
- Delete ML Python hyperopt scripts (replaced by Rust Argmin PSO)
- Delete .gitlab-ci.yml (using GitHub + Gitea)
- Remove foxhunt-deploy from workspace members

504 files changed, -74,355 lines of legacy code removed.
Workspace compiles clean (0 errors, 0 warnings).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-02-24 10:31:47 +01:00
parent ff15341c3e
commit 2da5bafc0e
504 changed files with 257 additions and 74355 deletions

View File

@@ -108,7 +108,7 @@ jobs:
exit 1
fi
build-tli:
build-fxt:
name: Build TLI Client
runs-on: ${{ matrix.os }}
timeout-minutes: 20
@@ -119,16 +119,16 @@ jobs:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
artifact_name: tli
asset_name: tli-linux-amd64
artifact_name: fxt
asset_name: fxt-linux-amd64
- os: macos-latest
target: x86_64-apple-darwin
artifact_name: tli
asset_name: tli-macos-amd64
artifact_name: fxt
asset_name: fxt-macos-amd64
- os: windows-latest
target: x86_64-pc-windows-msvc
artifact_name: tli.exe
asset_name: tli-windows-amd64.exe
artifact_name: fxt.exe
asset_name: fxt-windows-amd64.exe
steps:
- name: Checkout Code
@@ -151,7 +151,7 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Build TLI
run: cargo build --release -p tli --target ${{ matrix.target }}
run: cargo build --release -p fxt --target ${{ matrix.target }}
- name: Strip Binary (Linux/macOS)
if: matrix.os != 'windows-latest'
@@ -167,7 +167,7 @@ jobs:
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest
needs: [docker-build, build-tli]
needs: [docker-build, build-fxt]
if: startsWith(github.ref, 'refs/tags/v')
timeout-minutes: 10
@@ -252,7 +252,7 @@ jobs:
summary:
name: Build Summary
runs-on: ubuntu-latest
needs: [docker-build, build-tli]
needs: [docker-build, build-fxt]
if: always()
steps:
@@ -263,7 +263,7 @@ jobs:
echo "| Job | Status |" >> $GITHUB_STEP_SUMMARY
echo "|-----|--------|" >> $GITHUB_STEP_SUMMARY
echo "| Docker Build | ${{ needs.docker-build.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| TLI Build | ${{ needs.build-tli.result }} |" >> $GITHUB_STEP_SUMMARY
echo "| FXT Build | ${{ needs.build-fxt.result }} |" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
if [ "${{ github.ref }}" = "refs/heads/main" ]; then

View File

@@ -79,7 +79,7 @@ jobs:
path: |
target/release/trading_service
target/release/backtesting_service
target/release/tli
target/release/fxt
retention-days: 30
build-and-test:
@@ -229,7 +229,7 @@ jobs:
with:
images: |
ghcr.io/${{ github.repository }}/foxhunt-trading-engine
ghcr.io/${{ github.repository }}/foxhunt-tli
ghcr.io/${{ github.repository }}/foxhunt-fxt
ghcr.io/${{ github.repository }}/foxhunt-ml
ghcr.io/${{ github.repository }}/foxhunt-risk
ghcr.io/${{ github.repository }}/foxhunt-data
@@ -256,10 +256,10 @@ jobs:
- name: Build and push TLI service
uses: docker/build-push-action@v5
with:
context: ./tli
file: ./tli/Dockerfile.production
context: ./fxt
file: ./fxt/Dockerfile.production
push: true
tags: ghcr.io/${{ github.repository }}/foxhunt-tli:${{ github.sha }}
tags: ghcr.io/${{ github.repository }}/foxhunt-fxt:${{ github.sha }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

View File

@@ -145,7 +145,7 @@ jobs:
EOF
- name: Build test harness
run: cargo build --bin tli --bin ml-training-service --bin trading-service
run: cargo build --bin fxt --bin ml-training-service --bin trading-service
- name: Run Layer 1 Foundation Tests
run: |
@@ -241,7 +241,7 @@ jobs:
- name: Start services for integration testing
run: |
# Start services in background
cargo run --bin tli -- --config tests/config/tli-test.toml &
cargo run --bin fxt -- --config tests/config/fxt-test.toml &
sleep 5
cargo run --bin ml-training-service -- --config tests/config/ml-test.toml &
sleep 5
@@ -368,8 +368,8 @@ jobs:
- name: Start complete service stack
run: |
# Start all services with proper config
cargo run --bin tli -- --config tests/config/tli-workflow.toml &
TLI_PID=$!
cargo run --bin fxt -- --config tests/config/fxt-workflow.toml &
FXT_PID=$!
sleep 5
cargo run --bin ml-training-service -- --config tests/config/ml-workflow.toml &
@@ -381,7 +381,7 @@ jobs:
sleep 10
# Store PIDs for cleanup
echo $TLI_PID > tli.pid
echo $FXT_PID > fxt.pid
echo $ML_PID > ml.pid
echo $TRADING_PID > trading.pid
@@ -393,7 +393,7 @@ jobs:
- name: Cleanup services
if: always()
run: |
if [ -f tli.pid ]; then kill $(cat tli.pid) || true; fi
if [ -f fxt.pid ]; then kill $(cat fxt.pid) || true; fi
if [ -f ml.pid ]; then kill $(cat ml.pid) || true; fi
if [ -f trading.pid ]; then kill $(cat trading.pid) || true; fi
@@ -521,8 +521,8 @@ jobs:
- name: Start optimized service stack for performance testing
run: |
# Start services with performance-optimized configs
RUST_LOG=warn cargo run --release --bin tli -- --config tests/config/tli-performance.toml &
TLI_PID=$!
RUST_LOG=warn cargo run --release --bin fxt -- --config tests/config/fxt-performance.toml &
FXT_PID=$!
sleep 5
RUST_LOG=warn cargo run --release --bin ml-training-service -- --config tests/config/ml-performance.toml &
@@ -533,7 +533,7 @@ jobs:
TRADING_PID=$!
sleep 10
echo $TLI_PID > tli.pid
echo $FXT_PID > fxt.pid
echo $ML_PID > ml.pid
echo $TRADING_PID > trading.pid
@@ -567,7 +567,7 @@ jobs:
- name: Cleanup performance test services
if: always()
run: |
if [ -f tli.pid ]; then kill $(cat tli.pid) || true; fi
if [ -f fxt.pid ]; then kill $(cat fxt.pid) || true; fi
if [ -f ml.pid ]; then kill $(cat ml.pid) || true; fi
if [ -f trading.pid ]; then kill $(cat trading.pid) || true; fi
@@ -688,8 +688,8 @@ jobs:
- name: Start resilient service stack for chaos testing
run: |
# Start services with resilience-focused configs
cargo run --release --bin tli -- --config tests/config/tli-chaos.toml &
TLI_PID=$!
cargo run --release --bin fxt -- --config tests/config/fxt-chaos.toml &
FXT_PID=$!
sleep 5
cargo run --release --bin ml-training-service -- --config tests/config/ml-chaos.toml &
@@ -700,7 +700,7 @@ jobs:
TRADING_PID=$!
sleep 10
echo $TLI_PID > tli.pid
echo $FXT_PID > fxt.pid
echo $ML_PID > ml.pid
echo $TRADING_PID > trading.pid
@@ -732,7 +732,7 @@ jobs:
- name: Cleanup chaos test services
if: always()
run: |
if [ -f tli.pid ]; then kill $(cat tli.pid) || true; fi
if [ -f fxt.pid ]; then kill $(cat fxt.pid) || true; fi
if [ -f ml.pid ]; then kill $(cat ml.pid) || true; fi
if [ -f trading.pid ]; then kill $(cat trading.pid) || true; fi