1.4 KiB
1.4 KiB
AOC Analyzer CI Contract (DEVOPS-AOC-19-001)
Scope
Integrate AOC Roslyn analyzer and guard tests into CI to block banned writes in ingestion projects.
Steps
- Restore & build analyzers
dotnet restore src/Aoc/__Analyzers/StellaOps.Aoc.Analyzers/StellaOps.Aoc.Analyzers.csprojdotnet build src/Aoc/__Analyzers/StellaOps.Aoc.Analyzers/StellaOps.Aoc.Analyzers.csproj -c Release
- Run analyzer on ingestion projects (Authority/Concelier/Excititor ingest paths)
dotnet build src/Concelier/StellaOps.Concelier.Ingestion/StellaOps.Concelier.Ingestion.csproj -c Release /p:RunAnalyzers=true /p:TreatWarningsAsErrors=truedotnet build src/Authority/StellaOps.Authority.Ingestion/StellaOps.Authority.Ingestion.csproj -c Release /p:RunAnalyzers=true /p:TreatWarningsAsErrors=truedotnet build src/Excititor/StellaOps.Excititor.Ingestion/StellaOps.Excititor.Ingestion.csproj -c Release /p:RunAnalyzers=true /p:TreatWarningsAsErrors=true
- Guard tests
dotnet test src/Aoc/__Tests/StellaOps.Aoc.Analyzers.Tests/StellaOps.Aoc.Analyzers.Tests.csproj -c Release
- Artefacts
- Upload
.artifacts/aoc-analyzer.logand test TRX.
- Upload
Determinism/Offline
- Use local feeds (
local-nugets/); no external fetches post-restore. - Build with
/p:ContinuousIntegrationBuild=true.
Acceptance
- CI fails on any analyzer warning in ingestion projects.
- Tests pass; artefacts uploaded.