Skip to content

Clean up ILAssembler tests to exercise compiler APIs - #136665

Merged
jkoritzinsky merged 3 commits into
dotnet:mainfrom
jkoritzinsky:dev/jkoritzinsky/ilassembler-test-cleanup
Oct 30, 2026
Merged

jkoritzinsky merged 3 commits into
dotnet:mainfrom
jkoritzinsky:dev/jkoritzinsky/ilassembler-test-cleanup

Conversation

@jkoritzinsky

Copy link
Copy Markdown
Member

Remove redundant DocumentCompilerTestHelpers aliases and replace implementation-coupled ILAssembler tests with public compiler API checks.

Malformed-input tests now validate parser diagnostics and source spans. Scope-only custom-attribute owners are checked through emitted metadata, and output-writer failure cases construct exceptions directly rather than using reflection. Tests requiring private parser setup are removed; the final tree introduces no private reflection or unsafe accessors.

This is an independent, test-only cleanup split from the identity/packaging work. It retains the existing ILAssembler namespace and assembly identity, with no packaging changes.

Windows validation:

  • Baseline: .\dotnet.cmd test src\tools\ilasm\tests\ILAssembler.Tests\ILAssembler.Tests.csproj -c Release -p:NuGetAudit=false — passed: 5,716; existing skips: 3; failed: 0.
  • Final: .\dotnet.cmd test src\tools\ilasm\tests\ILAssembler.Tests\ILAssembler.Tests.csproj -c Release -p:NuGetAudit=false --logger "trx;LogFileName=ilassembler-cleanup.trx" — build succeeded; passed: 5,707; existing skips: 3; failed: 0.

Note

This pull request was prepared with GitHub Copilot.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 4 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @dotnet/jit-contrib
See info in area-owners.md if you want to be subscribed.

@jkoritzinsky
jkoritzinsky requested a review from jkotas October 29, 2026 23:17
@jkoritzinsky
jkoritzinsky enabled auto-merge (squash) October 30, 2026 03:04
@jkoritzinsky
jkoritzinsky merged commit 48369e5 into dotnet:main Oct 30, 2026
64 checks passed
@github-project-automation github-project-automation Bot moved this to Done in AppModel Oct 30, 2026
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants