Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Improve test failure artifact uploads (#6681)
Fixes .apk/.aab file uploads when an apk test configuration fails. The filters for log file uploading have also been improved to avoid a situaton where we attempt to upload a file with the same name twice: Copying file '/Users/runner/work/1/s/xamarin-android/bin/TestRelease/logcat-Release-full.log' to '/Users/runner/work/1/a/TestRelease/logcat-Release-full.log' (overwrite destination: False) Copying file '/Users/runner/work/1/s/xamarin-android/bin/TestRelease/logcat-ReleaseAab-Mono.Android.NET_Tests.txt' to '/Users/runner/work/1/a/TestRelease/logcat-ReleaseAab-Mono.Android.NET_Tests.txt' (overwrite destination: False) ... Copying file '/Users/runner/work/1/s/xamarin-android/bin/TestRelease/logcat-Release-full.log' to '/Users/runner/work/1/a/TestRelease/logcat-Release-full.log' (overwrite destination: False) Step Xamarin.Android.Prepare.Step_CopyExtraResultFilesForCI failed: The file '/Users/runner/work/1/a/TestRelease/logcat-Release-full.log' already exists. System.InvalidOperationException: Step Xamarin.Android.Prepare.Step_CopyExtraResultFilesForCI failed: The file '/Users/runner/work/1/a/TestRelease/logcat-Release-full.log' already exists. ---> System.IO.IOException: The file '/Users/runner/work/1/a/TestRelease/logcat-Release-full.log' already exists. The `logcat-Release-full.log` file matched both `logcat*` and `*log` upload file filters. Attempts to copy it twice would fail, which caused us to miss certain files in the test result output that was eventually uploaded. MSBuild .binlog files will now be uploaded as test attachments for failing tests.
- Loading branch information