Граф коммитов

1679 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 4235dfbff7
[mmp] Use the right pkg-config directory. (#9105) 2020-07-16 17:57:15 +02:00
Manuel de la Pena fcc410f36a
[DevOps] Add debugging messages from when we fail the ./configure (#9102)
Some bots are giving error with this step. Try to add some verbosity and
ensure that $? is 0 when done.
2020-07-15 20:13:57 -04:00
Manuel de la Pena 3fccc1e3e0
[DevOps] If we cannot clear the hd, continue. (#9101)
Few things:

1. Move from Write-Error to Write-Debug so that we do not set the exit
code and an error.
2. Ig we fail in the Clear-HD step, continue, we should be ok or cancel
if not enough space is found.
2020-07-15 20:13:34 -04:00
Manuel de la Pena f13fe4ba30
[DevOps] In a self-hosted pool we need to specify the os. (#9100) 2020-07-15 18:51:37 -04:00
Manuel de la Pena 773df34fde
[DevOps] Fix issues with the xm storage path. (#9043)
* [DevOps] Fix issues with the xm stroage path.

For some reason, and it is very probably a bug in the azurepipelines,
the following bash code creates a path with an extra single quote at the
end:

```bash
 P=jenkins/xamarin-macios/$BUILD_LANE/$BUILD_REVISION/$ID/device-tests

echo "##vso[task.setvariable variable=XM_STORAGE_PATH]$P"
```

* Should it do it? Not, it should not.
* Does it do it? Yes, it does.

We work around it via td -d \'\" and remove all single and double quotes
in the string. How long did it take to discover this? More than it
should have.

There is another interesting bug with the variable expansion, the
following
```bash
echo '##vso[task.setvariable variable=XAMARIN_STORAGE_PATH;isOutput=true]$P'
```
Does not equal
```bash
echo '##vso[task.setvariable variable=XAMARIN_STORAGE_PATH;isOutput=true]'$P
```

The first will not expand the variable, the second one will. We do need
the value of $P not '$P'.


Co-authored-by: Whitney Schmidt <51677938+whitneyschmidt@users.noreply.github.com>
2020-07-10 17:19:59 -04:00
Manuel de la Pena 9eff2f2964
[DevOps] Move back to self hosted windows pools. (#9040)
The microsoft hosted images have a limit of 10gb, or logs are getting
close to that size when expanded, therefore we will get into issues.
Move back to the self-hosted pool before we have problems.
2020-07-08 18:57:56 -04:00
Rolf Bjarne Kvinge 80c3cc0028
[src] Create a Constants.cs file for Constants that are in all platforms. (#9031) 2020-07-08 18:04:38 +02:00
Manuel de la Pena f4d165863a
[DevOps] Clean all workspaces and try to fix our space problems. (#9028) 2020-07-07 18:45:50 -04:00
Rolf Bjarne Kvinge 739ab8dfd4
Merge pull request #8980 from rolfbjarne/dotnet-xharness-introspection
[dotnet] Make the introspection tests pass in the 64-bit iOS simulator.
2020-07-06 11:14:40 +02:00
Rolf Bjarne Kvinge 46b6d3787d
[mtouch] Regenerate Errors.designer.cs after some entries were removed from Errors.resx. (#8994) 2020-07-03 17:40:25 +02:00
Rolf Bjarne Kvinge 5d5a47b990 [tools] Don't link with a framework that isn't available in the simulator. 2020-07-03 11:14:03 +02:00
Rolf Bjarne Kvinge 6f6b8e281b Merge remote-tracking branch 'origin/main' into dotnet-xharness-introspection 2020-07-03 11:12:50 +02:00
Rolf Bjarne Kvinge d621e3a854
[dotnet] Use the exact same dotnet version in our global.jsons as in Make.config. (#8984)
This avoids a possible difference in behavior, because in our system
dependency check we verify that the system has a specific version (which might
succeed), but if we don't pick a specific dotnet version in global.json,
dotnet will pick the latest version, which may behave differently than the one
we have in Make.config.

Thus always use the exact same version, so that we don't run into a difference
in behavior between developers and/or bots.
2020-07-01 17:08:46 +02:00
Manuel de la Pena ce244b7ccd
[DevOps] Release device bots as soon as possible. (#8979)
The upload of the results takes 2 hours:

* 1 hour uploading to vsts test results.
* 1 hour uploading to vsdrops.

This means that we are blocking a device bot for an extra hours (since
the vsdrops is done in a windows bot) when it is not needed. We could
add both uploads to the vsdrops job, but since steps cannot be ran in
parallel, it means that we re waiting for 2 hours when we really do not
have to.

We create two jobs to parallelize the upload of files and we release the
device bot ASAP. That means that our device bots can be free to get new
jobs (and they are the bottle neck) while the windows bots perform the
different uploads.

To make things easier a template that downloads the artifacts was added
so that there is not much code repetition.
2020-06-30 22:19:54 -04:00
Manuel de la Pena b0bcbb2272
[DevOps] Explicitly allow empty xamarin storage paths. (#8977) 2020-06-30 13:15:54 -04:00
Rolf Bjarne Kvinge 5cfbd9fd4d [dotnet-linker] Add a GatherFrameworksStep and use the output when linking the native executable.
Add a GatherFrameworksStep that computes the frameworks an app needs, and
returns the result to the MSBuild tasks.

Then we use that list of frameworks to link the native executable correctly.
2020-06-30 19:01:07 +02:00
Rolf Bjarne Kvinge 6f0ed03515 [dotnet-linker] Make an Application instance available from the linker configuration, and add more properties to the compat Application type.
This way it's easier to reuse existing mtouch/mmp code that need an Application instance.
2020-06-30 19:01:07 +02:00
Rolf Bjarne Kvinge 9b3916f974 [dotnet-linker] Pass DeploymentTarget, IsSimulatorBuild and SdkVersion to the linker configuration. 2020-06-30 19:01:07 +02:00
Manuel de la Pena 2372a6cfcd
[DevOps] Fix stupid param mistake. (#8971) 2020-06-26 18:27:43 -04:00
Manuel de la Pena 9c91a4ec3c
[DevOp] Allow $amarinStorage to be empty. (#8963)
pwsh will complain if a mandatory parameter is empty. Remove the attr
and allow it to be empty since the if statements do check fir it.
2020-06-26 16:51:21 -04:00
Manuel de la Pena 74dc21d71e
[DevOps] fix quotes. (#8959) 2020-06-26 08:02:05 -04:00
Rolf Bjarne Kvinge 8866707bdb
[mlaunch] Add a commit message with a pointer to the maccore hash that GitHub renders as a link. (#8956)
Add a commit message with a pointer to the maccore hash that GitHub renders as
a link when publishing an mlaunch binary to the macios-binaries repository.

This will hopefully make it _slightly_ easier to review since verifying the
maccore hash is now just a click away.
2020-06-26 10:55:51 +02:00
Whitney Schmidt 5580e873ca
[DevOps] Add error handling for incorrect storage path (#8958)
* add error handling for storage path

* Revert "add error handling for storage path"

This reverts commit 751e54c254.

* revert whitespace changes, only add real change

* small fixes
2020-06-25 18:10:54 -04:00
Manuel de la Pena 2daa9088cd
[DevOps] Add the agent name to find the porivioning issues faster. (#8953)
Add the name of the agent that is added by the pipeline on the comments
posted in github.
2020-06-25 09:54:07 -04:00
Manuel de la Pena bf57e81467
[DevOps] Fix broken link. (#8952) 2020-06-25 08:56:14 -04:00
Manuel de la Pena 00a8a13df8
[DevOps] Return a success even when Clear-HD has issues. (#8951)
This is a workaround since in some bot we hit issue https://github.com/PowerShell/PowerShell/issues/9246
2020-06-25 08:55:50 -04:00
Manuel de la Pena 13bd5d2d59
[DevOps] Clean summary message. (#8945) 2020-06-24 19:36:05 -04:00
Manuel de la Pena 88c9276a09
[DevOps] Using netcat over ssh to check if port is open. (#8946)
Nicer than failing on ssh and faster to check if the ssh port is open.
2020-06-24 19:35:37 -04:00
Manuel de la Pena 8c081605a0
[DevOps] Allow to use vsdrops AND xamarin storage. (#8916)
Use both in those labs that support xamarin-storage so that we have a
backup. To do so, move the parameter to be a bool but keep the rest of
the logic the same.


Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-06-24 18:01:51 -04:00
Rolf Bjarne Kvinge 8c963e84d6
[dotnet] Make the generated main function work. (#8908)
With this PR a very basic sample app will build and launch successfully in the simulator.

This PR is best reviewed commit-by-commit; each change is explained by its commit message.
2020-06-23 15:14:01 +02:00
Rolf Bjarne Kvinge b74b30ccbf Document code a bit. 2020-06-23 15:06:44 +02:00
Rolf Bjarne Kvinge cd265f852c
[configure] Add an option to enable/disable install-source. (#8904)
Disable by default, but automatically enable for CI builds.

This makes running 'make install' with a fully built tree take ~8s instead of
20+s.
2020-06-22 10:26:21 +02:00
Manuel de la Pena 3cf2fc1316
[DevOps] Do not fail the tests is xamarin-storage cannot be reached. (#8912)
Try to create the folder in xamarin-storage, if that fails, rather than
stop with an error, execute the tests and st an env var.

Once the tests are complete, when adding the summaries, check if we did
fail to reach xamarin-storage and notify it.

This will make sure that tests won't fail if:

* xamarin-storage dies.
* bots are not in the vpn and could not reach xamarin-storage.
2020-06-19 20:18:35 -04:00
Rolf Bjarne Kvinge 6fd9e151ec [dotnet-linker] .NET Core doesn't support globalization yet.
Ref: https://github.com/xamarin/xamarin-macios/issues/8906

Otherwise .NET Core will run into this:

2020-06-10 17:07:55.450901+0200 MySingleView[72595:4489235] warning: CLR: Managed code called FailFast, saying "Infinite recursion during resource lookup within System.Private.CoreLib.  This may be a bug in System.Private.CoreLib, or potentially in certain extensibility points such as assembly resolve events or CultureInfo names.  Resource name: Arg_DllNotFoundException"

=================================================================
        Native Crash Reporting
=================================================================
Got a abrt while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
        Native stacktrace:
=================================================================
        0x1064bef2b - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_dump_native_crash_info
        0x10646b441 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_handle_native_crash
        0x1064be782 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : sigabrt_signal_handler
        0x7fff51c005fd - /Applications/Xcode_11.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_platform.dylib : _sigtramp
        0x0 - Unknown
        0x7fff51af0b7c - /Applications/Xcode_11.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_c.dylib : abort
        0x10662f0a3 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : ves_icall_System_Environment_FailFast
        0x10662f0d7 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : ves_icall_System_Environment_FailFast_raw
        0x106b0a37f - Unknown
        0x106b0a2f3 - Unknown
        0x106b081bb - Unknown
        0x106b07ad3 - Unknown
        0x106b07a5b - Unknown
        0x106b079db - Unknown
        0x106b07813 - Unknown
        0x106b07961 - Unknown
        0x1063ee6f6 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_jit_runtime_invoke
        0x10657815e - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : do_runtime_invoke
        0x106574de1 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_runtime_object_init_handle
        0x10652bc41 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_exception_from_token
        0x106b09c0b - Unknown
        0x106b09b33 - Unknown
        0x106b09a5b - Unknown
        0x106b099a3 - Unknown
        0x106b09963 - Unknown
        0x106b098f3 - Unknown
        0x106b098b3 - Unknown
        0x106b09863 - Unknown
        0x106b0939b - Unknown
        0x106b083dd - Unknown
        0x106b07ad3 - Unknown
        0x106b07a5b - Unknown
        0x106b079db - Unknown
        0x106b07813 - Unknown
        0x106b07961 - Unknown
        0x1063ee6f6 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_jit_runtime_invoke
        0x10657815e - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : do_runtime_invoke
        0x106574de1 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_runtime_object_init_handle
        0x10652bc41 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_exception_from_token
        0x106b0775b - Unknown
        0x106b068eb - Unknown
        0x106b04d63 - Unknown
        0x106a590ce - Unknown
        0x1063ee6f6 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_jit_runtime_invoke
        0x10657815e - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : do_runtime_invoke
        0x10657545b - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_runtime_class_init_full
        0x106414118 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_method_to_ir
        0x1063e4688 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mini_method_compile
        0x1063e6ce4 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_jit_compile_method_inner
        0x1063ea4f7 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_jit_compile_method_with_opt
        0x10646d5d8 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : common_call_trampoline
        0x10646d07d - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_magic_trampoline
        0x1069db396 - Unknown
        0x106b04a7b - Unknown
        0x106b02e83 - Unknown
        0x106b02d9b - Unknown
        0x106a590ce - Unknown
        0x1063ee6f6 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_jit_runtime_invoke
        0x10657815e - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : do_runtime_invoke
        0x10657545b - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_runtime_class_init_full
        0x106414118 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_method_to_ir
        0x1063e4688 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mini_method_compile
        0x1063e6ce4 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_jit_compile_method_inner
        0x1063ea4f7 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_jit_compile_method_with_opt
        0x10646d5d8 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : common_call_trampoline
        0x10646d07d - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_magic_trampoline
        0x1069db396 - Unknown
        0x106b02d53 - Unknown
        0x106a590ce - Unknown
        0x1063ee6f6 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_jit_runtime_invoke
        0x10657815e - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : do_runtime_invoke
        0x10657545b - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_runtime_class_init_full
        0x106414118 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_method_to_ir
        0x1063e4688 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mini_method_compile
        0x1063e6ce4 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_jit_compile_method_inner
        0x1063ea4f7 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_jit_compile_method_with_opt
        0x10646d5d8 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : common_call_trampoline
        0x10646d07d - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libmonosgen-2.0.dylib : mono_magic_trampoline
        0x1069db396 - Unknown
        0x106afea83 - Unknown
        0x106afdc0b - Unknown
        0x106afd5eb - Unknown
        0x106afd223 - Unknown
        0x106afd04b - Unknown
        0x106afcf2b - Unknown
        0x106af98c3 - Unknown
        0x106aec7fb - Unknown
        0x106a646ab - Unknown
        0x106a64543 - Unknown
        0x106a644e3 - Unknown
        0x106a6433b - Unknown
        0x106a63f03 - Unknown
        0x106a63d93 - Unknown
        0x106a62b5b - Unknown
        0x10638dc47 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libxamarin.dylib : xamarin_register_assembly
        0x106390394 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libxamarin.dylib : xamarin_initialize
        0x1063984e0 - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/libxamarin.dylib : xamarin_main
        0x1062d4f5d - /Users/rolf/Library/Developer/CoreSimulator/Devices/289E372A-501C-4499-A1A6-59C5B3B6A9AE/data/Containers/Bundle/Application/62875EFF-27D1-40D9-87BD-F223F45E4EC6/MySingleView.app/MySingleView : main
        0x7fff51a231fd - /Applications/Xcode_11.5.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libdyld.dylib : start
        0x1 - Unknown

=================================================================
        Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x7fff51b6133a):0x7fff51b6132a  ff ff c3 90 90 90 b8 48 01 00 02 49 89 ca 0f 05  .......H...I....
0x7fff51b6133a  73 08 48 89 c7 e9 e5 a2 ff ff c3 90 90 90 b8 53  s.H............S
0x7fff51b6134a  00 00 02 49 89 ca 0f 05 73 08 48 89 c7 e9 cd a2  ...I....s.H.....
0x7fff51b6135a  ff ff c3 90 90 90 b8 83 01 00 02 49 89 ca 0f 05  ...........I....

=================================================================
        Managed Stacktrace:
=================================================================
          at <unknown> <0xffffffff>
          at System.Environment:FailFast <0x0006e>
          at System.Environment:FailFast <0x00022>
          at System.SR:InternalGetResourceString <0x001ba>
          at System.SR:GetResourceString <0x00062>
          at System.SR:GetResourceString <0x0002a>
          at System.SR:get_Arg_DllNotFoundException <0x0001a>
          at System.DllNotFoundException:.ctor <0x00022>
          at System.Object:runtime_invoke_void__this__ <0x000e0>
          at <unknown> <0xffffffff>
          at Globalization:GetDefaultLocaleName <0x0005a>
          at System.Globalization.CultureData:GetDefaultLocaleName <0x00052>
          at System.Globalization.CultureInfo:GetUserDefaultCulture <0x0005a>
          at System.Globalization.CultureInfo:InitializeUserDefaultCulture <0x00022>
          at System.Globalization.CultureInfo:GetUserDefaultUICulture <0x00012>
          at System.Globalization.CultureInfo:InitializeUserDefaultUICulture <0x00022>
          at System.Globalization.CultureInfo:get_UserDefaultUICulture <0x00032>
          at System.Globalization.CultureInfo:get_CurrentUICulture <0x00052>
          at System.Resources.ResourceManager:GetString <0x0006a>
          at System.SR:InternalGetResourceString <0x003dc>
          at System.SR:GetResourceString <0x00062>
          at System.SR:GetResourceString <0x0002a>
          at System.SR:get_Arg_DllNotFoundException <0x0001a>
          at System.DllNotFoundException:.ctor <0x00022>
          at System.Object:runtime_invoke_void__this__ <0x000e0>
          at <unknown> <0xffffffff>
          at Globalization:LoadICU <0x0005a>
          at System.Globalization.GlobalizationMode:GetGlobalizationInvariantMode <0x0007a>
          at System.Globalization.GlobalizationMode:.cctor <0x00012>
          at System.Object:runtime_invoke_void <0x0007d>
          at <unknown> <0xffffffff>
          at System.Globalization.CultureData:CreateCultureWithInvariantData <0x00cda>
          at System.Globalization.CultureData:get_Invariant <0x00032>
          at System.Globalization.CultureInfo:.cctor <0x0001a>
          at System.Object:runtime_invoke_void <0x0007d>
          at <unknown> <0xffffffff>
          at System.Globalization.CompareInfo:.cctor <0x00012>
          at System.Object:runtime_invoke_void <0x0007d>
          at <unknown> <0xffffffff>
          at ObjCMethod:get_IsPropertyAccessor <0x000c2>
          at Registrar.Registrar:GetBindAsAttribute <0x0015a>
          at ObjCMethod:get_NativeReturnType <0x000ea>
          at Registrar.Registrar:ComputeSignature <0x001c2>
          at ObjCMethod:ComputeSignature <0x0005a>
          at ObjCMethod:ValidateSignature <0x0005a>
          at ObjCType:Add <0x000c2>
          at Registrar.Registrar:RegisterTypeUnsafe <0x047fa>
          at Registrar.Registrar:RegisterType <0x0008a>
          at Registrar.DynamicRegistrar:Register <0x00042>
          at ObjCRuntime.Class:Register <0x00032>
          at ObjCRuntime.Runtime:RegisterAssembly <0x000ea>
          at ObjCRuntime.Runtime:RegisterAssembly <0x00062>
          at ObjCRuntime.Runtime:register_assembly <0x00042>
          at ObjCRuntime.Runtime:register_assembly <0x0006a>
=================================================================
Xamarin.Hosting: Simulated process has exited.
2020-06-19 18:07:00 +02:00
Rolf Bjarne Kvinge 2572b67a10 [dotnet-linker] Generate a main function that actually works. 2020-06-19 17:48:16 +02:00
Rolf Bjarne Kvinge 77488b8fbe [dotnet-linker] Pass AssemblyName to the linker. 2020-06-19 17:48:14 +02:00
Manuel de la Pena 670d68c86c
[DevOps] Improve the comments added in GitHub. (#8898)
Comments were ugly. Clean a little the markdown.
2020-06-19 11:45:21 -04:00
Rolf Bjarne Kvinge 53c285c097
Merge pull request #8887 from rolfbjarne/dotnet-linker-generate-main
[dotnet] Generate a main function, and use it to compile the main executable.
2020-06-19 17:45:05 +02:00
Rolf Bjarne Kvinge c181d26ae4 Improve diagnostic output. 2020-06-19 17:41:04 +02:00
Manuel de la Pena 78730b8ceb
[DevOps] Update contexts to be more clear. (#8896)
The contexts are the ones that link a status with a device run. Update
them so that we do know the labe used (and remove a typo where we used
TvOS).
2020-06-18 17:10:01 -04:00
Manuel de la Pena 1b6b5dec20
[Devops] Use correct variables template on ddfun tvos pipeline. (#8895) 2020-06-18 15:28:47 -04:00
Manuel de la Pena 96e14746b3
[Devops] Fix typo in beta device pipeline. (#8894) 2020-06-18 15:15:37 -04:00
Manuel de la Pena ed8a00152e
[Devops] Add support for yaml pipelines in the old device pipelines. (#8862)
This commit moves all the different pipelines we have to fully use yaml.
That includes the old ddfun pipeline that was using a mix between using
yaml and the UI interface to configure it.

The new pipelines are found under the tools/devops/device-tests
directory. All of the use a very similar structure and therefore we use
a template. The README.md inside the directory should explain most of
the logic and the devices-tests.yml contains comments for each of the
steps.

Most of the bash scripts have been moved to use pwsh which is inside the
scripts directory and contains tests. Tests can be ran via:

```bash
make -C tools/devops/device-tests/scripts run-tests
```

This commit will only affect the ddfun pipeline that will need to be
updated to use the new yml path. All the other pipelines are not
affected and they will be to be updated manually.

The pipelines support two different storages for the html report.

* xamarin-storage: Old school.
* vsdrops: New age.

Unfortunatly we yet do not know how to workaround the fact that vsdrops
does not serve the files, therefore we use the xamarin-storage in all
pipelines but those in the ddfun lab because they do not have the right
access.

This later can be easily changed editing the
tools/devops/device-tests/tempaltes/cambridge-variables.yml which will
update all the pipelines in the cambridge lab.

PS: Sorry for the size.
2020-06-18 14:15:59 -04:00
Rolf Bjarne Kvinge 72bbee78c0 [dotnet] Load the output from the GenerateMain step into the MSBuild targets.
The GenerateMain step needs to return the generated filename to the MSBuild targets, and it does so by writing out MSBuild xml which is then loaded into the MSBuild logic.
2020-06-18 15:57:01 +02:00
Rolf Bjarne Kvinge 1401624e09 [dotnet-linker] Add a GenerateMain step.
This generates a very basic Main method that doesn't do anything at all.
2020-06-18 15:57:01 +02:00
Rolf Bjarne Kvinge c6abc2fea1 [dotnet-linker] Add CacheDirectory and ItemsDirectory to the linker configuration. 2020-06-18 15:57:01 +02:00
Rolf Bjarne Kvinge da1db99954 [dotnet-linker] Pass TargetArchitectures to the linker. 2020-06-18 15:52:16 +02:00
Rolf Bjarne Kvinge 197026622e [dotnet-linker] Add the MachO.cs file to get the Abi enum.
This also requires adding support for the ErrorHandler machinery, which the
MachO.cs file needs.

I considered extracting the Abi enum from the MachO.cs file, but it's used in
several places (including externally, such as binding-tools-for-swift), which
means this would be a rather disruptive change.

I also considered modifying MachO.cs to make it possible to build without the
ErrorHandler machinery, but since we'll need it all anyway eventually, I
decided against this option as well.
2020-06-18 15:52:16 +02:00
Rolf Bjarne Kvinge c3bcfac582
Unify code for executing processes. (#8848)
* Create a simple Xamarin.Utils.Execution class that can handle all our
  process execution needs:
    * Captures or streams stdout/stderr (in UTF8).
    * Supports async
    * Supports a timeout
    * Does not depend on any other source file we have, only uses BCL API.
* Have the execution helper classes from mtouch/mmp
  (Xamarin.BundlerDriver.RunCommand) and the tests
  (Xamarin.Tests.ExecutionHelper) use this new class.
* Some simplifications were made:
    * All API that took a string array for the environment now takes a
      Dictionary<string, string>.
    * The Driver.RunCommand methods were split out to a separate file. This
      file also contains a Verbosity field, which is conditioned on not being
      in mtouch nor mmp, which makes including this file from other projects
      simpler (such as bgen - in particular bgen was modified to use this
      Verbosity field instead of its own).
2020-06-18 12:34:07 +02:00
Manuel de la Pena 1d5557c328
[DevOps] Move away from a testing branch and use main. (#8874) 2020-06-17 12:59:44 -04:00