Skip to content

Conversation

am11
Copy link
Member

@am11 am11 commented Apr 22, 2025

@LuckyXu-HF found out these fix some R2R tests: #114618 (comment).

@am11 am11 requested a review from MichalStrehovsky as a code owner April 22, 2025 17:11
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Apr 22, 2025
Copy link
Contributor

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
See info in area-owners.md if you want to be subscribed.

@am11 am11 added arch-arm64 arch-riscv Related to the RISC-V architecture labels Apr 22, 2025
@jkotas
Copy link
Member

jkotas commented Apr 23, 2025

/ba-g infrastructure timeouts

MethodDesc targetMethod = (MethodDesc)Target;
if (targetMethod.OwningType.IsInterface)
{
// Not tested
Copy link
Member

Choose a reason for hiding this comment

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

We have complete testing on Arm64, but it is not getting hit.

What's the test that hits this path?

Copy link
Member Author

Choose a reason for hiding this comment

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

@LuckyXu-HF mentioned Methodical_d2 and Methodical_r2 were failing with arm64 release build #114618 (comment).

Copy link
Contributor

@LuckyXu-HF LuckyXu-HF Apr 23, 2025

Choose a reason for hiding this comment

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

That comment is tested based on runtime-tag-v9.0.0 ;

I just test this based on the latest merge code in main branch:

commit 2474c6206b1f3d6f18941d05280c08da68231132
Author: Michal Strehovský <[email protected]>
Date:   Wed Apr 23 07:31:14 2025 +0200

    Delete dead code in the interpreter (#114890)
    
    I think this is now unreachable since the first `if` check would cover this.

And linux-arm64 still hits this path with Methodical_d2 and Methodical_r2:

$./build.sh clr.aot+libs -c release
$./src/tests/build.sh -priority1  -release  -tree:/data/xly/runtime/src/tests/JIT/Methodical/  -nativeaot
Error running test group '/data/xly/runtime/artifacts/tests/coreclr/linux.arm64.Release/JIT/Methodical/Methodical_d2/Methodical_d2.sh' - exit code 1
Error running test group '/data/xly/runtime/artifacts/tests/coreclr/linux.arm64.Release/JIT/Methodical/Methodical_r2/Methodical_r2.sh' - exit code 1

With this PR delete this encoder.EmitINT3(); , then these two passed on linux-arm64 (commit:2474c620):

Time [secs] | Total | Passed | Failed | Skipped | Assembly Execution Summary
============================================================================
      0.361 |    54 |     51 |      0 |       3 | JIT.Methodical.Methodical_others
      0.828 |   207 |    202 |      0 |       5 | JIT.Methodical.Methodical_d2
      0.906 |    85 |     84 |      0 |       1 | JIT.Methodical.Methodical_do
      0.498 |   210 |    205 |      0 |       5 | JIT.Methodical.Methodical_r2
      0.781 |    85 |     84 |      0 |       1 | JIT.Methodical.Methodical_ro
      2.070 |   275 |    254 |      0 |      21 | JIT.Methodical.Methodical_d1
      1.703 |   278 |    256 |      0 |      22 | JIT.Methodical.Methodical_r1
----------------------------------------------------------------------------
      7.147 |  1194 |   1136 |      0 |      58 | (total)

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 have complete testing on Arm64, but it is not getting hit.

@jkotas, @MichalStrehovsky, could you point to the pipeline running these to tests? I couldn't find linux arm64 nativeaot tests running Methodical_d2 and Methodical_r2 in the CI (I checked the NAOT outterloop pipelines as well).

Copy link
Member

Choose a reason for hiding this comment

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

It looks like we do not run runtime tests on arm64. @MichalStrehovsky Is that intentional or just an omission?

#114948 is a test-only PR to see how bad it is if enabled and whether there tests are going to fail in the run.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Yep. I will look into enabling arm64 testing separately.

@jkotas jkotas merged commit e49f358 into dotnet:main Apr 23, 2025
93 of 95 checks passed
@am11 am11 deleted the patch-31 branch April 23, 2025 21:26
@github-actions github-actions bot locked and limited conversation to collaborators May 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-arm64 arch-riscv Related to the RISC-V architecture area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants