Repository navigation
Disable building Microsoft.XmlSerializer.Generator.Tests for ARM - #24030
Conversation
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>
|
If we can detect cross build environment, I think we can use a better fix as follows.
But I have no idea how to detect build environment in managed build. @ericstj Please take a look :) |
|
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:
Our ARM64 runs are also failing. |
|
I'll merge this and add the extra condition separately. |
|
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. |
|
Also, why didn't this break CI? Seems like a pretty big gap. We should build tests even if we don't run them. |
|
@ericst I believe this is a test time break - the test does a build. |
|
@ericstj I mean. |
|
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. |
…_build_break Disable building Microsoft.XmlSerializer.Generator.Tests for ARM Commit migrated from dotnet/corefx@37d8b88
Fix #24029
Microsoft.XmlSerializer.Generator.Testshas been enabled for Linux from #23978.However there is a build break when cross building for ARM, because it tries to use target
dotnetwhich is ARM binary when building.So simply disable building this test for ARM.