[Xamarin.Android.Build.Tasks] Install mono-symbolicate scripts #425
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Commit 781a854 broke unit test execution, introducing failures
in the unit tests:
Xamarin.Android.Build.Tests.PackagingTest.CheckBuildIdIsUnique
Xamarin.Android.Build.Tests.PackagingTest.CheckManagedSymbolsArchive(True,True,True)
The cause1 is shown in the
build.log
for the failing test:Exit code 127 is "No such file or directory", i.e. there is no
bin/mono-symbolicate
file.This is "odd", because the
_BuildMonoSymbolicate
target was kept inXamarin.Android.Build.Tasks.targets
precisely so it could createthose files...
...except the
_BuildMonoSymbolicate
target isn't executed:Oops.
Thus we see the error of our ways: the
_BuildMonoSymbolicate
target's input is
mono-symbolicate.exe.sources
, which isn't touched,and it's output is
mono-symbolicate.exe
, which is now generated bymono-runtimes.targets
. These inputes and outputs need fixing toensure that the
mono-symbolicate
scripts are installed.Rename the
_BuildMonoSymbolicate
target to_BuildMonoSymbolicateScripts
, and provide appropriateInputs
andOutputs
so that the scripts are installed. This fixes the tests.temp
directory contains project folders for the failingtests, including build logs.
Footnotes
Note that the cause link is "unstable"; it's a
"workspace-relative" link, and may not exist from build to build.
For future reference, to view those
build.log
files: ↩