tests fixes and sprints work
This commit is contained in:
@@ -331,7 +331,7 @@ Before running tests offline or during rate-limited periods, warm the NuGet cach
|
||||
```bash
|
||||
# Warm cache with throttled requests to avoid 429 errors
|
||||
export NUGET_MAX_HTTP_REQUESTS=4
|
||||
dotnet restore src/StellaOps.sln --disable-parallel
|
||||
dotnet restore src/<Module>/StellaOps.<Module>.sln --disable-parallel
|
||||
|
||||
# Verify cache is populated
|
||||
ls ~/.nuget/packages | wc -l
|
||||
@@ -340,12 +340,14 @@ ls ~/.nuget/packages | wc -l
|
||||
```powershell
|
||||
# PowerShell equivalent
|
||||
$env:NUGET_MAX_HTTP_REQUESTS = "4"
|
||||
dotnet restore src\StellaOps.sln --disable-parallel
|
||||
dotnet restore src\<Module>\StellaOps.<Module>.sln --disable-parallel
|
||||
|
||||
# Verify cache
|
||||
(Get-ChildItem "$env:USERPROFILE\.nuget\packages").Count
|
||||
```
|
||||
|
||||
See docs/dev/SOLUTION_BUILD_GUIDE.md for the module solution list.
|
||||
|
||||
### Rate Limiting Mitigation
|
||||
|
||||
If encountering NuGet 429 (Too Many Requests) errors from package sources:
|
||||
@@ -392,7 +394,7 @@ docker compose -f devops/compose/docker-compose.ci.yaml up -d
|
||||
./devops/scripts/local-ci.sh smoke --no-restore
|
||||
|
||||
# 4. Or run specific category offline
|
||||
dotnet test src/StellaOps.sln \
|
||||
dotnet test src/<Module>/StellaOps.<Module>.sln \
|
||||
--filter "Category=Unit" \
|
||||
--no-restore \
|
||||
--no-build
|
||||
|
||||
@@ -121,8 +121,8 @@ docker compose -f devops/compose/docker-compose.ci.yaml down -v
|
||||
|
||||
### Build fails
|
||||
```bash
|
||||
dotnet clean src/StellaOps.sln
|
||||
dotnet build src/StellaOps.sln
|
||||
dotnet clean src/<Module>/StellaOps.<Module>.sln
|
||||
dotnet build src/<Module>/StellaOps.<Module>.sln
|
||||
```
|
||||
|
||||
### Tests fail
|
||||
|
||||
@@ -68,7 +68,7 @@ unit-tests:
|
||||
with:
|
||||
dotnet-version: '10.0.100'
|
||||
- name: Build
|
||||
run: dotnet build src/StellaOps.sln --configuration Release
|
||||
run: dotnet build src/<Module>/StellaOps.<Module>.sln --configuration Release
|
||||
- name: Run Unit lane
|
||||
run: ./scripts/test-lane.sh Unit --results-directory ./test-results
|
||||
- name: Upload results
|
||||
|
||||
Reference in New Issue
Block a user