Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix JitInfo tests with ReadyToRun #96423

Merged
merged 1 commit into from
Jan 4, 2024
Merged

Fix JitInfo tests with ReadyToRun #96423

merged 1 commit into from
Jan 4, 2024

Conversation

jkotas
Copy link
Member

@jkotas jkotas commented Jan 2, 2024

Fixes #94189

Assert.True(afterCompilationTime >= beforeCompilationTime, $"CompilationTime: after not greater than before! (after: {afterCompilationTime}, before: {beforeCompilationTime})");
Assert.True(afterCompiledILBytes >= beforeCompiledILBytes, $"Compiled IL bytes: after not greater than before! (after: {afterCompiledILBytes}, before: {beforeCompiledILBytes})");
Assert.True(afterCompiledMethodCount >= beforeCompiledMethodCount, $"Compiled method count: after not greater than before! (after: {afterCompiledMethodCount}, before: {beforeCompiledMethodCount})");
// JitInfo metrics may be 0 in AOT scenarios
Copy link
Member Author

Choose a reason for hiding this comment

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

We need to allow for all static code to be precompiled with ReadyToRun or MonoAOT.

@jkotas jkotas requested a review from ivdiazsa January 2, 2024 22:40
@jkotas
Copy link
Member Author

jkotas commented Jan 2, 2024

/azp run runtime-coreclr crossgen2

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@ivdiazsa ivdiazsa left a comment

Choose a reason for hiding this comment

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

Just checked the failing pipelines and those are unrelated to these changes. Thanks a lot for fixing this Jan!

@ivdiazsa ivdiazsa merged commit 2242665 into dotnet:main Jan 4, 2024
132 of 137 checks passed
@jkotas jkotas deleted the issue-94189 branch January 23, 2024 02:03
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeTests.Get, JitInfoTests, and EnumTests Fail with TestReadyToRun
2 participants