Uh oh!
There was an error while loading. Please reload this page.
Changed all tests using random to use a seed in JIT/Methodical - #50767
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
BruceForstall
commented
Apr 8, 2021
@dotnet/jit-contrib |
JulieLeeMSFT
commented
Apr 8, 2021
@ADustyOldMuffin Thanks for your first contribution to dotnet! |
AndyAyersMS
commented
Apr 9, 2021
Runtime failures are unrelated . |
ADustyOldMuffin
commented
Apr 9, 2021
Thank you, I had looked through the logs and didn't think I could find anything related but I wasn't 100% if I was interpreting them correctly. |
AndyAyersMS
commented
Apr 9, 2021
There are two failures. The Linux arm64 checked failure is a long-standing failure in the xunit harness that orchestrates running the tests (#11063) The windows arm64 failure is an infrastructure problem in the post-processing done after the tests finished (successfully) I restarted the runtime-dev-innerloop failed runs since those CI legs got cancelled before they could finish. |
sandreenko
commented
Apr 9, 2021
The changes look good, thanks, Daniel.
Are you planning to fix the tests outside of Jit/Methodical? Grep for |
tannergooding
commented
Apr 9, 2021
The templates for the hardware intrinsics live in:
As best as I can tell, |
ADustyOldMuffin
commented
Apr 9, 2021
Thanks I'll take a look and try and grab the rest then in JIT. |
@sandreenko I made changes to the rest of the tests I found in For the template files I couldn't find any of the calls to random, but I have also never used templates for generation so it's quite possible I don't know what I'm looking for. I might need some help in regards to those. |
sandreenko
commented
Apr 20, 2021
looks like some changes are causing test failures, like you changed the seed in "src/tests/JIT/Performance/CodeQuality/Span/Indexer.cs" from 42 to 20010415 and now it fails with: looks like these are bad written tests where the result depends on what Random.Next() gives us, could you please revert the changes there and try again? JIT\Performance\CodeQuality\Span\Indexer\Indexer.cmd |
ADustyOldMuffin
commented
Apr 20, 2021
via email
Certainly, I've been slowly working through them sorry for the speed. …On Mon, Apr 19, 2021 at 7:46 PM Sergey Andreenko ***@***.***> wrote:
looks like some changes are causing test failures, like you changed the
seed in "src/tests/JIT/Performance/CodeQuality/Span/Indexer.cs" from 42 to
20010415 and now it fails with:
Raw output file: C:\h\w\9FD90917\w\B9B10A34\e\JIT\Performance\Reports\JIT.Performance\CodeQuality\Span\Indexer\Indexer.output.txt
Raw output:
BEGIN EXECUTION
"C:\h\w\9FD90917\p\corerun.exe" Indexer.dll
Running as correctness test: 1 iterations
pass -bench for benchmark mode w/default iterations
pass [#iterations] for benchmark mode w/iterations
**** Span known size bounds check elimination ****
KnownSizeCtor(1024): 0.05ms -- failed to validate, got 53 expected 70
KnownSizeCtor2(1024): 0.00ms -- failed to validate, got 53 expected 70
looks like these are bad written tests where the result depends on what
Random.Next() gives us, could you please revert the changes there and try
again?
JIT\Performance\CodeQuality\Span\Indexer\Indexer.cmd
JIT\SIMD\CircleInConvex_ro\CircleInConvex_ro.cmd
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#50767 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ3ZJWMVAJYPRDBZWPTV3HDTJTFHFANCNFSM42OACTWQ>
.
|
sandreenko
commented
Apr 20, 2021
No worries, thank you for working on this issue! |
I made changes to the two tests that were failing, but I'm not sure if they're alright changes. I just check that the tests don't return 0 as they shouldn't be 0 at any time. Past that the only fix would be to not have them use random. I also don't think that the build failures have anything to do with these changes. |
sandreenko
commented
Apr 28, 2021
/azp run runtime-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
sandreenko
commented
Apr 30, 2021
I would prefer to revert the changes in these 2 tests, I think it would align with the original issue:
these tests were using Random with a seed so they should not be changed. |
ADustyOldMuffin
commented
Apr 30, 2021
Ah apologies I misunderstood, reverted the changes to those tests. |
sandreenko
commented
Apr 30, 2021
/azp run runtime-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
sandreenko
commented
May 2, 2021
/azp run runtime-coreclr outerloop |
|
Azure Pipelines successfully started running 1 pipeline(s). |
sandreenko
left a comment
There was a problem hiding this comment.
LGTM, thanks @ADustyOldMuffin for your continuous effort to make this change! I will be glad to see more changes from you.
Addresses #7756
I found all of the tests inside of the JIT - Methodical folders using
Random()without a seed and put the code referenced in the thread in place to put a seed based on theCORECLR_SEEDenvironment variable, or to just use a default seed.Please let me know if I should include more tests in this PR, I found some more in the JIT folder but they use
Random()in a different way so I'm unsure.This is my first PR to Dotnet so any and all feedback is welcome and appreciated!