Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple BCL test failures when MONO_BUILD_FROM_SOURCE=1 is used #5699

Closed
spouliot opened this issue Mar 1, 2019 · 7 comments
Closed

Multiple BCL test failures when MONO_BUILD_FROM_SOURCE=1 is used #5699

spouliot opened this issue Mar 1, 2019 · 7 comments
Assignees
Labels
enhancement The issue or pull request is an enhancement iOS Issues affecting Xamarin.iOS macOS Issues affecting Xamarin.Mac
Milestone

Comments

@spouliot
Copy link
Contributor

spouliot commented Mar 1, 2019

Steps to Reproduce

  1. create a xamarin-macios branch
  2. switch external/mono to a custom mono branch
  3. add MONO_BUILD_FROM_SOURCE=1 to Make.config
  4. commit / push
  5. check bot results

Expected Behavior

A lot of BCL unit tests fails building because it expects binaries to be available for unit tests.

That's good, unless your working on something not mergeable right away. In that case you get a lot of false positive. It would be better to detect this (env variable) and put the tests status to Ignore

Actual Behavior

http://xamarin-storage/jenkins/xamarin-macios/xi-interpreter/e862008477898385a03c201bf8df783f7fee3f70/15/jenkins-results/tests/index.html

Environment

master

Example Project (If Possible)

branch xi-interpreter shows this

@spouliot spouliot added enhancement The issue or pull request is an enhancement macOS Issues affecting Xamarin.Mac iOS Issues affecting Xamarin.iOS labels Mar 1, 2019
@spouliot spouliot added this to the Future milestone Mar 1, 2019
@spouliot
Copy link
Contributor Author

spouliot commented Mar 1, 2019

c.c. @mandel-macaque for comments / alternative ideas

@rolfbjarne
Copy link
Member

Ideally the test assemblies would be built when we build mono (from source), and put in the expected location (by mono).

@spouliot
Copy link
Contributor Author

spouliot commented Mar 1, 2019

@rolfbjarne agreed that would be best - not sure if that's easy to pick up the SDK build artefacts

@rolfbjarne
Copy link
Member

We don't have to do anything to get the test assemblies if they're put in the location we already expect them.

When we consume a packaged mono, we expect files to end up in a builds/downloads/ subdirectory:

xamarin-macios/Make.config

Lines 338 to 339 in de82764

MONO_SDK_BUILDDIR:=$(abspath $(TOP)/builds/downloads/$(basename $(MONO_FILENAME)))
MONO_SDK_DESTDIR:=$(abspath $(TOP)/builds/downloads/$(basename $(MONO_FILENAME)))

When building from source, those variables point to external/mono/sdks/builds and external/mono/sdks/out:

xamarin-macios/Make.config

Lines 342 to 343 in de82764

MONO_SDK_BUILDDIR:=$(abspath $(MONO_PATH)/sdks/builds)
MONO_SDK_DESTDIR:=$(abspath $(MONO_PATH)/sdks/out)

If the mono source build puts the test assemblies in the same location as they're in the mono package (which is builds/downloads/ios-release-Darwin-<MONO_HASH>/ios-bcl/monotouch/tests/*.dll, so external/mono/sdks/out/ios-bcl/monotouch/tests/*.dll), then things will just automatically work for us.

@spouliot
Copy link
Contributor Author

spouliot commented Mar 1, 2019

That sounds a lot better strategy than ignoring them :)

@mandel-macaque
Copy link
Member

yeah, I like @rolfbjarne approach, mono should be doing that for us :)

@mandel-macaque
Copy link
Member

This was already fixed. I missed when, but after the mono bump, we should have no issues.

@xamarin xamarin locked as resolved and limited conversation to collaborators May 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement The issue or pull request is an enhancement iOS Issues affecting Xamarin.iOS macOS Issues affecting Xamarin.Mac
Projects
None yet
Development

No branches or pull requests

3 participants