Uh oh!
There was an error while loading. Please reload this page.
[tests] ported environment variables to MSBuild - #195
Conversation
dnfclas
commented
Oct 20, 2017
@jonathanpeppers, |
jonpryor
commented
Oct 23, 2017
This PR requires using Which is why the PR build says:
...which is problematic, actually, because everything is failing: I wonder if the Best case, the |
dd8d833 to
cf385ebComparejonathanpeppers
commented
Oct 23, 2017
The new test failure now is very odd. Looks like a failure to Is it caused by a newer version of mono on the build agent? |
jonpryor
commented
Oct 23, 2017
staticstringFormatFraction(doublevalue,intwidth,intfractionWidth){varv=value.ToString("0.0"+newstring('#',fractionWidth-1));vari=v.IndexOf(NumberFormatInfo.CurrentInfo.NumberDecimalSeparator);varp=newstring(' ',width-fractionWidth-i-1);returnp+v+newstring(' ',width-p.Length-v.Length);}Presumably Are you able to repro locally? |
jonathanpeppers
commented
Oct 23, 2017
It seems to work fine for me locally: I have this mono: |
jonathanpeppers
commented
Oct 24, 2017
@jonpryor some insight on the test failure. I installed Mono 5.8 and the performance tests are now running pretty slow. A previous test on Jenkins took about The values passed to |
jonathanpeppers
commented
Oct 25, 2017
@akoeplinger do you know the right person to check into the slowness of these tests? I'm going to fix a bug in the test to fix a case if there are too many digits in the time elapsed, but it still looks like there is something going on with Mono 5.8. |
akoeplinger
commented
Oct 25, 2017
@jonathanpeppers yes, it's me 😄 I'll try to run these tests locally and see what I can find. |
This ensures the following values are set on Windows: - MONO_TRACE_LISTENER - JAVA_INTEROP_GREF_LOG - JAVA_INTEROP_LREF_LOG This also cleans up what needs to be done downstream in xamarin-android: dotnet/android#949 This required a new `Java.Interop.BootstrapTasks` project that adds a `SetEnvironmentVariable` MSBuild task. This will be useful down the road, for setting "prepare" steps in this repo for Windows. Mono 5.8 also seems to have introduced a slowness in the PerformanceTests, included a fix to allow more digits in the time elapsed. This prevents a test failure on Mono 5.8. Also minor updates to `.gitignore` file.
cf385eb to
ce2578cCompareakoeplinger
commented
Oct 25, 2017
As discussed over Slack, Mono 5.8 doesn't seem to be the issue (at least we can't repro the slowdown locally). |
This ensures the following values are set on Windows: - MONO_TRACE_LISTENER - JAVA_INTEROP_GREF_LOG - JAVA_INTEROP_LREF_LOG This also cleans up what needs to be done downstream in xamarin-android: dotnet/android#949 This required a new `Java.Interop.BootstrapTasks` project that adds a `<SetEnvironmentVariable/>` MSBuild task. This will be useful down the road, for setting "prepare" steps in this repo for Windows. Running `PerformanceTests` also is occasionally, *randomly*, slower than expected. (The exact reason why is currently unknown.) When it's "too" slow, an `ArgumentOutOfRangeException` was being thrown from `FormatFraction()` because the overall width for the time was longer than what was permitted. Increase the width to allow more digits. Minor updates to `.gitignore` file.
This ensures the following values are set on Windows:
This also cleans up what needs to be done downstream in xamarin-android:
dotnet/android#949
This required a new
Java.Interop.BootstrapTasksprojectthat adds a
SetEnvironmentVariableMSBuild task.This will be useful down the road, for setting up "prepare"
steps in this repo for Windows.
Mono 5.8 also seems to have introduced a slowness in the
PerformanceTests, included a fix to allow more digits in
the time elapsed. This prevents a test failure on Mono 5.8.
Also minor updates to
.gitignorefile.