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

10867 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge e11ad011d9
[static registrar] Go straight to exception handling after invoking the managed method if an exception occurred. (#11714)
This fixes a memory corruption where we'd try to process out parameters when
an exception had occurred, and those out parameters weren't expected to be
processed.
2021-05-28 07:44:18 +02:00
Manuel de la Pena b538801293
[Action] Typo and space :/ (#11719) 2021-05-27 17:18:51 -04:00
Manuel de la Pena fb8aaf4552
[Action] If we did not have data do not fail. (#11718) 2021-05-27 17:11:52 -04:00
Manuel de la Pena 8c36e1acf2
[Action] Number is part of the event. (#11717) 2021-05-27 17:06:17 -04:00
Manuel de la Pena c5cf3aad24
[Actions] Clean data after a PR is closed. (#11715)
* [Actions] Clean data after a PR is closed.

To keep the github  webpage small we remove the data once the PR has
been closed (that means closed or merged). The data will be kept in
vsdrops, the only links that will stop working are those from the github
static webpage.

Since we are interested in making the reviewer life better this is a
good compromise.

How to avoif merge conflicts:

We want to make sure we avoid merge conflicts, this is done using two
locks:

1. macios.ci-cleanup - Lock in the xamarin-macios action that will
   ensure that we create a new branch to cleanup the data.
2. ci-results - Lock in the macios.ci action that will merge branhces
   one by one.

This repo will create a new pr that cleans the data, the macios.ci repo
will execute an action when this new branch is created and will merge it
as soon as possible making sure that previos created branches are
merged.

* Update .github/workflows/github-page-clean-up.yml

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2021-05-27 17:01:25 -04:00
Manuel de la Pena 7bc5a4c67f
[CI] Provide links to the GitHub pages that are generated per build. (#11703) 2021-05-27 12:09:26 -04:00
Manuel de la Pena 4097270665
[CI]Renove other files, better code. (#11713) 2021-05-27 12:06:44 -04:00
Rolf Bjarne Kvinge 57288a5ad4
[registrar] Return values from mono_value_box must be released. (#11708)
Before:

    There were 258046 MonoObjects created, 235142 MonoObjects freed, so 22904 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204193 MonoObjects freed, so 1611 were not freed. (static registrar)

After:

    There were 258054 MonoObjects created, 235172 MonoObjects freed, so 22882 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204193 MonoObjects freed, so 1611 were not freed. (static registrar)
2021-05-27 16:43:11 +02:00
Rolf Bjarne Kvinge c5bb80193b
[Foundation] Add reminder about NSAutoreleasePool. (#11706)
It's not trivial to do now, because the existing constructors are public,
which the generator isn't able to re-create without modifications (to the
generator).

So just add a reminder instead.
2021-05-27 16:42:28 +02:00
Rolf Bjarne Kvinge 013be35fc9
[runtime] Skip custom command line argument parsing for macOS and Mac Catalyst. (#11705)
Due to the following reasons:

* Desktop apps like macOS and Mac catalyst can be launched directly from the
  command line by users.
* It's trivial to set environment variables for desktop apps before launching
  them.
* All the different command line arguments we support for mobile targets can
  also be set using environment variables.

We don't need additional command line argument parsing for desktop platforms,
so just remove it.

The end result is that instead of doing this to run a specific unit test:

     path/to/macOS/app/MacOS/Contents/theapp --app-arg --test --app-arg MyTestFixture

This will now work:

     path/to/macOS/app/MacOS/Contents/theapp --test MyTestFixture

Which is how apps on desktop platforms should work anyway.
2021-05-27 16:42:09 +02:00
Mauro Agnoletti 02fa220f10
Updated Xamarin.Messaging version (#11699)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2021-05-27 15:06:49 +02:00
Sebastien Pouliot 7d3a95a161
[dotnet][linker] Use signature (not name) for iOS substitutions (just like tvOS) (#11700)
ref: https://github.com/xamarin/maccore/issues/2446
2021-05-27 08:50:37 -04:00
Rolf Bjarne Kvinge fa5bb58e6d
[static registrar] Add a missing call to xamarin_mono_object_release for return values from mono_value_box. (#11707)
Before:

    There were 258046 MonoObjects created, 235142 MonoObjects freed, so 22904 were not freed. (dynamic registrar)
    There were 205804 MonoObjects created, 204193 MonoObjects freed, so 1611 were not freed. (static registrar)

After:

    There were 258018 MonoObjects created, 235128 MonoObjects freed, so 22890 were not freed. (dynamic registrar)
    There were 205809 MonoObjects created, 204221 MonoObjects freed, so 1588 were not freed. (static registrar)
2021-05-27 13:54:09 +02:00
Manuel de la Pena bc3fdacebe
[CI] Remove xml files since they are in vsdrops and empty dirs. (#11704) 2021-05-27 06:06:06 -04:00
Rolf Bjarne Kvinge 2fed900225
[static registrar] Add a missing call to xamarin_mono_object_release for out parameters. (#11696)
This involves storing the out parameter in an additional variable, so that we
can still access it after the method call.

Before:

    There were 257927 MonoObjects created, 235060 MonoObjects freed, so 22867 were not freed. (dynamic registrar)
    There were 205700 MonoObjects created, 203983 MonoObjects freed, so 1717 were not freed. (static registrar)

After:

    There were 257935 MonoObjects created, 235064 MonoObjects freed, so 22871 were not freed. (dynamic registrar)
    There were 205700 MonoObjects created, 204006 MonoObjects freed, so 1694 were not freed. (static registrar)
2021-05-27 07:31:02 +02:00
Rolf Bjarne Kvinge c88c0b5283
[dotnet] Remove the .NET workload resolver workaround, it's not needed anymore. (#11695) 2021-05-27 07:30:46 +02:00
Rolf Bjarne Kvinge ba4fa19267
[runtime] Intercept the objc_msgSend family of functions using CoreCLR's supported mechanisms. (#11692)
This allows us to re-introduce a few tests.
2021-05-27 07:29:39 +02:00
Manuel de la Pena 97e34bc451
[CI] Fix build reason if and uses a better branch name. (#11690) 2021-05-26 23:34:29 -04:00
Manuel de la Pena 19bafa46e9
[CI] Expressions should be between $() (#11701) 2021-05-26 23:31:38 -04:00
Manuel de la Pena 37bbb91851
[CI] Override if present. (#11698)
This should not happen since we should not be getting same url.
2021-05-26 20:46:19 -04:00
Manuel de la Pena ff138b724e
[CI] Path returns errors becuase of missing ' use method. (#11697) 2021-05-26 15:47:51 -04:00
Jonathan Peppers 7bf450b987
[dotnet] publishing settings for NuGet.org (#11687)
* [dotnet] publishing settings for NuGet.org

Context: https://github.com/xamarin/xamarin-android/pull/5948

Microsoft has rules for submitting signed NuGet packages with the
namespace `Microsoft.*` under the Microsoft + Xamarin organizations.

Some of these rules include:

* Package must be signed.
* Must include a license.
* `$(Authors)` should be `Microsoft`
* `$(PackageProjectUrl)` can't be blank.
* `$(Copyright)` must *exactly* say `© Microsoft Corporation. All rights reserved.`

If any of these are wrong, you'll get errors during `nuget push` such as:

    Response status code does not indicate success:
    400 (The package is not compliant with metadata requirements for Microsoft packages on NuGet.org.
    Go to https://aka.ms/Microsoft-NuGet-Compliance for more information.
    Policy violations: The package metadata is missing required ProjectUrl.

We used a script to fix up these values and resign for .NET 6 Preview
4. This was painful but got us by for the current release.

Going forward, we should just fill out these values for .NET 6 .nupkg
files.

* Forgot $(PackageLicenseFile)
2021-05-26 21:35:05 +02:00
TJ Lambert 6ad068b946
[Localization] Cherry Picking lcl files (#11682)
* LEGO: Merge pull request 11652

LEGO: Merge pull request 11652

* LEGO: Merge pull request 11646

LEGO: Merge pull request 11646

Co-authored-by: csigs <csigs@users.noreply.github.com>
2021-05-26 13:59:55 -05:00
Rolf Bjarne Kvinge e4ce1a389d
[static registrar] Add a few missing calls to xamarin_mono_object_release for arrays. (#11685)
Before:

> There were 205700 MonoObjects created, 113865 MonoObjects freed, so 91835 were not freed. (static registrar)

After:

> There were 205700 MonoObjects created, 113982 MonoObjects freed, so 91718 were not freed. (static registrar)
2021-05-26 20:39:16 +02:00
Rolf Bjarne Kvinge fe0cc33b8c
[xharness] Disable msbuild node reuse to fix issue with msbuild processes interfering with eachother. (#11689)
Fixes https://github.com/xamarin/maccore/issues/2444.
2021-05-26 20:36:48 +02:00
Manuel de la Pena 8a2ed36ee3
[CI] Add debugging and fix some issue when detecting if it is a VM (#11598)
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2021-05-26 13:36:27 -04:00
Manuel de la Pena 9d97d43f74
[CI] Verify the notarized pkgs. (#11677) 2021-05-26 10:38:09 -04:00
Manuel de la Pena 90c9593bf2
[CI] Remove txt files and use a better path for the static content. (#11676) 2021-05-26 10:26:48 -04:00
Sebastien Pouliot e7a0358452
[catalyst][automaticassessmentconfiguration] Update for Catalyst (#11678)
Available since 14.0
2021-05-26 09:24:21 -04:00
Sebastien Pouliot 54fe91cc36
[dotnet][linker] Use substitutions to stub debug helpers in UIApplication (#11679)
Both
* EnsureEventAndDelegateAreNotMismatched
* EnsureDelegateAssignIsNotOverwritingInternalDelegate

are helpers that will warn, on console, if ObjC delegates are mis-used
inside the application. Those message are not useful at runtime and we
can use ILLink's substitutions to remove the content of the checks for
release builds.
2021-05-26 09:21:43 -04:00
Rolf Bjarne Kvinge 80c755ee2e
[runtime] Return values from mono_array_get must be released. (#11683)
Before:

    There were 257927 MonoObjects created, 144942 MonoObjects freed, so 112985 were not freed. (dynamic registrar)
    There were 205700 MonoObjects created, 113865 MonoObjects freed, so 91835 were not freed. (static registrar)

After:

    There were 257931 MonoObjects created, 235062 MonoObjects freed, so 22869 were not freed. (dynamic registrar)
    There were 205700 MonoObjects created, 203983 MonoObjects freed, so 1717 were not freed. (static registrar)
2021-05-26 15:09:51 +02:00
Rolf Bjarne Kvinge 410167189b
[xharness] Run .NET tests when bumping .NET. (#11670) 2021-05-26 07:50:59 +02:00
Rolf Bjarne Kvinge 1b7cfd6a31
[darc] Update README (#11674)
* Specify that that GitHub PATs need SSO enabled to work.
* Add command example to create new subscription for preview release branches.
2021-05-26 07:39:33 +02:00
Manuel de la Pena 2a208f2f16
[CI] Add files to git and push them to the static web. (#11666) 2021-05-25 15:41:25 -04:00
Rolf Bjarne Kvinge 7705a87833
[mlaunch] Fix conditional makefile logic. (#11668)
This makes us ship mlaunch in .NET again.
2021-05-25 21:31:47 +02:00
Rolf Bjarne Kvinge a266fd7ce7
[runtime] Don't include a workaround for a ancient bug anymore in .NET. (#11669)
The workaround doesn't work anymore anyway, this is printed on every launch:

> MonoTouch: Could not install sigaction override, unexpected sigaction implementation.

Ref: 054bbdce96
2021-05-25 21:30:35 +02:00
dotnet-maestro[bot] e8fa7676b8
[main] Update dependencies from dotnet/installer (#11485)
* Update dependencies from https://github.com/dotnet/installer build 20210510.2

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-preview.4.21218.6 -> To Version 6.0.100-preview.5.21260.2

Dependency coherency updates

Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.2.21212.1 -> To Version 6.0.100-preview.5.21257.3 (parent: Microsoft.Dotnet.Sdk.Internal

* Update dependencies from https://github.com/dotnet/installer build 20210516.3

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-preview.4.21218.6 -> To Version 6.0.100-preview.5.21266.3

Dependency coherency updates

Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.2.21212.1 -> To Version 6.0.100-preview.5.21264.1 (parent: Microsoft.Dotnet.Sdk.Internal

* Update dependencies from https://github.com/dotnet/installer build 20210524.3

Microsoft.Dotnet.Sdk.Internal
 From Version 6.0.100-preview.4.21218.6 -> To Version 6.0.100-preview.6.21274.3

Dependency coherency updates

Microsoft.NET.ILLink.Tasks
 From Version 6.0.100-preview.2.21212.1 -> To Version 6.0.100-preview.5.21271.1 (parent: Microsoft.Dotnet.Sdk.Internal

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2021-05-25 16:05:31 +02:00
Rolf Bjarne Kvinge 5a0600491c
[runtime] Add support for tracking created and destroyed MonoObject* instances for CoreCLR. (#11657)
* [runtime] Add support for tracking created and destroyed MonoObject* instances for CoreCLR.

Implement a rudimentary way of tracking created and destroyed MonoObject*
instances, so that it's easy to find leaks.

* Add a xamarin_bridge_shutdown method that's called just before returning from xamarin_main.

And use it to dump the leaked MonoObject*s.
2021-05-25 08:19:27 +02:00
Rolf Bjarne Kvinge 295533c26f
[tests] Add helper makefile for running monotouch-test on .NET/macOS from the command line with either MonoVM or CoreCLR. (#11656) 2021-05-25 08:19:01 +02:00
Manuel de la Pena f0496e8f84
[CI] Unzip downloaded data and remove logs for the static github page. (#11653) 2021-05-24 22:20:45 -04:00
Manuel de la Pena e2ba5d4c2f
[Actions] [] are special in yaml we need the '' (#11662) 2021-05-24 14:07:19 -04:00
TJ Lambert 592d6fefb0
[Localization] Adding localize-update workflow (#11655) 2021-05-21 22:04:25 -05:00
Manuel de la Pena 4626b30156
[CI] Do not run monotouch mac dotnet if it is not dotnet enabled. (#11654) 2021-05-21 17:57:20 -04:00
Rolf Bjarne Kvinge aa7e9d06d1
[configure] Add option to use a locally built dotnet/runtime. (#11643)
* Add a configure option to use a locally built dotnet/runtime.
* Add documentation how to build dotnet/runtime the way we need it built.
* Modify our build to consume the custom dotnet/runtime if so configured.

This is useful when trying to debug the runtime locally, or trying out new
features there are no packages for yet.

Co-authored-by: TJ Lambert <50846373+tj-devel709@users.noreply.github.com>
2021-05-21 22:18:25 +02:00
Manuel de la Pena ebe19d7865
[CI] Download all artifacts and show files to be removed. (#11639)
Step fwd to get the stativ page. We download all the artifacts from the
cascade pipeline. The artifacts are inherited thanks to the trigger.

Download, extract, print files to be removed.
2021-05-21 10:15:54 -04:00
Manuel de la Pena f3e596b675
[CI] If we modified xharness, run all tests. (#11640) 2021-05-21 10:08:59 -04:00
Rolf Bjarne Kvinge a447b3498a
[runtime/src] Update a few comments. (#11650) 2021-05-21 15:53:50 +02:00
Rolf Bjarne Kvinge 519c2f036f
[runtime] Fix typo in error message (#11651) 2021-05-21 15:53:10 +02:00
Filip Navara bfe8eb55cd
Replace IKVM.Reflection with MetadataLoadContext (#9864)
IKVM.Reflection is not actively maintained while MetadataLoadContext is actively maintained as part of dotnet/runtime.

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
Co-authored-by: Alex Soto <alex@alexsoto.me>
2021-05-21 15:15:59 +02:00
Rolf Bjarne Kvinge b5d3030e05
Bump Touch.Unit. (#11648)
New commits in spouliot/Touch.Unit:

* spouliot/Touch.Unit@07067b6 [TouchRunner] Add support for writing to multiple writers at the same time. (#102)

Diff: be7294761e..07067b6a1c
2021-05-21 15:12:09 +02:00