-
Notifications
You must be signed in to change notification settings - Fork 64
[tests] ported environment variables to MSBuild #195
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
Conversation
|
@jonathanpeppers, |
|
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
cf385eb
Compare
|
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? |
static string FormatFraction (double value, int width, int fractionWidth)
{
var v = value.ToString ("0.0" + new string ('#', fractionWidth - 1));
var i = v.IndexOf (NumberFormatInfo.CurrentInfo.NumberDecimalSeparator);
var p = new string (' ', width - fractionWidth - i - 1);
return p + v + new string (' ', width - p.Length - v.Length);
}Presumably Are you able to repro locally? |
|
It seems to work fine for me locally: I have this mono: |
|
@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 |
|
@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. |
|
@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
ce2578c
Compare
|
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.