docs: update CLI test results and checklist with advanced marketplace and payment testing

This commit is contained in:
oib
2026-03-05 08:33:28 +01:00
parent 1f16a1c406
commit 4a13958e95
2 changed files with 60 additions and 45 deletions

View File

@@ -15,9 +15,13 @@
| Wallet Operations | ✅ WORKING | ✅ WORKING | ✅ WORKING | **PASS** |
| Miner Registration | ✅ WORKING | N/A (No GPU) | N/A (No GPU) | **PASS** |
| Marketplace GPU List | ✅ WORKING | ✅ WORKING | ✅ WORKING | **PASS** |
| Marketplace Pricing/Orders| N/A | N/A | ✅ WORKING | **PASS** |
| Job Submission | ❌ FAILED | N/A | ✅ WORKING | **PARTIAL** |
| Client Result | N/A | N/A | ✅ WORKING | **PASS** |
| Client Result/Status | N/A | N/A | ✅ WORKING | **PASS** |
| Client Payment Flow | N/A | N/A | ✅ WORKING | **PASS** |
| mine-ollama Feature | ✅ WORKING | N/A (No GPU) | N/A (No GPU) | **PASS** |
| System & Nodes | N/A | N/A | ✅ WORKING | **PASS** |
| Testing & Simulation | ✅ WORKING | ✅ WORKING | ✅ WORKING | **PASS** |
## Topology Note: GPU Distribution
* **at1 (localhost)**: The physical host machine equipped with the NVIDIA RTX 4090 GPU and Ollama installation. This is the **only node** that should register as a miner and execute `mine-ollama`.
@@ -34,40 +38,50 @@
- **Status**: FULLY FUNCTIONAL
#### 2. Configuration Management
- **Command**: `aitbc config show`
- **Result**: ✅ Shows configuration on all servers
- **Command**: `aitbc config show`, `aitbc config set`
- **Result**: ✅ Shows and sets configuration on all servers
- **Notes**: Configured with proper `/api` endpoints and API keys.
#### 3. Wallet Operations
- **Commands**: `aitbc wallet balance`, `aitbc wallet create`
- **Result**: ✅ Creates wallets with encryption on all servers
- **Commands**: `aitbc wallet balance`, `aitbc wallet create`, `aitbc wallet list`
- **Result**: ✅ Creates wallets with encryption on all servers, lists available wallets
- **Notes**: Local balance only (blockchain not accessible)
#### 4. Marketplace GPU List
- **Command**: `aitbc marketplace gpu list`
- **Result**: ✅ Working on all servers
- **Data**: Shows 3 GPUs (RTX 4090) with various statuses. (Previously failed on aitbc due to missing `/api` in URL).
#### 4. Marketplace Operations
- **Command**: `aitbc marketplace gpu list`, `aitbc marketplace orders`, `aitbc marketplace pricing`
- **Result**: ✅ Working on all servers. Dynamic pricing correctly processes capabilities JSON and calculates market averages.
- **Fixes Applied**: Resolved SQLModel `.exec()` vs `.execute().scalars()` attribute errors and string matching logic for pricing queries.
#### 5. Job Submission (aitbc1 only)
- **Command**: `aitbc client submit --type inference --prompt "test" --model "test-model"`
- **Result**: ✅ Successfully submits job on aitbc1
- **Job ID**: 7a767b1f742c4763bf7b22b1d79bfe7e
#### 6. Client Result Retrieval
- **Command**: `aitbc client result <job-id>`
- **Result**: ✅ Returns job status
#### 6. Client Operations
- **Command**: `aitbc client result`, `aitbc client status`, `aitbc client history`, `aitbc client receipts`
- **Result**: ✅ Returns job status, history, and receipts lists correctly.
- **Fixes Applied**: Resolved FastApi routing issues that were blocking `/jobs/{job_id}/receipt` endpoints.
#### 7. mine-ollama Feature
#### 7. Payment Flow
- **Command**: `aitbc client pay`, `aitbc client payment-status`
- **Result**: ✅ Successfully creates AITBC token escrows and tracks payment status
- **Fixes Applied**: Resolved SQLModel `UnmappedInstanceError` and syntax errors in the payment escrow tracking logic.
#### 8. mine-ollama Feature
- **Command**: `aitbc miner mine-ollama --jobs 1 --miner-id "test" --model "gemma3:1b"`
- **Result**: ✅ Detects available models correctly
- **Available Models**: lauchacarro/qwen2.5-translator:latest, gemma3:1b
- **Note**: Only applicable to at1 (localhost) due to GPU requirement.
#### 8. Miner Registration
#### 9. Miner Registration
- **Command**: `aitbc miner register`
- **Result**: ✅ Working on at1 (localhost)
- **Notes**: Only applicable to at1 (localhost) which has the physical GPU. Previously failed with 401 on aitbc1 and 405 on aitbc, but this is expected as containers do not have GPU access.
#### 10. Testing & System Commands
- **Command**: `aitbc test diagnostics`, `aitbc test api`, `aitbc node list`, `aitbc simulate init`
- **Result**: ✅ Successfully runs full testing suite (100% pass rate on API, environment, wallet, and marketplace components). Successfully generated simulation test economy and genesis wallet.
### ❌ **FAILING COMMANDS**
#### 1. Blockchain Connectivity
@@ -88,10 +102,11 @@
1. **CLI Installation**: All servers have working CLI v0.1.0
2. **Configuration System**: Working across all environments
3. **Wallet Management**: Encryption and creation working
4. **Marketplace Access**: GPU listing fully functional across all environments
5. **Job Pipeline**: Submit → Status → Result flow working on aitbc1 (client container)
6. **New Features**: mine-ollama integration working on at1 (GPU host)
7. **Miner Registration**: Successfully authenticates with miner keys on at1
4. **Marketplace Access**: GPU listing and pricing logic fully functional across all environments
5. **Job Pipeline**: Submit → Status → Result → Receipts flow working on aitbc1
6. **Payment System**: Escrow generation and status tracking working
7. **New Features**: mine-ollama integration working on at1 (GPU host)
8. **Testing Capabilities**: Built-in diagnostics pass with 100% success rate
### ⚠️ **Topology & Configuration Notes**
1. **Hardware Distribution**:
@@ -101,8 +116,8 @@
3. **API Keys**: Miner commands require miner API keys, client commands require client API keys.
### 🎯 **Success Rate**
- **Overall Success**: 8/9 command categories working (88%)
- **Critical Path**: ✅ Job submission → marketplace → result flow working
- **Overall Success**: 12/13 command categories working (92%)
- **Critical Path**: ✅ Job submission → marketplace → payment → result flow working
- **Hardware Alignment**: ✅ Commands are executed on correct hardware nodes
## Recommendations