-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[RISC-V] Add riscv64 arch to tracing/eventpipe/processinfo tests #103832
Conversation
RISC-V test results for starfive-prio1-checked (
|
RISC-V test results for qemu-prio1-checked (
|
@@ -233,10 +233,11 @@ public static void TestEntryPoint() | |||
Architecture.X64 => "x64", | |||
Architecture.Arm => "arm32", | |||
Architecture.Arm64 => "arm64", | |||
Architecture.RiscV64 => "riscv64", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add loongarch64 while updating these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added loongarch64 too, but please note that I've not verified that test passes on it now. @shushanhf @LuckyXu-HF please take a look.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Yes, it's funny that either that test is suppressed or it throws anyway. We have these unnecessary platform maps in too many places which add no value (just another string to update for the next platform).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for heads up. I have verified on LA64 and these are also suitable for LA64.
LGTM, thanks very much.
RISC-V test results for starfive-prio1-checked (
|
@@ -224,14 +224,16 @@ public static void TestEntryPoint() | |||
Architecture.X64 => "x64", | |||
Architecture.Arm => "arm32", | |||
Architecture.Arm64 => "arm64", | |||
Architecture.RiscV64 => "riscv64", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string expectedArchValue = RuntimeInformation.ProcessArchitecture switch
{
Architecture.Arm => "arm32",
// All other architectures match the enum member name
_ => RuntimeInformation.ProcessArchitecture.ToString().ToLowerInvariant()
}
Can we make this more succinct and reduce need for updates with every new architecture?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I've updated PR
852b3fa
to
1936641
Compare
RISC-V test results for qemu-prio1-checked (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
With TieredCompilation tracing/eventpipe/processinfo tests are skipped by theirs .sh launchers. Disabling TieredCompilation leads to fails like:
This patch adds RiscV64 and makes pass tracing/eventpipe/processinfo tests with
DOTNET_TieredCompilation="0"
option. Tests influenced:cc @dotnet/samsung. Part of #84834.
cc @shushanhf @LuckyXu-HF seems Loongarch64 needs same changes.