Skip to content

Merge JIT Generics tests into explicit runners - #132167

Merged
jkoritzinsky merged 3 commits into
mainfrom
dev/jkoritzinsky/split-generics-runners
Aug 18, 2026
Merged

jkoritzinsky merged 3 commits into
mainfrom
dev/jkoritzinsky/split-generics-runners

Conversation

@jkoritzinsky

Copy link
Copy Markdown
Member

Summary

The JIT Generics merged runner used recursive project globs, which obscured the build-property groups and prevented tests from being folded into the runner assembly.

  • Replace the glob-based runner with six explicit runners grouped by DebugType and Optimize.
  • Compile eligible C# test sources directly into the runners, using unique namespaces to avoid symbol collisions, while retaining IL project references.
  • Preserve priority-1 scheduling with [OuterLoop].
  • Convert the Windows-only P/Invoke and getclassfrommethodparam tests from process-isolated projects to platform-filtered tests in JIT.Generics.
  • Remove the 212 per-test C# project wrappers that are no longer needed.

Testing

  • build.cmd clr+libs -lc release -rc checked
  • src\tests\build.cmd -Dir JIT\Generics x64 Checked -Priority 1
  • Executed all six merged runners against the Checked Core_Root; each returned 100 with no failures.
  • Re-executed JIT.Generics and JIT.Generics_r after consolidating the Windows-only tests; both returned 100 with no failures.

Note

This pull request description was generated by GitHub Copilot.

jkoritzinsky and others added 2 commits August 11, 2026 11:27
Replace the glob-based Generics runner with explicit project lists grouped into normalized DebugType and Optimize variants.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 11, 2026 20:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@github-actions github-actions Bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Aug 11, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 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, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Comment thread src/tests/JIT/Generics/JIT.Generics_r.csproj Outdated
Comment thread src/tests/JIT/Generics/JIT.Generics.csproj
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings August 17, 2026 18:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@jkoritzinsky
jkoritzinsky requested review from EgorBo and sbomer August 17, 2026 20:53
@jkoritzinsky
jkoritzinsky enabled auto-merge (squash) August 18, 2026 00:21
@jkoritzinsky

Copy link
Copy Markdown
Member Author

/azp run runtime

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

2 similar comments
@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@jkoritzinsky

jkoritzinsky commented Aug 18, 2026 •

Copy link
Copy Markdown
Member Author

/azp run runtime

Note

This CI retry command was generated by GitHub Copilot.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@jkoritzinsky

Copy link
Copy Markdown
Member Author

/ba-g misclassified build error for KBE test failure

@jkoritzinsky
jkoritzinsky merged commit bf7a865 into main Aug 18, 2026
59 of 61 checks passed
@jkoritzinsky
jkoritzinsky deleted the dev/jkoritzinsky/split-generics-runners branch August 18, 2026 17:24
@github-project-automation github-project-automation Bot moved this to Done in AppModel Aug 18, 2026
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Aug 21, 2026
steveisok added a commit that referenced this pull request Sep 4, 2026
## Summary

PR #132167 compiled `chaos65204782cs.cs` into both merged `JIT.Generics`
runners. Mono FullAOT rejects its recursive generic metadata, causing
the entire runners to fail AOT compilation.

Restore the dedicated test project and:

- run it process-isolated in normal configurations
- exclude only this test from Mono MiniFullAOT/LLVMFullAOT
- keep both merged `JIT.Generics` runners enabled for FullAOT coverage

The standalone project remains referenced by the PdbOnly runner so it
participates in normal test execution.

## Validation

MSBuild evaluation confirmed:

- normal builds discover one runnable process-isolated test
- Mono MiniFullAOT disables only the standalone project
- both merged runners remain enabled

The full build was not run because the pinned SDK was unavailable from
its feeds.

Addresses #132942 without closing it, since the issue also tracks the
underlying Mono AOT recursion failure.

> [!NOTE]
> This pull request description was generated with GitHub Copilot.

Fixes: #132942

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants