Skip to content

Conversation

@VincentDondain
Copy link
Contributor

This PR contains backport and new fixes that only affect the tests (no logic changed).
Sometimes #4723 is hit (random).
Backporting fixes to an old mono branch wasn't possible so a couple mono tests were completely skipped, note: they are fixed in master.

rolfbjarne and others added 18 commits April 19, 2019 15:14
This also means updating the whitelisted symbols.
We don't need the bitcode for testing, it makes test apps bigger (so big that
the Apple TV might refuse to install them).
…5768)

This commit improves the state of the BCL testing in the following ways:

1. Improve the device tets running. Less apps, faster results.
2. WatchOS apps are left as they were to ensure that we do not have deplouyment/run issues.

We now support the ignore files per assembly name to simplify the
tracking of the ignored tests. All
#4884 introduced the logic of only building certain `RunTestTask`.
This was meant to disable iOS Extensions as part of a fix to xamarin/maccore#1008.
However this didn't quite work and iOS extensions were still running (and failing).
The reason being that `BuildOnly` was set to a `RunDeviceTask` that's added to a list which is then given to `CreateTestVariations` which creates new instances of `RunDeviceTask`.
We now propagate `BuildOnly` to the new variation instance.
* [XHarness] Ignore some tests that fail on device.

Added the ignore, which can be later removed on the new mono 2019-02
since the issues do not happen there.

Fixes: xamarin/maccore#1495

* [XHarness] Ignore corlib tets failing on devices.

Added the required ignores to get the devices green and workaround mono
issue mono/mono#13641
The mono bump added some new tests that fail on device + release
configurations. This is a known issue by mono and they'll fix it in the
next version but will not be backported to 2018-10.
…ue 5868 is fixed. (#5869)

If not ignored, we will have an issue building the test app on device
resulting on a failure.
…tead of 6x

We hit this:

```
Expected: greater than 6
But was: 4.9317220348827826d
```

So adjusting to 4 to avoid those random failures.

See xamarin/maccore#649 for more details.
@VincentDondain VincentDondain requested a review from rolfbjarne as a code owner May 2, 2019 21:03
@VincentDondain
Copy link
Contributor Author

Various device tests were reported in this PR but you can also monitor: https://github.com/xamarin/xamarin-macios/commits/d16-1-xharness-cherry-picks

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
API Diff (from PR only) (no change)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

2 tests failed, 0 tests skipped, 193 tests passed.

Failed tests

  • [NUnit] Mono Mac OS X BCL tests group 1/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono Mac OS X BCL tests group 1/Mac/Modern: Failed (Test run failed.)

Copy link
Member

@dalexsoto dalexsoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@mandel-macaque
Copy link
Contributor

@VincentDondain failures look like we might missing some ignores, or that the tests are diff since I think @akoeplinger did some fixes on the mono side.

@VincentDondain
Copy link
Contributor Author

@VincentDondain
Copy link
Contributor Author

Looks like we don't yet have a fix for the 1 remaining device issue: https://github.com/xamarin/maccore/issues/1010 so this PR seems good to go! (:

Copy link
Contributor

@spouliot spouliot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. None of the modified files will impact the produced .pkg - it's safe to land!

Copy link
Contributor

@chamons chamons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a test (and tools used only by tests) only fix for improving our builds.

👍 for d16-1 given the standard exception.

@VincentDondain VincentDondain merged commit d1e24aa into d16-1 May 9, 2019
@VincentDondain VincentDondain deleted the d16-1-xharness-cherry-picks branch May 9, 2019 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants