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

6440 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge e0dbde288d
Fix typo in mono URL. (#6280) 2019-06-13 14:38:09 +02:00
Manuel de la Pena 6fd9af50eb
[Xharness] Do use the traits provided by the mono sdk. (#6160)
Rather than hardcoding the tests ignored categories and traits, use the
ones that are provided by the mono sdk for each runner.
2019-06-12 23:51:08 +02:00
Marius Ungureanu 253170dfe9 Annotate NullAllowed for ToolTip properties in AppKit (#6119) 2019-06-12 06:13:13 -07:00
Rolf Bjarne Kvinge ed57182937
[system-dependencies] Show a URL to download Mono if Mono needs installing/updating. (#6262) 2019-06-11 19:14:22 +02:00
Alexander Köplinger b05c9cb5ab Fix from-source Mono build not generate proper dependencies (#6225)
The .deps.mk target didn't get generated because its dependency was wrong.

Also do not exclude tests from the dependencies, they should be rebuild when changed too.

Fixes #6224
2019-06-11 19:05:11 +02:00
Manuel de la Pena 46c16eb440
[Tests] Try different urls before failing the test. (#6237)
We do have a test that fails when there are issues accessing the remote
resource. Try different urls to ensure that it is not a network issue with a specific domain.

Fixes: https://github.com/xamarin/maccore/issues/1725
2019-06-11 19:04:42 +02:00
Rolf Bjarne Kvinge f25d5918d0
Bump maccore and macios-binaries to get fix for #6216. (#6229)
maccore diff: 454450958e..4cca112bc1

New commits in xamarin/macios-binaries:

* xamarin/macios-binaries@b474fa2 Bump mlaunch to xamarin/maccore@4cca112bc1 (#20)

macios-binaries diff: 718cef60c9..b474fa2e73

Fixes https://github.com/xamarin/macios-binaries/pull/20.
2019-06-11 11:52:59 +02:00
Sebastien Pouliot b1f7039ecd
Bump VS4M minimum to 8.0.0 (#6238)
This should solve the msbuild failures when recent system mono are used
to build the tests

Fix https://github.com/mono/mono/issues/14875

Also revert MAX_MONO_VERSION change from https://github.com/xamarin/xamarin-macios/pull/6221 since we should be able to use a newer mono with the VS4M bump

And bump the system mono to 6.0.0.286 (which was failing in previous builds)
2019-06-10 18:48:51 -07:00
Sebastien Pouliot c5dcb74d06
[foundation] Fix NSCopying.Copy - the biggest offender of not releasing its return value (#6230) 2019-06-10 14:42:43 -07:00
Manuel de la Pena a938253e5a
Bump Mono to the latests 2019-02 head (#6221) 2019-06-10 20:43:36 +02:00
Manuel de la Pena c9963ba686
[XHanress] Move ignore file to the correct dir. (#6220)
There was a merge issue (two diff PRs landing at diff times) which made
the file to be added to the wrong dir.

Fixes: https://github.com/xamarin/maccore/issues/1689
2019-06-07 13:06:36 +02:00
Vlad Brezae 5f5a584f1e [Tests] [BCL] Avoid converting from IEnumerable to IList (#6211)
Casting is wrong and can throw exception.

Fixes: https://github.com/mono/mono/issues/14729
2019-06-06 20:50:55 +02:00
Manuel de la Pena b9761d9c9e
[XHarness] Point to the correct directory that has the linker config. (#6208)
The path is poiting to the old dir.

Fixes: https://github.com/xamarin/maccore/issues/1690
2019-06-06 12:51:20 +02:00
Ankit Jain 55c4073cb3 [xibuild] Handle "incorrectly" cased msbuild property names (#6202)
msbuild property names are case insensitive. While generating the custom
app.config, in `SetToolsetProperty(..)` we try to update the property if
it already exists. But the name lookup was case sensitive, thus causing
the lookup to fail, resulting in two entries for the same property name
differing only in case. Eg. `MSBuildSDKsPath` vs `MSBuildSdksPath`.

Fixed to ignore case.

Fixes https://github.com/mono/mono/issues/14765 .
2019-06-03 20:47:50 -07:00
Rolf Bjarne Kvinge 7d67e0585c
[tests] Ignore BaseOptimizeGeneratedCodeTest.SetupBlockPerfTest when doing CI. Fixes xamarin/maccore#649. (#6183)
The BaseOptimizeGeneratedCodeTest.SetupBlockPerfTest test is randomly failing
fairly often now, which means it turns CI builds red.

So disable it, but since I don't like disabling tests I've only disabled it
when doing CI. Hopefully we'll find out if there are any regressions when
running tests locally.

Fixes https://github.com/xamarin/maccore/issues/649.
2019-06-03 07:54:30 -07:00
Rolf Bjarne Kvinge 4d8c0df299
[tests] Automatically download mono packages before running device builds. (#6187)
Automatically download mono packages and setup symlinks before running device
builds.

This simplifies the build scripts on Azure Devops slightly.
2019-06-03 07:40:17 -07:00
Rolf Bjarne Kvinge 01e5ec39f7
Merge pull request #6193 from rolfbjarne/maccore-issue-1682-workaround
[xharness] Improve marking and reporting of known failures in tests.
2019-06-03 07:38:09 -07:00
Rolf Bjarne Kvinge 17d73975c8 [xtro] 'raw' files might not exist. (#6191)
If we just fixed all the entries in the corresponding '*.ignore' file, there
won't be a '*.raw' file.
2019-06-01 19:50:11 -04:00
Rolf Bjarne Kvinge 0124e054f8
[sampletester] Use dotnet v2.2.1XX if available. (#6185)
Works around https://github.com/NuGet/Home/issues/7956.
2019-05-31 09:27:32 -07:00
Rolf Bjarne Kvinge 4dec01a585
[sampletester] Bump xamarin-forms-book-samples to the tip of master, where a few fixes have been merged. (#6186) 2019-05-31 09:24:19 -07:00
Rolf Bjarne Kvinge 69a6d7204f [xharness] One issue is fixed, but another showed up, so the interpreter tests are still known failures for mscorlib. 2019-05-31 17:48:13 +02:00
Rolf Bjarne Kvinge ceefaac144 [xharness] The interpreter has been fixed for monotouch-test, so we can unignore those tests. Fixes xamarin/maccore#1613.
Fixes https://github.com/xamarin/maccore/issues/1613.
2019-05-31 17:47:59 +02:00
Rolf Bjarne Kvinge 4016597e37 [xharness] Mark the mscorlib interpreter tests as known failures. 2019-05-31 16:48:20 +02:00
Rolf Bjarne Kvinge e68f5cd1b3 [xharness] Don't run known failures when trying to run a collection of tests ('Run all' button).
It's still possible to running known failures by running the exact test
instead of the group it belongs to.
2019-05-31 16:48:20 +02:00
Rolf Bjarne Kvinge f9978488cd [xharness] Adjust HE0038 reporting to the new known failure logic.
This also makes it so that we only parse the log file once (when the test
finishes), instead of parsing every log named 'Run log' every time we produce
the html report.
2019-05-31 16:48:20 +02:00
Rolf Bjarne Kvinge e85d7119b8 [xharness] Add support for marking a test as a known failure and show the known failure text in the html report. 2019-05-31 16:48:20 +02:00
Ema 1d81c4c1fd [msbuild] Avoid running CollectBundleResources task if there's no Mac available
The IsMacEnabled condition was missing in this specific usage of the CollectBundleResources task. As with any other task that needs to run on a Mac, we should only run it if there's a Mac available or it will end up showing several warnings when building offline from Windows.
2019-05-31 11:47:41 -03:00
Manuel de la Pena 26a3394623
[XHarness] Clean the bcl-tests directory. (#6165)
The change is a pre step to fix https://github.com/xamarin/xamarin-macios/issues/6162

We are removing the not longer child directory bcl-test/BCLTests since
there is not longer any reason for it to exist. The changes make sure
that the tests work as expected in the new directory.

Next step, move all the test apps to their own directory.
2019-05-31 13:05:22 +02:00
Rolf Bjarne Kvinge 8e2bbe8d2d
[monotouch-test] Attempt to fix AudioQueueTest.ChannelAssignments. Fixes xamarin/maccore#1623. (#6184)
* [monotouch-test] Attempt to fix AudioQueueTest.ChannelAssignments. Fixes xamarin/maccore#1623.

Attempt to fix the usage of AudioQueue.ChannelAssignments so that it follows
Apple's (incomplete) documentation.

Fixes https://github.com/xamarin/maccore/issues/1623.

* Simplify a little bit.
2019-05-30 23:33:33 -07:00
Rolf Bjarne Kvinge 64ae36659f
[msbuild] Lock variables accessed in a Parallel.ForEach callback. (#6173)
Lock variables accessed in a Parallel.ForEach callback, since the callback
must be thread-safe because it's executed in parallel using multiple threads.
2019-05-30 23:29:45 -07:00
Rolf Bjarne Kvinge 614de0b077
[tests] Set environment variables so that the in-process generator finds the locally built platform assemblies. (#6178)
When running the in-process generator, we need to set the same environment
variables as we already do when running the out-of-process generator, so that
the generator looks for the platform assemblies in the local install directory
(and not the system one).
2019-05-30 14:19:26 -07:00
Rolf Bjarne Kvinge 6be7597912
[monotouch-test] Ignore MessageHandlerTest.RejectSslCertificatesServicePointManager on macOS 10.10. (#6181)
This works around (but doesn't fix) https://github.com/xamarin/maccore/issues/1645.
2019-05-30 12:45:58 -07:00
Rolf Bjarne Kvinge ad6ae52e1b
[tests] Only call MTLDevice.CreateSharedTexture macOS 10.14+. Fixes xamarin/maccore#1663. (#6180)
Fixes https://github.com/xamarin/maccore/issues/1663.
2019-05-30 12:39:21 -07:00
Rolf Bjarne Kvinge b20c45c01a
[generator] Don't print multiple EditorBrowsable attributes. Fixes xamarin/maccore#1661. (#6179)
It's not allowed to have multiple EditorBrowsable attributes on the same
member, so make sure the generatod doesn't generate such code.

We might want to print an "[EditorBrowsable (Never)]" because a particular API
is obsolete (i.e. has the "[Obsolete]" attribute), but if the API also has an
EditorBrowsable attribute already, use only that one instead.

Fixes https://github.com/xamarin/maccore/issues/1661.
2019-05-30 12:24:38 -07:00
Manuel de la Pena d8b7580849
[XHarness] Re-enable tvOS tests. (#6174)
After mono fixed issues https://github.com/mono/mono/issues/14497 and
https://github.com/mono/mono/issues/14496 re-enable the ignored tests.

Fixes: https://github.com/xamarin/maccore/issues/1610
Fixes: https://github.com/xamarin/maccore/issues/1611
2019-05-30 19:14:45 +02:00
Rolf Bjarne Kvinge ce996e5b9e
Bump maccore. (#6176)
Diff: 104656b890..454450958e
2019-05-30 10:00:36 -07:00
Rolf Bjarne Kvinge 9c29746825
[xharness] Add TimeoutMultiplier and multiply mscorlib's timeout by 2. (#6172)
mscorlib has many tests and need some extra time, especially on watchOS, so
bump the timeout by 2 (from 15 to 30 minutes).
2019-05-30 08:40:56 -07:00
Rolf Bjarne Kvinge 9a5c0cc432
[tests] Run tests on watchOS in a background thread. (#6170)
Otherwise watchOS might terminate the process if we lock up the UI too long
while running tests.

It's also nice to see the progress as the tests are running.
2019-05-30 08:40:30 -07:00
Rolf Bjarne Kvinge 2a842e1265
[xharness] Look for HE0038 anywhere in a log file. (#6175)
Most log files now have timestamps, which means that looking for 'HE00380' at
the start of each line won't work anymore.

Fixes an issue where the HE0038 issue isn't detected properly.
2019-05-30 08:37:41 -07:00
Rolf Bjarne Kvinge 93b5a0ca23
[generator] Forward more [return: Release] attributes to generated code. (#6171) 2019-05-30 08:36:56 -07:00
Rolf Bjarne Kvinge e89c3271f3
Merge pull request #6097 from xamarin/binary-artifacts
Replace Mono submodule with binary artifacts from mono sdks download
2019-05-30 05:12:41 -07:00
Rolf Bjarne Kvinge dfc75ff72c Merge remote-tracking branch 'origin/master' into binary-artifacts 2019-05-30 14:11:19 +02:00
Manuel de la Pena ccda5a5508
Bump mono. (#6166)
Bumping mono to get the correct traits from the mono sdk.

Commits are:

* mono/mono@bab25c0 Ensure monotouch[_runtime] API are identical
* mono/mono@bc9ab2e [bcl] Add nunit exclude categories for monotouch/monodroid profiles
* mono/mono@a2088cb [sdks] Only package android-sources on macOS

Diff: mono/mono@f3a302c...bab25c0
2019-05-30 11:00:54 +02:00
Rolf Bjarne Kvinge 72d7a8ad9b Merge remote-tracking branch 'origin/master' into binary-artifacts 2019-05-30 07:25:03 +02:00
Manuel de la Pena 76c2804298 [XHarness] Do clean after mtouch build tests. (#6161)
The BCL projects do share the directory. This means that if we do not
clean before building we could have unknown side effects.

Fixes: https://github.com/xamarin/xamarin-macios/issues/6157
2019-05-29 22:24:52 -07:00
Rolf Bjarne Kvinge 0ce0010824
[Metal] Sprinkle [return: Release] on all 'new*' selectors. Fixes #5941. (#6159)
* [Metal] Sprinkle [return: Release] on all 'new*' selectors. Fixes #5941.

Also add tests for all the API I could figure out how to use.

Fixes https://github.com/xamarin/xamarin-macios/issues/5941.

* [tests] MTLFunctionConstantValues didn't have a default ctor until Xcode 9.

* [tests] Use a higher offset when calling MTLBuffer.CreateTexture to try to comply with the requirements for the API.

Hopefully fixes this assertion:

> 07:42:06.7701360 validateStrideTextureParameters:1512: failed assertion `Linear texture: bytesPerRow (64) must be aligned to 256 bytes'

which doesn't happen on my machine.

* Fix whitespace.

* Simplify nested usings.

* Fix availability correctly.
2019-05-29 22:06:14 -07:00
Rolf Bjarne Kvinge 28fab7bdba
[xtro] Implement support for auto-sanitizing the .ignore files by defining an environment variable. (#6158)
Going through each failure one-by-one after fixing something that fixed many
entries is annoying, so automate the process.
2019-05-29 08:58:48 -07:00
Rolf Bjarne Kvinge 0029417b31
[apidiff] Create the directory for the stamp file before trying to create files in it. (#6156)
Fixes this:

	[...]
    Updating apidiff references...
    /Applications/Xcode102.app/Contents/Developer/usr/bin/make -C ../../builds download
    Downloading https://xamjenkinsartifact.azureedge.net/mono-sdks/ios-release-Darwin-dfd4224fdd40dfa8bfdad092c7d75d235ca37a8d.zip...
    Downloading https://xamjenkinsartifact.azureedge.net/mono-sdks/mac-release-Darwin-dfd4224fdd40dfa8bfdad092c7d75d235ca37a8d.zip...
    Downloaded https://xamjenkinsartifact.azureedge.net/mono-sdks/mac-release-Darwin-dfd4224fdd40dfa8bfdad092c7d75d235ca37a8d.zip
    Unzipping mac-release-Darwin-dfd4224fdd40dfa8bfdad092c7d75d235ca37a8d...
    Unzipped mac-release-Darwin-dfd4224fdd40dfa8bfdad092c7d75d235ca37a8d.
    Downloaded https://xamjenkinsartifact.azureedge.net/mono-sdks/ios-release-Darwin-dfd4224fdd40dfa8bfdad092c7d75d235ca37a8d.zip
    Unzipping ios-release-Darwin-dfd4224fdd40dfa8bfdad092c7d75d235ca37a8d...
    Unzipped ios-release-Darwin-dfd4224fdd40dfa8bfdad092c7d75d235ca37a8d.
    touch: /Users/builder/jenkins/workspace/xamarin-macios-pr-builder/tools/comparison/apidiff/.download-dfd4224fdd40dfa8bfdad092c7d75d235ca37a8d.stamp: No such file or directory
    make: *** [/Users/builder/jenkins/workspace/xamarin-macios-pr-builder/tools/comparison/apidiff/.download-dfd4224fdd40dfa8bfdad092c7d75d235ca37a8d.stamp] Error 1
    Failed to update apidiff references

from https://jenkins.mono-project.com/job/xamarin-macios-pr-builder/10093/consoleText.
2019-05-29 05:58:38 -07:00
Rolf Bjarne Kvinge 215bda500e
Show better error when the mono archive isn't available. Fixes xamarin-macios/maccore#1655. (#6155)
* Show better error when the mono archive isn't available. Fixes xamarin-macios/maccore#1655.

Fixes https://github.com/xamarin/maccore/issues/1655.

* [jenkins] Show better build failure in the build report PR comment.
2019-05-29 05:57:49 -07:00
Rolf Bjarne Kvinge 2ac3008237 [jenkins] Ignore the 7z dependency when running tests on older macOS versions.
We don't need 7z installed to just run the tests.
2019-05-29 12:56:44 +02:00