[GAP-068]: verify complete deployed Strategies source folder
This commit is contained in:
@@ -19,7 +19,10 @@ The script prints `PASS` or `FAIL` for:
|
||||
- `MaxDailyTrades=1`
|
||||
4. Most recent settings export `Account` and `Instrument` match the expected arguments
|
||||
5. Deployed `NT8StrategyBase.cs` hash matches the repo copy
|
||||
6. Free disk space in the log directory drive is greater than `1 GB`
|
||||
6. All four `.cs` files copied by `deploy-to-nt8.bat` (`NT8StrategyBase.cs`, `SimpleORBNT8.cs`, `BaseNT8StrategyWrapper.cs`, `SimpleORBNT8Wrapper.cs`) match repository SHA-256 hashes, and no unexpected `.cs` files exist in `Strategies`
|
||||
7. Free disk space in the log directory drive is greater than `1 GB`
|
||||
|
||||
The folder check allows root-level `@`/`@@` NinjaTrader and operator strategies plus `ORBFibPullbackV1.cs` and `MinimalTestStrategy.cs`. It reports discrepancies with file timestamps; unexpected files also report same-named matches under `src` and any duplicate declared type found in `NT8.Strategies.dll` or `NinjaTrader.Custom.dll`. It never deletes deployed files. `MinimalTestStrategy.cs` remains allow-listed despite the known `Verify-Deployment.ps1`/batch deploy mismatch (GAP-073).
|
||||
|
||||
Every failure prints a specific remedy. The script exits `0` only when every check passes. Any failure returns exit code `1`.
|
||||
|
||||
@@ -77,6 +80,12 @@ powershell -ExecutionPolicy Bypass -File .\tools\preflight\preflight.ps1 `
|
||||
|
||||
PowerShell also accepts `-Freeze`.
|
||||
|
||||
The fixture test for the whole-folder comparison logic can be run directly with:
|
||||
|
||||
```powershell
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\tools\preflight\tests\strategy-source-verification.tests.ps1
|
||||
```
|
||||
|
||||
Freeze captures:
|
||||
|
||||
- current settings export
|
||||
|
||||
Reference in New Issue
Block a user