-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 BigInteger outerloop test #111841
Fix BigInteger outerloop test #111841
Conversation
This has presumably been failing since capping BigInteger to a maximum length
src/libraries/System.Runtime.Numerics/tests/BigInteger/GetBitLengthTests.cs
Outdated
Show resolved
Hide resolved
/azp run runtime-libraries-coreclr outerloop-linux |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-libraries-coreclr outerloop-linux |
Azure Pipelines successfully started running 1 pipeline(s). |
src/libraries/System.Runtime.Numerics/tests/BigInteger/GetBitLengthTests.cs
Outdated
Show resolved
Hide resolved
/azp run runtime-libraries-coreclr outerloop-linux |
Azure Pipelines successfully started running 1 pipeline(s). |
😕 |
/azp run runtime-libraries-coreclr outerloop-windows |
Azure Pipelines successfully started running 1 pipeline(s). |
Seems to be specific to the Linux containers. Let me ask a bit internally on this. |
Could just be they have a less memory, or a combination of less memory + concurrency. Could also be this test contributing runtime/src/libraries/System.Runtime.Numerics/tests/BigInteger/BigIntegerToStringTests.cs Lines 525 to 527 in 1b71136
Here's all the Outerloop tests to consider https://github.com/search?q=repo%3Adotnet%2Fruntime%20path%3Asrc%2Flibraries%2FSystem.Runtime.Numerics%2Ftests%20Outerloop&type=code |
Ah, good point. I didn't think about other outerloop tests in the same project. That test in particular should probably use The other outerloop don't look to be doing anything "significant" memory wise, just doing extended validation that isn't required to run every PR. |
@Rob-Hague is that something you'd be willing to try and fix as part of this PR? If not, I can push a commit up and try to finish getting CI passing for what's left The change you have provided already is much appreciated and looks like it should help the original issue. |
Took a quick look, even when using runtime/src/libraries/Common/src/System/Number.Formatting.Common.cs Lines 924 to 927 in 3688b59
The 'G' format has an early out so does not suffer the same problem. I have just commented the exponential tests since I have not determined whether an early out would always be valid. I am signing off for the day, feel free to change or revert things in this branch |
/azp run runtime-libraries-coreclr outerloop-linux |
Azure Pipelines successfully started running 1 pipeline(s). |
Tests are passing now. There's some other unrelated failures still, but those are independent of what's being fixed here. |
* main: (31 commits) More native AOT Pri-1 test tree bring up (dotnet#111994) Fix BigInteger outerloop test (dotnet#111841) JIT: Run 3-opt once across all regions (dotnet#111989) JIT: Check for profile consistency throughout JIT backend (dotnet#111684) [JIT] Add legacy extended EVEX encoding and EVEX.ND/NF feature to x64 emitter backend (dotnet#108796) [iOS][globalization] Fix IndexOf on empty strings on iOS to return -1 (dotnet#111898) System.Speech: Use intellisense xml from dotnet-api-docs (dotnet#111983) [mono][mini] Disable inlining if we encounter class initialization failure (dotnet#111754) [main] Update dependencies from dotnet/roslyn (dotnet#111946) Update dependencies from https://github.com/dotnet/arcade build 20250129.2 (dotnet#111996) Try changing the ICustomQueryInterface implementation to always return NotHandled instead of Failed to defer back to the ComWrappers impl. (dotnet#111978) Combined dependency update (dotnet#111852) Replace OPTIMIZE_FOR_SIZE with feature switch (dotnet#111743) Fix failed assertion 'FPbased == FPbased2' (dotnet#111787) Add remark to `ConditionalSelect` (dotnet#111945) JIT: fix try region cloning when try is nested in a handler (dotnet#111975) Use IRootFunctions in Tensor.StdDev (dotnet#110641) Remove zlib dependencies from Docker containers (dotnet#111939) Avoid `Unsafe.As` for `Memory<T>` and `ReadOnlyMemory<T>` conversion (dotnet#111023) Cleanup membarrier portability (dotnet#111943) ...
This has presumably been failing since capping BigInteger to a maximum length
fixes #111814