Removed the three stale "Current repository caveat"
This commit is contained in:
parent
0318a57744
commit
ea92c2e850
@ -264,10 +264,7 @@ Current behavior:
|
||||
3. runs Python parity harness test discovery
|
||||
4. optionally runs API contract test discovery
|
||||
|
||||
Current repository caveat:
|
||||
|
||||
- This clean repo currently does **not** contain `tests/` or `Journal.Api/`.
|
||||
- Running full gate without matching files will fail.
|
||||
If `tests/` is absent, Python parity and API contract steps are skipped automatically with a clear message — the sidecar build and smoke tests still run.
|
||||
|
||||
### `nuget-export-cache.ps1`
|
||||
|
||||
@ -285,10 +282,7 @@ Behavior:
|
||||
- writes `nuget-cache-manifest.txt`
|
||||
- outputs zip
|
||||
|
||||
Current repository caveat:
|
||||
|
||||
- Script references `Journal.Api/Journal.Api.csproj`.
|
||||
- If `Journal.Api` is absent, export fails unless script is adjusted.
|
||||
Primes restore for `Journal.Sidecar`, `Journal.WebGateway`, and `Journal.SmokeTests`.
|
||||
|
||||
### `nuget-import-cache.ps1`
|
||||
|
||||
@ -303,10 +297,7 @@ Behavior:
|
||||
- extracts zip into repo root
|
||||
- runs restore for selected projects via `dotnet-min.ps1`
|
||||
|
||||
Current repository caveat:
|
||||
|
||||
- Script references `Journal.Api/Journal.Api.csproj`.
|
||||
- If `Journal.Api` is absent, import validation step fails unless script is adjusted.
|
||||
Validates restore for `Journal.Sidecar`, `Journal.WebGateway`, and `Journal.SmokeTests`.
|
||||
|
||||
## Environment Variables Used
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ Partial run:
|
||||
.\scripts\migration-gate.ps1 -SkipSmoke -SkipApi
|
||||
```
|
||||
|
||||
Current clean repo caveat: `tests/` and `Journal.Api/` are not present, so full gate will fail until those assets are available.
|
||||
If `tests/` is absent, Python parity and API contract steps are skipped with a clear message.
|
||||
|
||||
## 9) NuGet Cache Export/Import (Offline-ish Restore)
|
||||
|
||||
@ -117,7 +117,7 @@ Import:
|
||||
.\scripts\nuget-import-cache.ps1 -InputZip .\nuget-cache-export.zip
|
||||
```
|
||||
|
||||
Current clean repo caveat: both scripts reference `Journal.Api/Journal.Api.csproj`.
|
||||
Validates restore for `Journal.Sidecar`, `Journal.WebGateway`, and `Journal.SmokeTests`.
|
||||
|
||||
## 10) Quick Troubleshooting
|
||||
|
||||
|
||||
@ -25,14 +25,25 @@ try {
|
||||
}
|
||||
|
||||
Write-Host "migration-gate: running parity harness + fixture matrix..."
|
||||
$env:PARITY_HARNESS_REPORT = $parityReport
|
||||
& python -m unittest discover -s tests -p "test_parity_harness.py" -v
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
$testsDir = Join-Path $repoRoot "tests"
|
||||
if (Test-Path $testsDir) {
|
||||
$env:PARITY_HARNESS_REPORT = $parityReport
|
||||
& python -m unittest discover -s tests -p "test_parity_harness.py" -v
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
}
|
||||
else {
|
||||
Write-Host "migration-gate: skipping parity harness — tests/ directory not found."
|
||||
}
|
||||
|
||||
if (-not $SkipApi) {
|
||||
Write-Host "migration-gate: running API contract tests..."
|
||||
& python -m unittest discover -s tests -p "test_api_contract.py" -v
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
if (Test-Path $testsDir) {
|
||||
& python -m unittest discover -s tests -p "test_api_contract.py" -v
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
}
|
||||
else {
|
||||
Write-Host "migration-gate: skipping API contract tests — tests/ directory not found."
|
||||
}
|
||||
}
|
||||
else {
|
||||
Write-Host "migration-gate: skipping API contract tests (--SkipApi)."
|
||||
|
||||
@ -13,7 +13,7 @@ if (-not (Test-Path $outputDir)) {
|
||||
Write-Host "Priming restore cache..."
|
||||
& (Join-Path $PSScriptRoot "dotnet-min.ps1") restore "Journal.Sidecar/Journal.Sidecar.csproj"
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
& (Join-Path $PSScriptRoot "dotnet-min.ps1") restore "Journal.Api/Journal.Api.csproj"
|
||||
& (Join-Path $PSScriptRoot "dotnet-min.ps1") restore "Journal.WebGateway/Journal.WebGateway.csproj"
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
& (Join-Path $PSScriptRoot "dotnet-min.ps1") restore "Journal.SmokeTests/Journal.SmokeTests.csproj"
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
|
||||
@ -16,7 +16,7 @@ Expand-Archive -Path $inputPath -DestinationPath $repoRoot -Force
|
||||
Write-Host "Running restore with local cache..."
|
||||
& (Join-Path $PSScriptRoot "dotnet-min.ps1") restore "Journal.Sidecar/Journal.Sidecar.csproj"
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
& (Join-Path $PSScriptRoot "dotnet-min.ps1") restore "Journal.Api/Journal.Api.csproj"
|
||||
& (Join-Path $PSScriptRoot "dotnet-min.ps1") restore "Journal.WebGateway/Journal.WebGateway.csproj"
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
& (Join-Path $PSScriptRoot "dotnet-min.ps1") restore "Journal.SmokeTests/Journal.SmokeTests.csproj"
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user