Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Disable building Microsoft.XmlSerializer.Generator.Tests for ARM - #24030

Merged
mellinoe merged 1 commit into
dotnet:masterfrom
hqueue:fix/issue_24029_tc_build_break
Sep 15, 2017
Merged

mellinoe merged 1 commit into
dotnet:masterfrom
hqueue:fix/issue_24029_tc_build_break

Conversation

@hqueue

@hqueue hqueue commented Sep 14, 2017 •

Copy link
Copy Markdown
Member

Fix #24029

Microsoft.XmlSerializer.Generator.Tests has been enabled for Linux from #23978.
However there is a build break when cross building for ARM, because it tries to use target dotnet which is ARM binary when building.

So simply disable building this test for ARM.

Simply disable building Microsoft.XmlSerializer.Generator.Tests for ARM
to avoid build break when cross building for ARM.

When cross building for ARM, we cannot use dotnet to build
Microsoft.XmlSerializer.Generator.Tests, because dotnet is
ARM binary and cannnot run on host.

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
@hqueue

hqueue commented Sep 14, 2017 •

Copy link
Copy Markdown
Member Author

If we can detect cross build environment, I think we can use a better fix as follows.

  • Detect cross build environment
  • Use dotnet in ToolsDir instead of TestHostRootPath when cross building.

But I have no idea how to detect build environment in managed build.
Does anyone know how ?

@ericstj Please take a look :)

@hqueue hqueue changed the title Disabling building Microsoft.XmlSerializer.Generator.Tests for ARM Disable building Microsoft.XmlSerializer.Generator.Tests for ARM Sep 14, 2017
@huanwu
huanwu requested a review from ericstj September 15, 2017 22:43
@mellinoe

Copy link
Copy Markdown
Contributor

We should take this change -- our official builds have been broken since Tuesday because of this test failure. I think the condition needs to be expanded:

OR '$(ArchGroup)' == 'arm' OR '$(ArchGroup)' == 'arm64'

Our ARM64 runs are also failing.

@mellinoe

Copy link
Copy Markdown
Contributor

I'll merge this and add the extra condition separately.

@mellinoe
mellinoe merged commit 37d8b88 into dotnet:master Sep 15, 2017
@ericstj

ericstj commented Sep 15, 2017

Copy link
Copy Markdown
Member

The condition could have been placed on the very next property group which determines if the tool is running on test or tool CLI. For arm, just run on the tool CLI.

@ericstj

ericstj commented Sep 15, 2017

Copy link
Copy Markdown
Member

Also, why didn't this break CI? Seems like a pretty big gap. We should build tests even if we don't run them.

@danmoseley

Copy link
Copy Markdown

@ericst I believe this is a test time break - the test does a build.

@danmoseley

Copy link
Copy Markdown

@ericstj I mean.

@ericstj

ericstj commented Sep 16, 2017 •

Copy link
Copy Markdown
Member

I understand. It's not test run time: it is test build time. We should be building tests for all archs during CI, just like we do the product. I understand that we may not want to run the arm tests in CI because we are cross targeting: fine.

@karelz karelz added this to the 2.1.0 milestone Oct 11, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…_build_break

Disable building Microsoft.XmlSerializer.Generator.Tests for ARM

Commit migrated from dotnet/corefx@37d8b88
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants