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

8024 Коммитов

Автор SHA1 Сообщение Дата
Manuel de la Pena 5b99859321
[Harness] Move BuildToolTask to a more general namespace. (#8287)
Move the task and use composition so that we can reuse the code. This
will later allow other projects to use the class without the need of
Jenkins or Harness and just implement the base class.



Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Přemek Vysoký <premek.vysoky@microsoft.com>
2020-04-08 15:03:33 -04:00
Manuel de la Pena a6955968fa
[Master] Bump mono to 165f4b03 to match android. (#8326)
Commits:

* mono/mono@165f4b0341: [2020-02][debugger] Fix NOT_IMPLEMENTED while debugging. (#19450)
* mono/mono@b04dc7e6a4: Bump corefx to get https://github.com/mono/corefx/pull/395 (#19426)

Diff: ecde08600b...165f4b0341

Related android PR: https://github.com/xamarin/xamarin-android/pull/4540
2020-04-08 14:50:26 -04:00
Rolf Bjarne Kvinge 2e8e26ae1d Bump maccore to get msbuild.zip fix.
New commits in xamarin/maccore:

* xamarin/maccore@ad1696d6f3 Restore Xamarin.iOS.Tasks project for msbuild.zip (#2198)

Diff: a1ad303faf..ad1696d6f3
2020-04-08 13:51:22 -03:00
Přemek Vysoký db921689a9
[Harness] Remove launchTimeout parameter from TestReporter, move factories (#8322) 2020-04-08 11:32:47 -04:00
Rolf Bjarne Kvinge 4b917ad2de
Create a general rule to create makefile fragments for project files. (#8320)
The generator project file still needs some custom logic, because we can't put
the generated makefile fragment next to the csproj (that would break the
API/generator diff).
2020-04-08 16:59:17 +02:00
Rolf Bjarne Kvinge 58f0a0a2c0
[tests] Fix building 'test.config' by passing 'test.config' as an argument to make and not as the working directory to the process. (#8315) 2020-04-08 16:20:21 +02:00
Rolf Bjarne Kvinge 8e0a6d5319
[mmp] Remove unused files. (#8310) 2020-04-08 16:20:10 +02:00
Rolf Bjarne Kvinge c0abd628d3
[mtouch/mmp] Use the standard DEBUG define to determine when we're running from inside an IDE. (#8311)
We're using the Release configuration to build the mtouch and mmp binaries
that we ship, which means that we can use the Debug configuration for
debugging from an IDE, and use the standard conditional compilation symbols to
identify that case.
2020-04-08 16:20:04 +02:00
Rolf Bjarne Kvinge 28d97d6b6b
[xharness] Don't overwrite variations. (#8312)
This means different variations of tests won't show up as identical in the
html report.
2020-04-08 16:19:58 +02:00
Rolf Bjarne Kvinge 82f3bacc57
[xharness] .NET projects don't need 'nuget restore', they're always restored automatically. (#8313) 2020-04-08 16:19:52 +02:00
Rolf Bjarne Kvinge da2090c460
[tests] Move mmptest/regression to mmp-regression. (#8314)
dotnet doesn't like projects within projects in the file system, because of
default inclusion behavior, where the top project will want to include the
source files for the nested projects.

There are ways around that, but the easiest is to just make sure there aren't
projects within other project directories.
2020-04-08 16:19:47 +02:00
Rolf Bjarne Kvinge d3674f7efc
[mmp] Move tools/mmp/tests to tests/mmp-aot-tests. (#8317)
This is to avoid having projects within other projects' directories, which
ends up being cumbersome in .NET 5 due to default inclusion behavior.
2020-04-08 16:19:39 +02:00
Rolf Bjarne Kvinge 3d7a38e464
[mtouch/mmp] Use a single SdkVersions.cs in tools/common. (#8318)
No need to have two identical files around.
2020-04-08 16:19:34 +02:00
Rolf Bjarne Kvinge 0299a66604
[mtouch/mmp] Simplify makefile a bit. (#8319) 2020-04-08 16:19:19 +02:00
Rolf Bjarne Kvinge f69ef4f696
Setting an environment variable to null doesn't work in .netcore. (#8316)
There is a difference between mono and .netcore with regards to environment
variables when launching processes.

For the following example:

    process.StartInfo.EnvironmentVariables ["FOO"] = null;

.netcore will launch the process with an empty FOO variable, while mono will
launch the process with no FOO variable set.

So unstead remove the variable from the collection of environment variables
(this works fine even if the collection doesn't contain the variable).

Ref: https://github.com/dotnet/runtime/issues/34446
2020-04-08 16:19:08 +02:00
Manuel de la Pena f891076bd8
[Harness] Move to create a more general TestTasks class to be reused. (#8286)
Some of the Jenkins test tasks are very useful and do A LOT of stuff. So
we try to generalize the base class, to later be able to share the most
usebul ones in the shared lib.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-04-07 20:20:38 -04:00
Rolf Bjarne Kvinge c5ade80b2e Fix whitespace. 2020-04-07 14:01:52 -03:00
Rolf Bjarne Kvinge 24c2745253 Bump maccore.
New commits in xamarin/maccore:

* xamarin/maccore@a1ad303faf Include MSBuild assemblies in msbuild.zip (#2195)

Diff: a14f74b40a..a1ad303faf
2020-04-07 14:01:52 -03:00
emaf df8afe584b [msbuild] Conditionally include MSBuild assets
Updates the Microsoft.Build* references to use PackageReference to match Xamarin.iOS.Tasks.Core.csproj, and conditionally includes the MSBuild assets so these can be copied to the output directory if needed. If `IncludeMSBuildAssets` is not set, the behavior will remain the same, the MSBuild assemblies won't be copied to the output dir.
2020-04-07 14:01:52 -03:00
Sebastien Pouliot b279401727
[linker] Remove nullability attributes than are not used at runtime (#8301) 2020-04-07 11:00:15 -04:00
Sebastien Pouliot 221f3f8b92
Bump versions to .21. now that d16-7 branch was created (#8300) 2020-04-07 10:58:54 -04:00
Manuel de la Pena b6fbae5cfb
[Foundation] As a default, do not use the workaround in NSUrlSessionHandler for thethreadpool. (#8296)
When an application was moved the the background, the thread pool from
mono would be left in an unknonw state, making applications to stale
(https://xamarin.github.io/bugzilla-archives/58/58633/bug.html#c7).

This work was added in https://github.com/xamarin/xamarin-macios/pull/5463

We now set the default behaviour to skip the workaround to see if the
new provided mono works as expected. We do not fully remove the
workaround because we need some real world testing.

If the new ThreadPool from mono does not work as expected we do provide
a property to re-add the workaround. The BypassBackgroundSessionCheck
can be set to false to allow users get it back.

The following is an example usage of the API:

```csharp
// create your own handler instance rather than using the one provided
by default.
var handler = new NSUrlSessionHandler() {
  BypassBackgroundSessionCheck = false, // readd the hack
};
var httpClient = new HttpClient (handler); // use the handler with the hack
```

This is a partial fix for https://github.com/xamarin/xamarin-macios/issues/7080
2020-04-06 18:56:52 -04:00
Alex Soto 55c6bd74e5
[maccore] Bump maccore to bring localization revert (#8298)
New commits in xamarin/maccore:

* xamarin/maccore@a14f74b40a Revert "[Localization] Rework mlaunch (#2171)" (#2194)
* xamarin/maccore@9939a3812d [mlaunch] Accept the latest C# language version in projects (#2193)

Diff: fdeec0f4cc..a14f74b40a
2020-04-06 17:21:28 -04:00
Přemek Vysoký 530f2a2bfa
[Harness] Rename device management classes (Devices, Simulators, ILoadAsync) (#8295) 2020-04-06 14:33:27 -04:00
Manuel de la Pena 6c9f62f56e
[Introspection] Fix a false typo in mac modern typo tests. (#8294)
Add Sha as an allowed word in the typo tests, it is a well known
acronym.
2020-04-06 14:31:46 -04:00
Přemek Vysoký b4a262eb42
Fix unit tests, make Devices fields readonly (#8293) 2020-04-06 10:57:31 -04:00
Manuel de la Pena ab476d7fa2
[Harness] Fix the generation of the sources. (#8289)
The name of the dll changed, ergo the prefix changed.
2020-04-06 09:52:18 -04:00
Rolf Bjarne Kvinge 2ae55ac1f4
[msbuild] Compute the ComputedFrameworkMoniker later in the build. Fixes #8277. (#8279)
It might only be necessary for Xamarin.iOS builds, but modify both XI and XM
so that the logic is identical.

Fixes https://github.com/xamarin/xamarin-macios/issues/8277.
2020-04-06 12:47:01 +02:00
Přemek Vysoký ce9f9278b6
[Harness] Move TestImporter into the shared library (#8283) 2020-04-03 18:28:49 -04:00
Manuel de la Pena 10333b0d0f
[Harness] Make sure TestsTasks do not share an id. (#8273)
Threading is hard, part 2. We could have a situation in which two tasks
that are instantiated async use the same id. The id is later used to
build the logs directory etc.. When they share the id we end up in a
situation in which the logs overlap.

fixes: https://github.com/xamarin/xamarin-macios/issues/8146
2020-04-03 14:43:04 -04:00
Sebastien Pouliot a4d5d97b99
[avfoundation] Remove extra NSString instance created to get a constant (#8280) 2020-04-03 14:14:43 -04:00
Manuel de la Pena 3004e7d34b
[Harness] Ensure we do not throw an exception if we do not have tasks. (#8272)
The First extension will throw an exception if the list is empty. Use
FirstOrDefault, check if the devices are null and return the test as
Ignored.

fixes: https://github.com/xamarin/xamarin-macios/issues/8271
2020-04-03 13:23:35 -04:00
Manuel de la Pena f8001a8114
[Bump VMac] Bump max version of VSMac to current stable major. (#8282)
Current VSMac version is 8.5.1.42. Bump the max version so that we can
dogfood at least the stable channel without setting the ignore flag.
2020-04-03 13:14:11 -04:00
Manuel de la Pena da0c009a39
[Bump Mono] Bump mono to match android to ecde086 (#8281)
Commits:

* mono/mono@ecde08600b: [runtime] Allocate the memory for gshared gparams from image sets. (#19361) (#19419)
* mono/mono@8fb9301292: [meta] Add mono_type_get_name_full to public API (#19415)
* mono/mono@7bfb441fb4: Fix Windows .msi build using newer xar
* mono/mono@e77cea1910: Fix Windows .msi build with recent cygwin updates

Complete diff: fda73998f9..ecde08600b
2020-04-03 13:10:19 -04:00
Manuel de la Pena d7160b3dcf
[Harness] Completely remove the BCL prefix from the test importer. (#8224)
Remove the last BCLPrefix and move the InfoPlistGenerator to the managed
namespace since it is part of the managed template.
2020-04-03 11:01:56 -04:00
Přemek Vysoký d4cf8301cf
[Harness] Allow to create a process manager with default tool paths (#8278) 2020-04-03 11:00:45 -04:00
Alex Soto 5aa2b1c34f
Update azure-pipelines.yml 2020-04-02 22:20:01 -04:00
Alex Soto 316359cf98 [maccore] Bump maccore to get AzDo script changes (#8269)
New commits in xamarin/maccore:

* xamarin/maccore@fdeec0f4cc Update external-deps.csx (#2191)
* xamarin/maccore@f473e45166 [Localization] Rework mlaunch (#2171)

Diff: 5dbf6f4c5f..fdeec0f4cc
2020-04-02 16:20:42 -04:00
Rolf Bjarne Kvinge 5aff10b3c0
[msbuild] No need to pass --gsharedvt to mtouch anymore, mtouch ignores --gsharedvt since it must always be enabled. (#8270) 2020-04-02 17:22:17 +02:00
monojenkins 04acaf65e4
[UIKit] Fixes UIGestureRecognizer default introduced in iOS 13.4 (#8264)
Fixes xamarin/Xamarin.Forms#10162
Fixes xamarin/xamarin-macios#8255

Xcode 11.4 introduced a new protocol member to
`UIGestureRecognizerDelegate` and our initial proposed default value for
`ShouldReceiveEvent` is not playing well with the world.

Co-authored-by: Alex Soto <alex@alexsoto.me>
2020-04-01 18:50:36 -04:00
Manuel de la Pena 786bfc09f5
[Mono bump] But mono to match android. (#8259)
Commits:

* mono/mono@7bfb441fb4 Fix Windows .msi build using newer xar

Full diff: e77cea1910..fda73998f9

Related android PR: https://github.com/xamarin/xamarin-android/pull/4500
2020-04-01 15:15:41 -04:00
Manuel de la Pena feec8d4ef9
[Harness] Remove hardcoded paths to the testing framework dlls. (#8244)
The testing framework dlls come from mono and their paths are harcoded
in the templates. Move the hardcoded paths out to the assembly locator
which know were to find the paths.

This is needed to later allow the cmd to pass the location of the paths.
2020-04-01 15:10:13 -04:00
Manuel de la Pena 1518894394
[Harness] Add the assets as part of the managed template. (#8251)
The assets were being used from the bcl-test directory. Move them as
part of the template. Renamed a file to make things a little easier when
adding the assets (a '.' in the middle of the name made this
complicated).

The template should be selfcotained.
2020-04-01 15:09:08 -04:00
Manuel de la Pena f16561b49f
[Harness] If we cannot connect over tcp use Console.Out as the writer. (#8235)
If we could not connect to the host via tcp, set the writer to be
Console.Out which will fix the NRE and will report the test run in the
runlogs.

fixes: https://github.com/xamarin/xamarin-macios/issues/8130
2020-04-01 14:03:40 -04:00
Přemek Vysoký b14a055265
[Harness] Move code to a shared library (#8234)
- Code that will later be moved to the `dotnet/xharness` repo is first moved to an isolated project before it will be extracted to the new repo and NuGetified
- New project for the shared code and new test project for tests accompanying the moved code are created
- Only Factories are left behind that are used only by XHarness
2020-04-01 13:32:21 -04:00
Manuel de la Pena a4e31d546a
[Mono Bump] Bump mono to pick fix for issue (#19389) (#8257)
Commits:

* mono/mono@e77cea1910 Fix Windows .msi build with recent cygwin updates.
* mono/mono@fda73998f9 Adding static to ss_req_acquire and ss_req_count.

Complete diff: beccf5ba43...e77cea1910
2020-04-01 13:06:54 -04:00
Sebastien Pouliot 559ca5624d
[homekit] Remove manual workaround since #57870 was fixed a while ago (#8256) 2020-04-01 11:53:10 -04:00
Vincent Dondain dd9b320704
[devops] Fix provision-xcode unhandled exception (#8253)
In cases where a `Make.config` doesn't exist, there's an unhandled exception and the user friendly one cannot be reached.

Arguably, an edge case not applicable to xamarin-macios I discovered when using that code in an other context (where obviously I don't have a Make.config :P). Still this is making the code more robust (;
2020-04-01 10:30:02 -04:00
Sebastien Pouliot 86ab2bc1d1
[tests][link all] Remove test workaround (#8252)
iOS fixed after Xcode 11 release

Fix https://github.com/xamarin/xamarin-macios/issues/6254
2020-04-01 09:00:26 -04:00
Sebastien Pouliot ac01b522f0
[generator] Add missing `EnsureUIThread` for generated `init` and `initWithCoder` (#8250)
Fix https://github.com/xamarin/xamarin-macios/issues/8249
2020-03-31 17:20:44 -04:00