Repository navigation
Phase 4: Test coverage, build hygiene, and CI/CD hardening - #368
Merged
Merged
Conversation
- Add tests for ST007, analyzer-path ST013, MSBuild diagnostics (ST011, ST014, ST024), automated in-process VB compilation of Stunt.vb and Stunt.DynamicFactory.vb, and StuntCache compilation-option invalidation, pruning, and concurrency. - Remove blanket Retry/Thread.Sleep(500) from scenario tests and replace Thread.Sleep(50) in concurrency tests with deterministic Barrier synchronization. - Delete dead src/Directory.targets and legacy Jekyll files (_config.yml, assets/css/style.scss); remove dead net48 conditions from Stunts.UnitTests.csproj and Samples.csproj; remove stale wait-status.ps1 entry from Stunts.slnx. - Centralize RoslynVersion, RoslynToolsVersion, NuGetizerVersion, and PolySharpVersion in src/Directory.props. - Harden GitHub Actions workflows (least-privilege permissions, SHA-pinned actions, env-passed secrets, windows-latest native-aot, samples job, publish gated on native-aot and acceptance, PR dry-run Lunet site build, and github-actions Dependabot updates). Co-authored-by: CodeAlta <noreply@codealta.io>
kzu
enabled auto-merge (rebase)
November 29, 2026 20:48
Declare nuget.org explicitly with <clear /> in samples/nuget.config and remove the project-level RestoreSources override from Samples.csproj so third-party packages resolve from nuget.org while Stunts* packages resolve from the local bin feed. Co-authored-by: CodeAlta <noreply@codealta.io>
WorkspaceHelper.Emit used a 10s CancellationTokenSource (and Scenarios, ManualStunts, and AssertCode used 1s-5s timeouts) which could fire under parallel test CPU contention on CI runners. Increase those timeouts to 60s (30s for syntax root) and dispose the CancellationTokenSource. Co-authored-by: CodeAlta <noreply@codealta.io>
SynchronizedBehavior scenario waits and ambient Barrier waits used 2s-5s timeouts, which could time out when Roslyn compilation tests running in parallel starved the thread pool on CI runners. Use 30s timeouts. Co-authored-by: CodeAlta <noreply@codealta.io>
Keep Ubuntu Native AOT job names as native-aot-net8.0 and native-aot-net10.0 so the main branch ruleset required check (native-aot-net10.0) continues to match while Windows runs as native-aot-windows-net8.0 and native-aot-windows-net10.0. Co-authored-by: CodeAlta <noreply@codealta.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 4 of the Stunts codebase audit: strengthens test coverage and determinism, cleans up build/solution/repo hygiene, and hardens GitHub Actions workflows.
Test Coverage & Reliability
Phase4CoverageTestscoveringST007(GeneratorAttributeNotFound), analyzer-pathST013(UnsupportedRuntimeSignature, including compile-time vs run-time constructor gating), MSBuild diagnostics (ST011,ST014,ST024), and in-process VB compilation ofStunt.vbandStunt.DynamicFactory.vbunderOption Strict On.StuntCacheTestsfor compilation-option invalidation (LanguageVersion,NullableContextOptions,AllowUnsafe), stale entry / temp file / old version folder pruning, and concurrent reads/writes.Retry+Thread.Sleep(500)from.Scenarios.csand replacedThread.Sleep(50)inStuntFactoryTestsandBehaviorPipelineTestswith deterministicBarriersynchronization.Build, Solution & Repo Hygiene
src/Directory.targets(movingResXFileCodeGeneratordirectly ontoResources.resxinStunts.CodeAnalysis.csproj) and legacy Jekyll files (_config.yml,assets/css/style.scss).RoslynVersion,RoslynToolsVersion,NuGetizerVersion, andPolySharpVersioninsrc/Directory.propsand referenced them fromDirectory.Packages.props,Stunts.CodeAnalysis.csproj,Stunts.CodeFixes.csproj, andStunts.CompiledProxy.targets.net48conditions fromStunts.UnitTests.csprojandSamples.csprojand removed the missingwait-status.ps1entry fromStunts.slnx.CI/CD Hardening
.github/workflows/build.ymlwith workflow-levelpermissions: contents: read, SHA-pinned actions,env:-passed secrets,windows-latestin thenative-aotmatrix, and a dedicatedsamplesjob runningsamples/Samples.slnx..github/workflows/publish.ymlonnative-aotandacceptance, pinned actions, added least-privilege permissions, and passedNUGET_API_KEYviaenv:..github/workflows/site.ymlwithpages: write/id-token: writescoped strictly to the non-PRdeployjob.github-actionsweekly update checks to.github/dependabot.yml.Verification
dotnet format whitespace --verify-no-changesanddotnet format style --verify-no-changesdotnet build,dnx --yes retest,dotnet pack, andsamples/Samples.slnx(13/13 passed)This pull request was created by CodeAlta.